From 6bba0b0cef45b790c7a98a818e6018c91de8af0b Mon Sep 17 00:00:00 2001 From: beck <> Date: Fri, 7 Jul 2023 13:54:46 +0000 Subject: Hide symbols in hkdf, evp, err, ecdsa, and ec (part 2 of commit) ok jsing@ --- src/lib/libcrypto/ecdh/ecdh.c | 4 +++- src/lib/libcrypto/ecdh/ech_err.c | 3 ++- src/lib/libcrypto/ecdh/ech_lib.c | 9 ++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/ecdh') diff --git a/src/lib/libcrypto/ecdh/ecdh.c b/src/lib/libcrypto/ecdh/ecdh.c index 1179564030..0781c30e09 100644 --- a/src/lib/libcrypto/ecdh/ecdh.c +++ b/src/lib/libcrypto/ecdh/ecdh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecdh.c,v 1.3 2023/07/05 17:10:10 tb Exp $ */ +/* $OpenBSD: ecdh.c,v 1.4 2023/07/07 13:54:45 beck Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -264,9 +264,11 @@ ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, } return eckey->meth->compute_key(out, outlen, pub_key, eckey, KDF); } +LCRYPTO_ALIAS(ECDH_compute_key); int ECDH_size(const EC_KEY *d) { return (EC_GROUP_get_degree(EC_KEY_get0_group(d)) + 7) / 8; } +LCRYPTO_ALIAS(ECDH_size); diff --git a/src/lib/libcrypto/ecdh/ech_err.c b/src/lib/libcrypto/ecdh/ech_err.c index e0cfddfe9c..1b194fe0fb 100644 --- a/src/lib/libcrypto/ecdh/ech_err.c +++ b/src/lib/libcrypto/ecdh/ech_err.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ech_err.c,v 1.7 2022/07/12 14:42:49 kn Exp $ */ +/* $OpenBSD: ech_err.c,v 1.8 2023/07/07 13:54:45 beck Exp $ */ /* ==================================================================== * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. * @@ -91,3 +91,4 @@ ERR_load_ECDH_strings(void) } #endif } +LCRYPTO_ALIAS(ERR_load_ECDH_strings); 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 @@ -/* $OpenBSD: ech_lib.c,v 1.23 2023/07/05 08:39:40 tb Exp $ */ +/* $OpenBSD: ech_lib.c,v 1.24 2023/07/07 13:54:45 beck Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -98,12 +98,14 @@ ECDH_OpenSSL(void) { return &openssl_ecdh_meth; } +LCRYPTO_ALIAS(ECDH_OpenSSL); void ECDH_set_default_method(const ECDH_METHOD *meth) { default_ECDH_method = meth; } +LCRYPTO_ALIAS(ECDH_set_default_method); const ECDH_METHOD * ECDH_get_default_method(void) @@ -113,12 +115,14 @@ ECDH_get_default_method(void) } return default_ECDH_method; } +LCRYPTO_ALIAS(ECDH_get_default_method); int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) { return 0; } +LCRYPTO_ALIAS(ECDH_set_method); int ECDH_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, { return -1; } +LCRYPTO_ALIAS(ECDH_get_ex_new_index); int ECDH_set_ex_data(EC_KEY *d, int idx, void *arg) { return 0; } +LCRYPTO_ALIAS(ECDH_set_ex_data); void * ECDH_get_ex_data(EC_KEY *d, int idx) { return NULL; } +LCRYPTO_ALIAS(ECDH_get_ex_data); -- cgit v1.2.3-55-g6feb