summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dh/dh_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/dh/dh_key.c')
-rw-r--r--src/lib/libcrypto/dh/dh_key.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dh/dh_key.c b/src/lib/libcrypto/dh/dh_key.c
index 89ae5f0fdc..a4bd689483 100644
--- a/src/lib/libcrypto/dh/dh_key.c
+++ b/src/lib/libcrypto/dh/dh_key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh_key.c,v 1.38 2022/11/26 16:08:51 tb Exp $ */ 1/* $OpenBSD: dh_key.c,v 1.39 2023/07/08 15:29:03 beck 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 *
@@ -77,12 +77,14 @@ DH_generate_key(DH *dh)
77{ 77{
78 return dh->meth->generate_key(dh); 78 return dh->meth->generate_key(dh);
79} 79}
80LCRYPTO_ALIAS(DH_generate_key);
80 81
81int 82int
82DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) 83DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
83{ 84{
84 return dh->meth->compute_key(key, pub_key, dh); 85 return dh->meth->compute_key(key, pub_key, dh);
85} 86}
87LCRYPTO_ALIAS(DH_compute_key);
86 88
87static DH_METHOD dh_ossl = { 89static DH_METHOD dh_ossl = {
88 .name = "OpenSSL DH Method", 90 .name = "OpenSSL DH Method",
@@ -98,6 +100,7 @@ DH_OpenSSL(void)
98{ 100{
99 return &dh_ossl; 101 return &dh_ossl;
100} 102}
103LCRYPTO_ALIAS(DH_OpenSSL);
101 104
102static int 105static int
103generate_key(DH *dh) 106generate_key(DH *dh)