diff options
author | guenther <> | 2016-11-04 18:28:58 +0000 |
---|---|---|
committer | guenther <> | 2016-11-04 18:28:58 +0000 |
commit | 8cc65628c4d521b267ce848806b81a4cf70a662f (patch) | |
tree | a976d8fd54ff6f0b241962b2bdfdd29e113892f7 /src/lib/libssl/ssl_locl.h | |
parent | e8686503dae1f619d00440b2df8c7bdef857a901 (diff) | |
download | openbsd-8cc65628c4d521b267ce848806b81a4cf70a662f.tar.gz openbsd-8cc65628c4d521b267ce848806b81a4cf70a662f.tar.bz2 openbsd-8cc65628c4d521b267ce848806b81a4cf70a662f.zip |
Add an explict list of exported symbols with just the functions
declared in the public headers, and use __{BEGIN,END}_HIDDEN_DECLS
in the internal headers to optimize internal functions
ok jsing@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index c3107745c9..5a146ce0b4 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.132 2016/11/04 18:00:12 guenther Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.133 2016/11/04 18:28:58 guenther Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -160,6 +160,8 @@ | |||
160 | #include <openssl/ssl.h> | 160 | #include <openssl/ssl.h> |
161 | #include <openssl/stack.h> | 161 | #include <openssl/stack.h> |
162 | 162 | ||
163 | __BEGIN_HIDDEN_DECLS | ||
164 | |||
163 | #define c2l(c,l) (l = ((unsigned long)(*((c)++))) , \ | 165 | #define c2l(c,l) (l = ((unsigned long)(*((c)++))) , \ |
164 | l|=(((unsigned long)(*((c)++)))<< 8), \ | 166 | l|=(((unsigned long)(*((c)++)))<< 8), \ |
165 | l|=(((unsigned long)(*((c)++)))<<16), \ | 167 | l|=(((unsigned long)(*((c)++)))<<16), \ |
@@ -834,4 +836,6 @@ int ssl3_cbc_digest_record(const EVP_MD_CTX *ctx, unsigned char *md_out, | |||
834 | size_t data_plus_mac_plus_padding_size, const unsigned char *mac_secret, | 836 | size_t data_plus_mac_plus_padding_size, const unsigned char *mac_secret, |
835 | unsigned mac_secret_length, char is_sslv3); | 837 | unsigned mac_secret_length, char is_sslv3); |
836 | 838 | ||
839 | __END_HIDDEN_DECLS | ||
840 | |||
837 | #endif | 841 | #endif |