From b0083b858b1b84b8b19bc553faa582079dda96ae Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 21 Dec 2016 15:49:29 +0000 Subject: Explicitly export a list of symbols from libcrypto. Move the "internal" BN functions from bn.h to bn_lcl.h and stop exporting the bn_* symbols. These are documented as only being intended for internal use, so why they were placed in a public header is beyond me... This hides 363 previously exported symbols, most of which exist in headers that are not installed and were never intended to be public. This also removes a few crusty old things that should have died long ago (like _ossl_old_des_read_pw). But don't worry... there are still 3451 symbols exported from the library. With input and testing from inoguchi@. ok beck@ inoguchi@ --- src/lib/libcrypto/ecdsa/ecs_locl.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/lib/libcrypto/ecdsa/ecs_locl.h') diff --git a/src/lib/libcrypto/ecdsa/ecs_locl.h b/src/lib/libcrypto/ecdsa/ecs_locl.h index 24d866ae64..94e8874332 100644 --- a/src/lib/libcrypto/ecdsa/ecs_locl.h +++ b/src/lib/libcrypto/ecdsa/ecs_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ecs_locl.h,v 1.4 2015/02/08 13:35:07 jsing Exp $ */ +/* $OpenBSD: ecs_locl.h,v 1.5 2016/12/21 15:49:29 jsing Exp $ */ /* * Written by Nils Larsch for the OpenSSL project */ @@ -61,9 +61,7 @@ #include -#ifdef __cplusplus -extern "C" { -#endif +__BEGIN_HIDDEN_DECLS typedef struct ecdsa_data_st { /* EC_KEY_METH_DATA part */ @@ -83,8 +81,6 @@ typedef struct ecdsa_data_st { */ ECDSA_DATA *ecdsa_check(EC_KEY *eckey); -#ifdef __cplusplus -} -#endif +__END_HIDDEN_DECLS #endif /* HEADER_ECS_LOCL_H */ -- cgit v1.2.3-55-g6feb