summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dh/dh_lib.c
diff options
context:
space:
mode:
authortb <>2024-11-29 15:59:57 +0000
committertb <>2024-11-29 15:59:57 +0000
commit0c4bef0c67554c96db6dc257452593c5a9b573ec (patch)
tree22254e07ec11cf2eb4ce6ceccc43ec3534201a43 /src/lib/libcrypto/dh/dh_lib.c
parent7bf674fac288e15425988251ece54449f398a71c (diff)
downloadopenbsd-0c4bef0c67554c96db6dc257452593c5a9b573ec.tar.gz
openbsd-0c4bef0c67554c96db6dc257452593c5a9b573ec.tar.bz2
openbsd-0c4bef0c67554c96db6dc257452593c5a9b573ec.zip
Remove X9.42 DH rudiments
In the unlikely event that we should ever decide to implement this after a quarter century of not needing it, we can readily put this back. Until then this is dead weight. prompted by a question by djm ok jsing
Diffstat (limited to 'src/lib/libcrypto/dh/dh_lib.c')
-rw-r--r--src/lib/libcrypto/dh/dh_lib.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/dh/dh_lib.c b/src/lib/libcrypto/dh/dh_lib.c
index 86503bc4e0..803aca6421 100644
--- a/src/lib/libcrypto/dh/dh_lib.c
+++ b/src/lib/libcrypto/dh/dh_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh_lib.c,v 1.45 2024/03/27 01:26:30 tb Exp $ */ 1/* $OpenBSD: dh_lib.c,v 1.46 2024/11/29 15:59:57 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -154,11 +154,8 @@ DH_free(DH *dh)
154 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DH, dh, &dh->ex_data); 154 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DH, dh, &dh->ex_data);
155 155
156 BN_free(dh->p); 156 BN_free(dh->p);
157 BN_free(dh->g);
158 BN_free(dh->q); 157 BN_free(dh->q);
159 BN_free(dh->j); 158 BN_free(dh->g);
160 free(dh->seed);
161 BN_free(dh->counter);
162 BN_free(dh->pub_key); 159 BN_free(dh->pub_key);
163 BN_free(dh->priv_key); 160 BN_free(dh->priv_key);
164 free(dh); 161 free(dh);