diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-09-28 00:45:33 +0200 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2019-09-28 20:26:34 +0200 |
commit | 25f2138b0ab54a65ba713c093ca3734d88f7cb51 (patch) | |
tree | 0438d0f46a6a591d5833d74e0ccd9cb5da24fa2b /providers/common | |
parent | ea8e1fe55b51d9da69977d8dc3f2ffd648d438df (diff) |
Reorganize private crypto header files
Currently, there are two different directories which contain internal
header files of libcrypto which are meant to be shared internally:
While header files in 'include/internal' are intended to be shared
between libcrypto and libssl, the files in 'crypto/include/internal'
are intended to be shared inside libcrypto only.
To make things complicated, the include search path is set up in such
a way that the directive #include "internal/file.h" could refer to
a file in either of these two directoroes. This makes it necessary
in some cases to add a '_int.h' suffix to some files to resolve this
ambiguity:
#include "internal/file.h" # located in 'include/internal'
#include "internal/file_int.h" # located in 'crypto/include/internal'
This commit moves the private crypto headers from
'crypto/include/internal' to 'include/crypto'
As a result, the include directives become unambiguous
#include "internal/file.h" # located in 'include/internal'
#include "crypto/file.h" # located in 'include/crypto'
hence the superfluous '_int.h' suffixes can be stripped.
The files 'store_int.h' and 'store.h' need to be treated specially;
they are joined into a single file.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9333)
Diffstat (limited to 'providers/common')
-rw-r--r-- | providers/common/ciphers/cipher_gcm.c | 2 | ||||
-rw-r--r-- | providers/common/ciphers/cipher_tdes.c | 2 | ||||
-rw-r--r-- | providers/common/digests/sha2_prov.c | 2 | ||||
-rw-r--r-- | providers/common/include/internal/ciphers/ciphercommon.h | 4 | ||||
-rw-r--r-- | providers/common/kdfs/hkdf.c | 2 | ||||
-rw-r--r-- | providers/common/kdfs/kbkdf.c | 2 | ||||
-rw-r--r-- | providers/common/kdfs/pbkdf2.c | 2 | ||||
-rw-r--r-- | providers/common/kdfs/sskdf.c | 2 | ||||
-rw-r--r-- | providers/common/kdfs/tls1_prf.c | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/providers/common/ciphers/cipher_gcm.c b/providers/common/ciphers/cipher_gcm.c index b5c79daee7..09cd70cc53 100644 --- a/providers/common/ciphers/cipher_gcm.c +++ b/providers/common/ciphers/cipher_gcm.c @@ -12,7 +12,7 @@ #include "cipher_locl.h" #include "internal/ciphers/cipher_gcm.h" #include "internal/providercommonerr.h" -#include "internal/rand_int.h" +#include "crypto/rand.h" #include "internal/provider_ctx.h" static int gcm_tls_init(PROV_GCM_CTX *dat, unsigned char *aad, size_t aad_len); diff --git a/providers/common/ciphers/cipher_tdes.c b/providers/common/ciphers/cipher_tdes.c index e3e80d186a..0548531678 100644 --- a/providers/common/ciphers/cipher_tdes.c +++ b/providers/common/ciphers/cipher_tdes.c @@ -9,7 +9,7 @@ #include "cipher_locl.h" #include "internal/ciphers/cipher_tdes.h" -#include "internal/rand_int.h" +#include "crypto/rand.h" #include "internal/provider_algs.h" #include "internal/providercommonerr.h" diff --git a/providers/common/digests/sha2_prov.c b/providers/common/digests/sha2_prov.c index b872676506..d2c7df2ee6 100644 --- a/providers/common/digests/sha2_prov.c +++ b/providers/common/digests/sha2_prov.c @@ -16,7 +16,7 @@ #include <openssl/core_names.h> #include "internal/digestcommon.h" #include "internal/provider_algs.h" -#include "internal/sha.h" +#include "crypto/sha.h" static OSSL_OP_digest_set_ctx_params_fn sha1_set_ctx_params; static OSSL_OP_digest_settable_ctx_params_fn sha1_settable_ctx_params; diff --git a/providers/common/include/internal/ciphers/ciphercommon.h b/providers/common/include/internal/ciphers/ciphercommon.h index 7539d8cb81..9a01abf6cb 100644 --- a/providers/common/include/internal/ciphers/ciphercommon.h +++ b/providers/common/include/internal/ciphers/ciphercommon.h @@ -12,8 +12,8 @@ #include <openssl/core_names.h> #include <openssl/evp.h> #include "internal/cryptlib.h" -#include "internal/modes_int.h" -#include "internal/ciphermode_platform.h" +#include "crypto/modes.h" +#include "crypto/ciphermode_platform.h" #define MAXCHUNK ((size_t)1 << (sizeof(long) * 8 - 2)) #define MAXBITCHUNK ((size_t)1 << (sizeof(size_t) * 8 - 4)) diff --git a/providers/common/kdfs/hkdf.c b/providers/common/kdfs/hkdf.c index ac5cc34a21..041811f0e1 100644 --- a/providers/common/kdfs/hkdf.c +++ b/providers/common/kdfs/hkdf.c @@ -16,7 +16,7 @@ #include <openssl/core_names.h> #include "internal/cryptlib.h" #include "internal/numbers.h" -#include "internal/evp_int.h" +#include "crypto/evp.h" #include "internal/provider_ctx.h" #include "internal/providercommonerr.h" #include "internal/provider_algs.h" diff --git a/providers/common/kdfs/kbkdf.c b/providers/common/kdfs/kbkdf.c index 77cee258e8..ffffef0b17 100644 --- a/providers/common/kdfs/kbkdf.c +++ b/providers/common/kdfs/kbkdf.c @@ -35,7 +35,7 @@ #include <openssl/params.h> #include "internal/cryptlib.h" -#include "internal/evp_int.h" +#include "crypto/evp.h" #include "internal/numbers.h" #include "internal/provider_algs.h" #include "internal/provider_ctx.h" diff --git a/providers/common/kdfs/pbkdf2.c b/providers/common/kdfs/pbkdf2.c index c8480125b2..b98123b872 100644 --- a/providers/common/kdfs/pbkdf2.c +++ b/providers/common/kdfs/pbkdf2.c @@ -16,7 +16,7 @@ #include <openssl/core_names.h> #include "internal/cryptlib.h" #include "internal/numbers.h" -#include "internal/evp_int.h" +#include "crypto/evp.h" #include "internal/provider_ctx.h" #include "internal/providercommonerr.h" #include "internal/provider_algs.h" diff --git a/providers/common/kdfs/sskdf.c b/providers/common/kdfs/sskdf.c index d74da436a2..1e538a9c0a 100644 --- a/providers/common/kdfs/sskdf.c +++ b/providers/common/kdfs/sskdf.c @@ -44,7 +44,7 @@ #include <openssl/params.h> #include "internal/cryptlib.h" #include "internal/numbers.h" -#include "internal/evp_int.h" +#include "crypto/evp.h" #include "internal/provider_ctx.h" #include "internal/providercommonerr.h" #include "internal/provider_algs.h" diff --git a/providers/common/kdfs/tls1_prf.c b/providers/common/kdfs/tls1_prf.c index 3053b756dc..af49b1b044 100644 --- a/providers/common/kdfs/tls1_prf.c +++ b/providers/common/kdfs/tls1_prf.c @@ -54,7 +54,7 @@ #include <openssl/params.h> #include "internal/cryptlib.h" #include "internal/numbers.h" -#include "internal/evp_int.h" +#include "crypto/evp.h" #include "internal/provider_ctx.h" #include "internal/providercommonerr.h" #include "internal/provider_algs.h" |