summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/ike_auth.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-07 04:48:22 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-07 04:48:22 +0000
commit689cacc7a695a635bfa4da63699f08fc6fbc9497 (patch)
tree46c579d479f82e6330e1ca269acc919734505631 /sbin/isakmpd/ike_auth.c
parente067709466d0eca5513d5d7a05b8dbf7699fcf96 (diff)
Actually, don't re-insert X509 certs which we acquired from our store
-- just translate them to KeyNote.
Diffstat (limited to 'sbin/isakmpd/ike_auth.c')
-rw-r--r--sbin/isakmpd/ike_auth.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/isakmpd/ike_auth.c b/sbin/isakmpd/ike_auth.c
index 568fb6d8c35..df6d3f7c9ee 100644
--- a/sbin/isakmpd/ike_auth.c
+++ b/sbin/isakmpd/ike_auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike_auth.c,v 1.46 2001/06/07 04:19:03 angelos Exp $ */
+/* $OpenBSD: ike_auth.c,v 1.47 2001/06/07 04:48:21 angelos Exp $ */
/* $EOM: ike_auth.c,v 1.59 2000/11/21 00:21:31 angelos Exp $ */
/*
@@ -72,6 +72,9 @@
#include "transport.h"
#include "util.h"
#include "key.h"
+#if defined (USE_X509)
+#include "x509.h"
+#endif
#ifdef notyet
static u_int8_t *enc_gen_skeyid (struct exchange *, size_t *);
@@ -636,7 +639,9 @@ rsa_sig_decode_hash (struct message *msg)
handler->id));
exchange->recv_cert = cert;
exchange->recv_certtype = handler->id;
- handler->cert_insert (exchange->policy_id, cert);
+#if defined(USE_X509)
+ x509_generate_kn (exchange->policy_id, cert);
+#endif /* USE_X509 */
}
}
}