diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-19 19:31:35 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-19 19:31:35 +0000 |
commit | 31da7f43ae6eb6935f9c6655664b42e53a834cc7 (patch) | |
tree | 831edb78b00dc456e2241ed6a90f38de3c3cf04a /sbin/isakmpd/exchange.c | |
parent | 4e29ea6b7e46456f224baec37fde987683c85a03 (diff) |
Makefile: Merge with EOM 1.61
crypto.c: Merge with EOM 1.27
exchange.c: Merge with EOM 1.115
ike_quick_mode.c: Merge with EOM 1.115
x509.c: Merge with EOM 1.35
features/ec: Merge with EOM 1.1
features/aggressive: Merge with EOM 1.1
features/policy: Merge with EOM 1.1
features/x509: Merge with EOM 1.1
author: niklas
Allow isakmpd builders to remove optional parts and save bytes.
Diffstat (limited to 'sbin/isakmpd/exchange.c')
-rw-r--r-- | sbin/isakmpd/exchange.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c index f59ffdbc23c..57339a6235d 100644 --- a/sbin/isakmpd/exchange.c +++ b/sbin/isakmpd/exchange.c @@ -1,8 +1,8 @@ -/* $OpenBSD: exchange.c,v 1.26 2000/02/01 02:46:17 niklas Exp $ */ -/* $EOM: exchange.c,v 1.114 2000/01/31 22:33:44 niklas Exp $ */ +/* $OpenBSD: exchange.c,v 1.27 2000/02/19 19:31:32 niklas Exp $ */ +/* $EOM: exchange.c,v 1.115 2000/02/19 07:46:30 niklas Exp $ */ /* - * Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved. + * Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved. * Copyright (c) 1999 Angelos D. Keromytis. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -135,6 +135,7 @@ int16_t script_authentication_only[] = { EXCHANGE_SCRIPT_END }; +#ifdef USE_AGGRESSIVE int16_t script_aggressive[] = { ISAKMP_PAYLOAD_SA, /* Initiator -> responder. */ ISAKMP_PAYLOAD_KEY_EXCH, @@ -150,6 +151,7 @@ int16_t script_aggressive[] = { EXCHANGE_SCRIPT_AUTH, /* Initiator -> responder. */ EXCHANGE_SCRIPT_END }; +#endif /* USE_AGGRESSIVE */ int16_t script_informational[] = { EXCHANGE_SCRIPT_INFO, /* Initiator -> responder. */ @@ -171,8 +173,10 @@ exchange_script (struct exchange *exchange) return script_identity_protection; case ISAKMP_EXCH_AUTH_ONLY: return script_authentication_only; +#ifdef USE_AGGRESSIVE case ISAKMP_EXCH_AGGRESSIVE: return script_aggressive; +#endif case ISAKMP_EXCH_INFO: return script_informational; default: |