diff options
author | jsing <> | 2016-12-21 15:49:29 +0000 |
---|---|---|
committer | jsing <> | 2016-12-21 15:49:29 +0000 |
commit | b0083b858b1b84b8b19bc553faa582079dda96ae (patch) | |
tree | dc6bf9e697be4171031836e4b004f8c6c396b66c /src/lib/libcrypto/aes/aes_locl.h | |
parent | 2bf82d6a2f5736c3b836867840e3ec84075634ca (diff) | |
download | openbsd-b0083b858b1b84b8b19bc553faa582079dda96ae.tar.gz openbsd-b0083b858b1b84b8b19bc553faa582079dda96ae.tar.bz2 openbsd-b0083b858b1b84b8b19bc553faa582079dda96ae.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/aes/aes_locl.h')
-rw-r--r-- | src/lib/libcrypto/aes/aes_locl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/aes/aes_locl.h b/src/lib/libcrypto/aes/aes_locl.h index 83b20b5f5b..c47f65da62 100644 --- a/src/lib/libcrypto/aes/aes_locl.h +++ b/src/lib/libcrypto/aes/aes_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: aes_locl.h,v 1.10 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: aes_locl.h,v 1.11 2016/12/21 15:49:29 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -62,6 +62,8 @@ | |||
62 | #include <stdlib.h> | 62 | #include <stdlib.h> |
63 | #include <string.h> | 63 | #include <string.h> |
64 | 64 | ||
65 | __BEGIN_HIDDEN_DECLS | ||
66 | |||
65 | #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) | 67 | #define GETU32(pt) (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) |
66 | #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } | 68 | #define PUTU32(ct, st) { (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } |
67 | 69 | ||
@@ -76,4 +78,6 @@ typedef unsigned char u8; | |||
76 | /* This controls loop-unrolling in aes_core.c */ | 78 | /* This controls loop-unrolling in aes_core.c */ |
77 | #undef FULL_UNROLL | 79 | #undef FULL_UNROLL |
78 | 80 | ||
81 | __END_HIDDEN_DECLS | ||
82 | |||
79 | #endif /* !HEADER_AES_LOCL_H */ | 83 | #endif /* !HEADER_AES_LOCL_H */ |