From 6980e63b096ec3551366624376a0294e25f896e3 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 21 Dec 2016 15:49:30 +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@ --- lib/libcrypto/gost/gost_asn1.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libcrypto/gost/gost_asn1.h') diff --git a/lib/libcrypto/gost/gost_asn1.h b/lib/libcrypto/gost/gost_asn1.h index 8cafa6be3b6..7cabfc79c96 100644 --- a/lib/libcrypto/gost/gost_asn1.h +++ b/lib/libcrypto/gost/gost_asn1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gost_asn1.h,v 1.2 2016/09/04 17:02:31 jsing Exp $ */ +/* $OpenBSD: gost_asn1.h,v 1.3 2016/12/21 15:49:29 jsing Exp $ */ /* * Copyright (c) 2014 Dmitry Eremin-Solenikov * Copyright (c) 2005-2006 Cryptocom LTD @@ -54,6 +54,8 @@ #include +__BEGIN_HIDDEN_DECLS + typedef struct { ASN1_OCTET_STRING *encrypted_key; ASN1_OCTET_STRING *imit; @@ -100,4 +102,6 @@ GOST_KEY_PARAMS *d2i_GOST_KEY_PARAMS(GOST_KEY_PARAMS **a, const unsigned char ** int i2d_GOST_KEY_PARAMS(GOST_KEY_PARAMS *a, unsigned char **out); extern const ASN1_ITEM GOST_KEY_PARAMS_it; +__END_HIDDEN_DECLS + #endif -- cgit v1.2.3