diff options
author | 2001-07-04 22:23:24 +0000 | |
---|---|---|
committer | 2001-07-04 22:23:24 +0000 | |
commit | bfe29bd48edc9dae0496e61f026e8734aa967a75 (patch) | |
tree | 1749cf4af285148e61dcbeb21ba57e5d77b554f8 | |
parent | Better handling of Key IDs. (diff) | |
download | wireguard-openbsd-bfe29bd48edc9dae0496e61f026e8734aa967a75.tar.xz wireguard-openbsd-bfe29bd48edc9dae0496e61f026e8734aa967a75.zip |
Merge entries.
-rw-r--r-- | sbin/isakmpd/ipsec.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c index 68bb1eebded..0e1226b1566 100644 --- a/sbin/isakmpd/ipsec.c +++ b/sbin/isakmpd/ipsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec.c,v 1.52 2001/07/01 20:43:39 niklas Exp $ */ +/* $OpenBSD: ipsec.c,v 1.53 2001/07/04 22:23:24 angelos Exp $ */ /* $EOM: ipsec.c,v 1.143 2000/12/11 23:57:42 niklas Exp $ */ /* @@ -2256,22 +2256,17 @@ ipsec_id_size (char *section, u_int8_t *id) case IPSEC_ID_FQDN: case IPSEC_ID_USER_FQDN: case IPSEC_ID_KEY_ID: - data = conf_get_str (section, "Name"); - if (!data) - { - log_print ("ipsec_id_size: section %s has no \"Name\" tag", section); - return -1; - } - return strlen (data); case IPSEC_ID_DER_ASN1_DN: + case IPSEC_ID_DER_ASN1_GN: data = conf_get_str (section, "Name"); if (!data) { log_print ("ipsec_id_size: section %s has no \"Name\" tag", section); return -1; } - break; + return strlen (data); } - log_print ("ipsec_id_size: unrecognized ID-type %d (%s)", *id, type); + log_print ("ipsec_id_size: unrecognized/unsupported ID-type %d (%s)", + *id, type); return -1; } |