diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-15 01:11:26 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-11-15 01:11:26 +0000 |
commit | c6527bd7b356241bfbba13d6ec7243c480d87267 (patch) | |
tree | 53a29a2b99db7fedfa975fb529572c81ad57c2eb /sbin | |
parent | 6205078366315da4257f55410f1c390fcc1b166a (diff) |
At the moment we do not do certificates
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/exchange.c | 4 | ||||
-rw-r--r-- | sbin/isakmpd/message.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c index 32663ee1704..2e17f8e67a7 100644 --- a/sbin/isakmpd/exchange.c +++ b/sbin/isakmpd/exchange.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exchange.c,v 1.2 1998/11/15 00:43:52 niklas Exp $ */ +/* $OpenBSD: exchange.c,v 1.3 1998/11/15 01:11:25 niklas Exp $ */ /* * Copyright (c) 1998 Niklas Hallqvist. All rights reserved. @@ -863,6 +863,7 @@ exchange_save_certreq (struct message *msg) for ( ; cp; cp = TAILQ_NEXT (cp, link)) { cp->flags |= PL_MARK; +#if 0 tmp = certreq_decode (GET_ISAKMP_CERTREQ_TYPE (cp->p), cp->p + ISAKMP_CERTREQ_AUTHORITY_OFF, GET_ISAKMP_GEN_LENGTH (cp->p) - @@ -870,6 +871,7 @@ exchange_save_certreq (struct message *msg) if (tmp == NULL) continue; TAILQ_INSERT_TAIL (&exchange->aca_list, tmp, link); +#endif } return 0; diff --git a/sbin/isakmpd/message.c b/sbin/isakmpd/message.c index a82d7ca3e3a..496361d9d25 100644 --- a/sbin/isakmpd/message.c +++ b/sbin/isakmpd/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.2 1998/11/15 00:44:01 niklas Exp $ */ +/* $OpenBSD: message.c,v 1.3 1998/11/15 01:11:25 niklas Exp $ */ /* * Copyright (c) 1998 Niklas Hallqvist. All rights reserved. @@ -363,6 +363,7 @@ message_validate_cert_req (struct message *msg, struct payload *p) * Check the certificate types we support and if an acceptable authority * is included in the payload check if it can be decoded */ +#if 0 if ((cert = cert_get (GET_ISAKMP_CERTREQ_TYPE (p->p))) == NULL || (len && !cert->certreq_validate (p->p + ISAKMP_CERTREQ_AUTHORITY_OFF, len))) @@ -370,6 +371,7 @@ message_validate_cert_req (struct message *msg, struct payload *p) message_drop (msg, ISAKMP_NOTIFY_CERT_TYPE_UNSUPPORTED, 0, 0, 1); return -1; } +#endif return 0; } |