summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdh
diff options
context:
space:
mode:
authorjsing <>2016-12-21 15:49:29 +0000
committerjsing <>2016-12-21 15:49:29 +0000
commit18adabd97858ed28289c9dc31e8042c515840be4 (patch)
treedc6bf9e697be4171031836e4b004f8c6c396b66c /src/lib/libcrypto/ecdh
parentdc4cc737fb85885279df4f5d19a14d950dfa5b34 (diff)
downloadopenbsd-18adabd97858ed28289c9dc31e8042c515840be4.tar.gz
openbsd-18adabd97858ed28289c9dc31e8042c515840be4.tar.bz2
openbsd-18adabd97858ed28289c9dc31e8042c515840be4.zip
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@
Diffstat (limited to 'src/lib/libcrypto/ecdh')
-rw-r--r--src/lib/libcrypto/ecdh/ech_locl.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_locl.h b/src/lib/libcrypto/ecdh/ech_locl.h
index 8338007393..b5777df423 100644
--- a/src/lib/libcrypto/ecdh/ech_locl.h
+++ b/src/lib/libcrypto/ecdh/ech_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ech_locl.h,v 1.4 2015/09/13 10:46:20 jsing Exp $ */ 1/* $OpenBSD: ech_locl.h,v 1.5 2016/12/21 15:49:29 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -58,9 +58,7 @@
58 58
59#include <openssl/ecdh.h> 59#include <openssl/ecdh.h>
60 60
61#ifdef __cplusplus 61__BEGIN_HIDDEN_DECLS
62extern "C" {
63#endif
64 62
65struct ecdh_method { 63struct ecdh_method {
66 const char *name; 64 const char *name;
@@ -90,8 +88,6 @@ typedef struct ecdh_data_st {
90 88
91ECDH_DATA *ecdh_check(EC_KEY *); 89ECDH_DATA *ecdh_check(EC_KEY *);
92 90
93#ifdef __cplusplus 91__END_HIDDEN_DECLS
94}
95#endif
96 92
97#endif /* HEADER_ECH_LOCL_H */ 93#endif /* HEADER_ECH_LOCL_H */