From 6613823939720b377bdc70da1bdfb3e78911e47f Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 14 Jan 2022 09:19:19 +0000 Subject: [PATCH] isakmpd: convert modp to opaque DH --- sbin/isakmpd/dh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1