From: tb Date: Fri, 14 Jan 2022 09:19:19 +0000 (+0000) Subject: isakmpd: convert modp to opaque DH X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6613823939720b377bdc70da1bdfb3e78911e47f;p=openbsd isakmpd: convert modp to opaque DH --- diff --git a/sbin/isakmpd/dh.c b/sbin/isakmpd/dh.c index 9ec422dd9c7..ac436797e59 100644 --- a/sbin/isakmpd/dh.c +++ b/sbin/isakmpd/dh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.24 2021/11/30 18:12:44 tb Exp $ */ +/* $OpenBSD: dh.c,v 1.25 2022/01/14 09:19:19 tb Exp $ */ /* * Copyright (c) 2010-2014 Reyk Floeter @@ -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);