summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdh/ech_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ecdh/ech_lib.c')
-rw-r--r--src/lib/libcrypto/ecdh/ech_lib.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_lib.c b/src/lib/libcrypto/ecdh/ech_lib.c
index 52019b01c1..c8e5744c0a 100644
--- a/src/lib/libcrypto/ecdh/ech_lib.c
+++ b/src/lib/libcrypto/ecdh/ech_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ech_lib.c,v 1.23 2023/07/05 08:39:40 tb Exp $ */ 1/* $OpenBSD: ech_lib.c,v 1.24 2023/07/07 13:54:45 beck Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -98,12 +98,14 @@ ECDH_OpenSSL(void)
98{ 98{
99 return &openssl_ecdh_meth; 99 return &openssl_ecdh_meth;
100} 100}
101LCRYPTO_ALIAS(ECDH_OpenSSL);
101 102
102void 103void
103ECDH_set_default_method(const ECDH_METHOD *meth) 104ECDH_set_default_method(const ECDH_METHOD *meth)
104{ 105{
105 default_ECDH_method = meth; 106 default_ECDH_method = meth;
106} 107}
108LCRYPTO_ALIAS(ECDH_set_default_method);
107 109
108const ECDH_METHOD * 110const ECDH_METHOD *
109ECDH_get_default_method(void) 111ECDH_get_default_method(void)
@@ -113,12 +115,14 @@ ECDH_get_default_method(void)
113 } 115 }
114 return default_ECDH_method; 116 return default_ECDH_method;
115} 117}
118LCRYPTO_ALIAS(ECDH_get_default_method);
116 119
117int 120int
118ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) 121ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth)
119{ 122{
120 return 0; 123 return 0;
121} 124}
125LCRYPTO_ALIAS(ECDH_set_method);
122 126
123int 127int
124ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, 128ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
@@ -126,15 +130,18 @@ ECDH_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
126{ 130{
127 return -1; 131 return -1;
128} 132}
133LCRYPTO_ALIAS(ECDH_get_ex_new_index);
129 134
130int 135int
131ECDH_set_ex_data(EC_KEY *d, int idx, void *arg) 136ECDH_set_ex_data(EC_KEY *d, int idx, void *arg)
132{ 137{
133 return 0; 138 return 0;
134} 139}
140LCRYPTO_ALIAS(ECDH_set_ex_data);
135 141
136void * 142void *
137ECDH_get_ex_data(EC_KEY *d, int idx) 143ECDH_get_ex_data(EC_KEY *d, int idx)
138{ 144{
139 return NULL; 145 return NULL;
140} 146}
147LCRYPTO_ALIAS(ECDH_get_ex_data);