artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7d3dce
)
isakmpd: convert modp to opaque DH
author
tb
<tb@openbsd.org>
Fri, 14 Jan 2022 09:19:19 +0000
(09:19 +0000)
committer
tb
<tb@openbsd.org>
Fri, 14 Jan 2022 09:19:19 +0000
(09:19 +0000)
sbin/isakmpd/dh.c
patch
|
blob
|
history
diff --git
a/sbin/isakmpd/dh.c
b/sbin/isakmpd/dh.c
index
9ec422d
..
ac43679
100644
(file)
--- a/
sbin/isakmpd/dh.c
+++ b/
sbin/isakmpd/dh.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dh.c,v 1.2
4 2021/11/30 18:12:44
tb Exp $ */
+/* $OpenBSD: dh.c,v 1.2
5 2022/01/14 09:19:19
tb Exp $ */
/*
* Copyright (c) 2010-2014 Reyk Floeter <reyk@openbsd.org>
@@
-373,7
+373,7
@@
modp_create_exchange(struct group *group, u_int8_t *buf)
if (!DH_generate_key(dh))
return (-1);
- ret = BN_bn2bin(
dh->pub_key
, buf);
+ ret = BN_bn2bin(
DH_get0_pub_key(dh)
, buf);
if (!ret)
return (-1);