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/des/des_locl.h | 7 ++++++- src/lib/libcrypto/des/spr.h | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/des') diff --git a/src/lib/libcrypto/des/des_locl.h b/src/lib/libcrypto/des/des_locl.h index 38ac68a6e6..34a7609873 100644 --- a/src/lib/libcrypto/des/des_locl.h +++ b/src/lib/libcrypto/des/des_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: des_locl.h,v 1.18 2014/10/28 07:35:58 jsg Exp $ */ +/* $OpenBSD: des_locl.h,v 1.19 2016/12/21 15:49:29 jsing Exp $ */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -70,6 +70,8 @@ #include +__BEGIN_HIDDEN_DECLS + #define ITERATIONS 16 #define HALF_ITERATIONS 8 @@ -389,4 +391,7 @@ void fcrypt_body(DES_LONG *out,DES_key_schedule *ks, #ifdef OPENSSL_SMALL_FOOTPRINT #undef DES_UNROLL #endif + +__END_HIDDEN_DECLS + #endif diff --git a/src/lib/libcrypto/des/spr.h b/src/lib/libcrypto/des/spr.h index eec6beb9f7..5e717065fb 100644 --- a/src/lib/libcrypto/des/spr.h +++ b/src/lib/libcrypto/des/spr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: spr.h,v 1.5 2014/06/12 15:49:28 deraadt Exp $ */ +/* $OpenBSD: spr.h,v 1.6 2016/12/21 15:49:29 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -56,6 +56,8 @@ * [including the GNU Public Licence.] */ +__BEGIN_HIDDEN_DECLS + const DES_LONG DES_SPtrans[8][64]={ { /* nibble 0 */ @@ -202,3 +204,5 @@ const DES_LONG DES_SPtrans[8][64]={ 0x00000080L, 0x20820000L, 0x00820080L, 0x00000000L, 0x20000000L, 0x20800080L, 0x00020000L, 0x00820080L, }}; + +__END_HIDDEN_DECLS -- cgit v1.2.3-55-g6feb