diff options
-rw-r--r-- | sbin/iked/dh.c | 5 | ||||
-rw-r--r-- | sbin/isakmpd/dh.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sbin/iked/dh.c b/sbin/iked/dh.c index 15db3fdaa4c..dc8b6fe5b66 100644 --- a/sbin/iked/dh.c +++ b/sbin/iked/dh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.4 2010/06/29 19:38:26 reyk Exp $ */ +/* $OpenBSD: dh.c,v 1.5 2010/11/29 22:49:26 markus Exp $ */ /* $vantronix: dh.c,v 1.13 2010/05/28 15:34:35 reyk Exp $ */ /* @@ -401,13 +401,10 @@ modp_getlen(struct group *group) int modp_create_exchange(struct group *group, u_int8_t *buf) { - int codes; DH *dh = group->dh; if (!DH_generate_key(dh)) return (-1); - if (!DH_check(dh, &codes)) - return (-1); if (!BN_bn2bin(dh->pub_key, buf)) return (-1); diff --git a/sbin/isakmpd/dh.c b/sbin/isakmpd/dh.c index 755667ed619..9998b0b550e 100644 --- a/sbin/isakmpd/dh.c +++ b/sbin/isakmpd/dh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.12 2010/06/29 19:50:16 reyk Exp $ */ +/* $OpenBSD: dh.c,v 1.13 2010/11/29 22:49:26 markus Exp $ */ /* $vantronix: dh.c,v 1.13 2010/05/28 15:34:35 reyk Exp $ */ /* @@ -401,13 +401,10 @@ modp_getlen(struct group *group) int modp_create_exchange(struct group *group, u_int8_t *buf) { - int codes; DH *dh = group->dh; if (!DH_generate_key(dh)) return (-1); - if (!DH_check(dh, &codes)) - return (-1); if (!BN_bn2bin(dh->pub_key, buf)) return (-1); |