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/9681)
This commit is contained in:
Dr. Matthias St. Pierre 2019-09-27 23:57:58 +02:00
parent 61df2198e2
commit 0c994d54af
247 changed files with 301 additions and 309 deletions

2
.gitignore vendored
View File

@ -27,7 +27,7 @@ Makefile
# Auto generated headers # Auto generated headers
/crypto/buildinf.h /crypto/buildinf.h
/apps/progs.h /apps/progs.h
/crypto/include/internal/*_conf.h /include/crypto/*_conf.h
/openssl/include/opensslconf.h /openssl/include/opensslconf.h
/util/domd /util/domd

View File

@ -9,20 +9,20 @@
""; "";
-} -}
LIBS=libcrypto libssl LIBS=libcrypto libssl
INCLUDE[libcrypto]=. crypto/include include INCLUDE[libcrypto]=. include
INCLUDE[libssl]=. include INCLUDE[libssl]=. include
DEPEND[libssl]=libcrypto DEPEND[libssl]=libcrypto
# Empty DEPEND "indices" means the dependencies are expected to be built # Empty DEPEND "indices" means the dependencies are expected to be built
# unconditionally before anything else. # unconditionally before anything else.
DEPEND[]=include/openssl/opensslconf.h crypto/include/internal/bn_conf.h \ DEPEND[]=include/openssl/opensslconf.h include/crypto/bn_conf.h \
crypto/include/internal/dso_conf.h include/crypto/dso_conf.h
DEPEND[include/openssl/opensslconf.h]=configdata.pm DEPEND[include/openssl/opensslconf.h]=configdata.pm
GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in GENERATE[include/openssl/opensslconf.h]=include/openssl/opensslconf.h.in
DEPEND[crypto/include/internal/bn_conf.h]=configdata.pm DEPEND[include/crypto/bn_conf.h]=configdata.pm
GENERATE[crypto/include/internal/bn_conf.h]=crypto/include/internal/bn_conf.h.in GENERATE[include/crypto/bn_conf.h]=include/crypto/bn_conf.h.in
DEPEND[crypto/include/internal/dso_conf.h]=configdata.pm DEPEND[include/crypto/dso_conf.h]=configdata.pm
GENERATE[crypto/include/internal/dso_conf.h]=crypto/include/internal/dso_conf.h.in GENERATE[include/crypto/dso_conf.h]=include/crypto/dso_conf.h.in
IF[{- defined $target{shared_defflag} -}] IF[{- defined $target{shared_defflag} -}]
IF[{- $config{target} =~ /^mingw/ -}] IF[{- $config{target} =~ /^mingw/ -}]

View File

@ -19,7 +19,7 @@
*/ */
#include <openssl/e_os2.h> #include <openssl/e_os2.h>
#include "internal/aria.h" #include "crypto/aria.h"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>

View File

@ -13,7 +13,7 @@
#include "internal/numbers.h" #include "internal/numbers.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#ifndef NO_OLD_ASN1 #ifndef NO_OLD_ASN1
# ifndef OPENSSL_NO_STDIO # ifndef OPENSSL_NO_STDIO

View File

@ -8,7 +8,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>

View File

@ -9,13 +9,13 @@
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "asn1_locl.h" #include "asn1_locl.h"
int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp) int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp)

View File

@ -8,7 +8,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>

View File

@ -18,8 +18,8 @@
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
#ifndef NO_ASN1_OLD #ifndef NO_ASN1_OLD

View File

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>

View File

@ -16,7 +16,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "asn1_locl.h" #include "asn1_locl.h"

View File

@ -18,8 +18,8 @@
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
#ifndef NO_ASN1_OLD #ifndef NO_ASN1_OLD

View File

@ -13,8 +13,8 @@
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/engine.h> #include <openssl/engine.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "standard_methods.h" #include "standard_methods.h"

View File

@ -8,13 +8,13 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "internal/bio.h" #include "internal/bio.h"
#include "asn1_locl.h" #include "asn1_locl.h"

View File

@ -8,13 +8,13 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/conf.h> #include <openssl/conf.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/objects.h" #include "crypto/objects.h"
/* Simple ASN1 OID module: add all objects in a given section */ /* Simple ASN1 OID module: add all objects in a given section */

View File

@ -15,8 +15,8 @@
#include <openssl/engine.h> #include <openssl/engine.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp, EVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp,
long length) long length)

View File

@ -17,7 +17,7 @@
#include <openssl/dsa.h> #include <openssl/dsa.h>
#include <openssl/ec.h> #include <openssl/ec.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, EVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp,
long length) long length)

View File

@ -8,7 +8,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>

View File

@ -8,7 +8,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>

View File

@ -11,8 +11,8 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp)
{ {

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include "internal/x509_int.h" #include "crypto/x509.h"
/* Minor tweak to operation: zero private key data */ /* Minor tweak to operation: zero private key data */
static int pkey_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, static int pkey_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include "internal/bn_int.h" #include "crypto/bn.h"
/* Number of octets per line */ /* Number of octets per line */
#define ASN1_BUF_PRINT_WIDTH 15 #define ASN1_BUF_PRINT_WIDTH 15

View File

@ -13,7 +13,7 @@
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "asn1_locl.h" #include "asn1_locl.h"
static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out, static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,

View File

@ -15,7 +15,7 @@
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "asn1_locl.h" #include "asn1_locl.h"
/* /*

View File

@ -11,7 +11,7 @@
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
ASN1_SEQUENCE(X509_ALGOR) = { ASN1_SEQUENCE(X509_ALGOR) = {
ASN1_SIMPLE(X509_ALGOR, algorithm, ASN1_OBJECT), ASN1_SIMPLE(X509_ALGOR, algorithm, ASN1_OBJECT),

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include "internal/x509_int.h" #include "crypto/x509.h"
ASN1_SEQUENCE(X509_SIG) = { ASN1_SEQUENCE(X509_SIG) = {
ASN1_SIMPLE(X509_SIG, algor, X509_ALGOR), ASN1_SIMPLE(X509_SIG, algor, X509_ALGOR),

View File

@ -19,7 +19,7 @@
#include "async_locl.h" #include "async_locl.h"
#include <openssl/err.h> #include <openssl/err.h>
#include "internal/cryptlib_int.h" #include "crypto/cryptlib.h"
#include <string.h> #include <string.h>
#define ASYNC_JOB_RUNNING 0 #define ASYNC_JOB_RUNNING 0

View File

@ -20,7 +20,7 @@
# include <windows.h> # include <windows.h>
#endif #endif
#include "internal/async.h" #include "crypto/async.h"
#include <openssl/crypto.h> #include <openssl/crypto.h>
typedef struct async_ctx_st async_ctx; typedef struct async_ctx_st async_ctx;

View File

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/numbers.h" #include "internal/numbers.h"
#include <openssl/bio.h> #include <openssl/bio.h>

View File

@ -21,7 +21,7 @@
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "blake2_locl.h" # include "blake2_locl.h"
# include "internal/evp_int.h" # include "crypto/evp.h"
static int init(EVP_MD_CTX *ctx) static int init(EVP_MD_CTX *ctx)
{ {

View File

@ -21,7 +21,7 @@
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "blake2_locl.h" # include "blake2_locl.h"
# include "internal/evp_int.h" # include "crypto/evp.h"
static int init(EVP_MD_CTX *ctx) static int init(EVP_MD_CTX *ctx)
{ {

View File

@ -12,7 +12,7 @@
#ifndef OPENSSL_NO_DH #ifndef OPENSSL_NO_DH
#include <openssl/dh.h> #include <openssl/dh.h>
#include "internal/bn_dh.h" #include "crypto/bn_dh.h"
/* DH parameters from RFC5114 */ /* DH parameters from RFC5114 */
# if BN_BITS2 == 64 # if BN_BITS2 == 64

View File

@ -18,10 +18,10 @@
# include <openssl/opensslconf.h> # include <openssl/opensslconf.h>
# if !defined(OPENSSL_SYS_UEFI) # if !defined(OPENSSL_SYS_UEFI)
# include "internal/bn_conf.h" # include "crypto/bn_conf.h"
# endif # endif
# include "internal/bn_int.h" # include "crypto/bn.h"
/* /*
* These preprocessor symbols control various aspects of the bignum headers * These preprocessor symbols control various aspects of the bignum headers

View File

@ -8,7 +8,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include <limits.h> #include <limits.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>

View File

@ -13,7 +13,7 @@
#ifndef OPENSSL_NO_SRP #ifndef OPENSSL_NO_SRP
#include <openssl/srp.h> #include <openssl/srp.h>
#include "internal/bn_srp.h" #include "crypto/bn_srp.h"
# if (BN_BYTES == 8) # if (BN_BYTES == 8)
# if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__) # if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)

View File

@ -11,7 +11,7 @@
#include <string.h> #include <string.h>
#include "internal/chacha.h" #include "crypto/chacha.h"
typedef unsigned int u32; typedef unsigned int u32;
typedef unsigned char u8; typedef unsigned char u8;

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/cmac.h> #include <openssl/cmac.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
/* /*
* CMAC "ASN1" method. This is just here to indicate the maximum CMAC output * CMAC "ASN1" method. This is just here to indicate the maximum CMAC output

View File

@ -13,7 +13,7 @@
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/cmac.h> #include <openssl/cmac.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
/* The context structure and "key" is simply a CMAC_CTX */ /* The context structure and "key" is simply a CMAC_CTX */

View File

@ -15,8 +15,8 @@
#include <openssl/cms.h> #include <openssl/cms.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "cms_lcl.h" #include "cms_lcl.h"
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
/* CMS EnvelopedData Utilities */ /* CMS EnvelopedData Utilities */

View File

@ -15,7 +15,7 @@
#include <openssl/cms.h> #include <openssl/cms.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "cms_lcl.h" #include "cms_lcl.h"
#include "internal/asn1_int.h" #include "crypto/asn1.h"
/* Key Agreement Recipient Info (KARI) routines */ /* Key Agreement Recipient Info (KARI) routines */

View File

@ -16,7 +16,7 @@
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "cms_lcl.h" #include "cms_lcl.h"
#include "internal/asn1_int.h" #include "crypto/asn1.h"
int CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri, int CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri,
unsigned char *pass, ossl_ssize_t passlen) unsigned char *pass, ossl_ssize_t passlen)

View File

@ -15,8 +15,8 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/cms.h> #include <openssl/cms.h>
#include "cms_lcl.h" #include "cms_lcl.h"
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
/* CMS SignedData Utilities */ /* CMS SignedData Utilities */

View File

@ -14,7 +14,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/cms.h> #include <openssl/cms.h>
#include "cms_lcl.h" #include "cms_lcl.h"
#include "internal/asn1_int.h" #include "crypto/asn1.h"
static BIO *cms_get_text_bio(BIO *out, unsigned int flags) static BIO *cms_get_text_bio(BIO *out, unsigned int flags)
{ {

View File

@ -13,7 +13,7 @@
#include <openssl/objects.h> #include <openssl/objects.h>
#include "internal/comp.h" #include "internal/comp.h"
#include <openssl/err.h> #include <openssl/err.h>
#include "internal/cryptlib_int.h" #include "crypto/cryptlib.h"
#include "internal/bio.h" #include "internal/bio.h"
#include "comp_lcl.h" #include "comp_lcl.h"

View File

@ -11,7 +11,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "internal/conf.h" #include "internal/conf.h"
#include "internal/ctype.h" #include "crypto/ctype.h"
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/conf.h> #include <openssl/conf.h>

View File

@ -9,7 +9,7 @@
*/ */
#include "e_os.h" #include "e_os.h"
#include "internal/cryptlib_int.h" #include "crypto/cryptlib.h"
#include <openssl/safestack.h> #include <openssl/safestack.h>
#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
@ -49,7 +49,7 @@ typedef char variant_char;
# define ossl_getenv getenv # define ossl_getenv getenv
# endif # endif
# include "internal/ctype.h" # include "crypto/ctype.h"
static int todigit(variant_char c) static int todigit(variant_char c)
{ {

View File

@ -9,7 +9,7 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "openssl/ebcdic.h" #include "openssl/ebcdic.h"
/* /*

View File

@ -13,8 +13,8 @@
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "dh_locl.h" #include "dh_locl.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
#include <openssl/cms.h> #include <openssl/cms.h>
/* /*

View File

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "dh_locl.h" #include "dh_locl.h"
#include "internal/bn_int.h" #include "crypto/bn.h"
static int generate_key(DH *dh); static int generate_key(DH *dh);
static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh); static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);

View File

@ -16,7 +16,7 @@
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/dsa.h> #include <openssl/dsa.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
/* DH pkey context structure */ /* DH pkey context structure */

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "dh_locl.h" #include "dh_locl.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include "internal/bn_dh.h" #include "crypto/bn_dh.h"
/* /*
* Macro to make a DH structure from BIGNUM data. NB: although just copying * Macro to make a DH structure from BIGNUM data. NB: although just copying

View File

@ -12,7 +12,7 @@
#include "dh_locl.h" #include "dh_locl.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "internal/bn_dh.h" #include "crypto/bn_dh.h"
static DH *dh_param_init(const BIGNUM *p, int32_t nbits) static DH *dh_param_init(const BIGNUM *p, int32_t nbits)
{ {

View File

@ -8,7 +8,7 @@
*/ */
#include "e_os.h" #include "e_os.h"
#include "internal/cryptlib_int.h" #include "crypto/cryptlib.h"
#if defined(_WIN32) || defined(__CYGWIN__) #if defined(_WIN32) || defined(__CYGWIN__)
# ifdef __CYGWIN__ # ifdef __CYGWIN__

View File

@ -14,8 +14,8 @@
#include "dsa_locl.h" #include "dsa_locl.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/cms.h> #include <openssl/cms.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
{ {

View File

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/bn_int.h" #include "crypto/bn.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include "dsa_locl.h" #include "dsa_locl.h"

View File

@ -13,7 +13,7 @@
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "dsa_locl.h" #include "dsa_locl.h"
/* DSA pkey context structure */ /* DSA pkey context structure */

View File

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/dso.h" #include "internal/dso.h"
#include "internal/dso_conf.h" #include "crypto/dso_conf.h"
#include "internal/refcount.h" #include "internal/refcount.h"
/**********************************************************************/ /**********************************************************************/

View File

@ -10,7 +10,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include "internal/bn_int.h" #include "crypto/bn.h"
#include "ec_lcl.h" #include "ec_lcl.h"
#ifndef OPENSSL_NO_EC2M #ifndef OPENSSL_NO_EC2M

View File

@ -14,8 +14,8 @@
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/cms.h> #include <openssl/cms.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "ec_lcl.h" #include "ec_lcl.h"
#ifndef OPENSSL_NO_CMS #ifndef OPENSSL_NO_CMS

View File

@ -14,7 +14,7 @@
#include <openssl/ec.h> #include <openssl/ec.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "internal/refcount.h" #include "internal/refcount.h"
#include "internal/ec_int.h" #include "crypto/ec.h"
#if defined(__SUNPRO_C) #if defined(__SUNPRO_C)
# if __SUNPRO_C >= 0x520 # if __SUNPRO_C >= 0x520

View File

@ -12,7 +12,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/bn_int.h" #include "crypto/bn.h"
#include "ec_lcl.h" #include "ec_lcl.h"
#include "internal/refcount.h" #include "internal/refcount.h"

View File

@ -14,7 +14,7 @@
#include <openssl/ec.h> #include <openssl/ec.h>
#include "ec_lcl.h" #include "ec_lcl.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
/* EC pkey context structure */ /* EC pkey context structure */

View File

@ -11,7 +11,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/obj_mac.h> #include <openssl/obj_mac.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#include "internal/bn_int.h" #include "crypto/bn.h"
#include "ec_lcl.h" #include "ec_lcl.h"
int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen,

View File

@ -21,7 +21,7 @@
#include <string.h> #include <string.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/bn_int.h" #include "crypto/bn.h"
#include "ec_lcl.h" #include "ec_lcl.h"
#include "internal/refcount.h" #include "internal/refcount.h"

View File

@ -12,8 +12,8 @@
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/ec.h> #include <openssl/ec.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "ec_lcl.h" #include "ec_lcl.h"
#include "curve448/curve448_lcl.h" #include "curve448/curve448_lcl.h"

View File

@ -22,7 +22,7 @@
#include <openssl/objects.h> #include <openssl/objects.h>
#include <crypto/cryptodev.h> #include <crypto/cryptodev.h>
#include "internal/engine.h" #include "crypto/engine.h"
/* #define ENGINE_DEVCRYPTO_DEBUG */ /* #define ENGINE_DEVCRYPTO_DEBUG */

View File

@ -12,7 +12,7 @@
# define HEADER_ENGINE_INT_H # define HEADER_ENGINE_INT_H
# include "internal/cryptlib.h" # include "internal/cryptlib.h"
# include "internal/engine.h" # include "crypto/engine.h"
# include "internal/thread_once.h" # include "internal/thread_once.h"
# include "internal/refcount.h" # include "internal/refcount.h"

View File

@ -11,7 +11,7 @@
#include <stdio.h> #include <stdio.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/engine.h" #include "crypto/engine.h"
#include <openssl/pem.h> #include <openssl/pem.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/rand.h> #include <openssl/rand.h>

View File

@ -11,7 +11,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "internal/engine.h" #include "crypto/engine.h"
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>

View File

@ -10,7 +10,7 @@
#include "e_os.h" #include "e_os.h"
#include "eng_int.h" #include "eng_int.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include "internal/asn1_int.h" #include "crypto/asn1.h"
/* /*
* If this symbol is defined then ENGINE_get_pkey_asn1_meth_engine(), the * If this symbol is defined then ENGINE_get_pkey_asn1_meth_engine(), the

View File

@ -10,16 +10,16 @@
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include "internal/cryptlib_int.h" #include "crypto/cryptlib.h"
#include "internal/err.h" #include "internal/err.h"
#include "internal/err_int.h" #include "crypto/err.h"
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/opensslconf.h> #include <openssl/opensslconf.h>
#include "internal/thread_once.h" #include "internal/thread_once.h"
#include "internal/ctype.h" #include "crypto/ctype.h"
#include "internal/constant_time_locl.h" #include "internal/constant_time_locl.h"
#include "e_os.h" #include "e_os.h"

View File

@ -8,7 +8,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "internal/err_int.h" #include "crypto/err.h"
#include <openssl/asn1err.h> #include <openssl/asn1err.h>
#include <openssl/bnerr.h> #include <openssl/bnerr.h>
#include <openssl/ecerr.h> #include <openssl/ecerr.h>

View File

@ -32,7 +32,7 @@ L CMS include/openssl/cms.h crypto/cms/cms_err.c
L CT include/openssl/ct.h crypto/ct/ct_err.c L CT include/openssl/ct.h crypto/ct/ct_err.c
L ASYNC include/openssl/async.h crypto/async/async_err.c L ASYNC include/openssl/async.h crypto/async/async_err.c
L KDF include/openssl/kdf.h crypto/kdf/kdf_err.c L KDF include/openssl/kdf.h crypto/kdf/kdf_err.c
L SM2 crypto/include/internal/sm2.h crypto/sm2/sm2_err.c L SM2 include/crypto/sm2.h crypto/sm2/sm2_err.c
L OSSL_STORE include/openssl/store.h crypto/store/store_err.c L OSSL_STORE include/openssl/store.h crypto/store/store_err.c
# additional header files to be scanned for function names # additional header files to be scanned for function names

View File

@ -12,7 +12,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "evp_locl.h" #include "evp_locl.h"
#include "internal/bio.h" #include "internal/bio.h"

View File

@ -76,7 +76,7 @@
#include "internal/bio.h" #include "internal/bio.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
static int ok_write(BIO *h, const char *buf, int num); static int ok_write(BIO *h, const char *buf, int num);
static int ok_read(BIO *h, char *buf, int size); static int ok_read(BIO *h, char *buf, int size);

View File

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include <openssl/pkcs12.h> #include <openssl/pkcs12.h>
#include <openssl/objects.h> #include <openssl/objects.h>

View File

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include <openssl/pkcs12.h> #include <openssl/pkcs12.h>
#include <openssl/objects.h> #include <openssl/objects.h>

View File

@ -10,7 +10,7 @@
#include <string.h> #include <string.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "evp_locl.h" #include "evp_locl.h"
EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len) EVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len)

View File

@ -12,7 +12,7 @@
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/engine.h> #include <openssl/engine.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "evp_locl.h" #include "evp_locl.h"
/* This call frees resources associated with the context */ /* This call frees resources associated with the context */

View File

@ -14,7 +14,7 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "modes_lcl.h" #include "modes_lcl.h"
#include <openssl/rand.h> #include <openssl/rand.h>
#include "evp_locl.h" #include "evp_locl.h"

View File

@ -18,7 +18,7 @@
#include <openssl/sha.h> #include <openssl/sha.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#include "modes_lcl.h" #include "modes_lcl.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "internal/constant_time_locl.h" #include "internal/constant_time_locl.h"
typedef struct { typedef struct {

View File

@ -20,7 +20,7 @@
#include <openssl/rand.h> #include <openssl/rand.h>
#include "modes_lcl.h" #include "modes_lcl.h"
#include "internal/constant_time_locl.h" #include "internal/constant_time_locl.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
typedef struct { typedef struct {
AES_KEY ks; AES_KEY ks;

View File

@ -14,8 +14,8 @@
# include <openssl/modes.h> # include <openssl/modes.h>
# include <openssl/rand.h> # include <openssl/rand.h>
# include <openssl/rand_drbg.h> # include <openssl/rand_drbg.h>
# include "internal/aria.h" # include "crypto/aria.h"
# include "internal/evp_int.h" # include "crypto/evp.h"
# include "modes_lcl.h" # include "modes_lcl.h"
# include "evp_locl.h" # include "evp_locl.h"

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#ifndef OPENSSL_NO_BF #ifndef OPENSSL_NO_BF
# include <openssl/evp.h> # include <openssl/evp.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/objects.h> # include <openssl/objects.h>
# include <openssl/blowfish.h> # include <openssl/blowfish.h>

View File

@ -17,7 +17,7 @@ NON_EMPTY_TRANSLATION_UNIT
# include <string.h> # include <string.h>
# include <assert.h> # include <assert.h>
# include <openssl/camellia.h> # include <openssl/camellia.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include "modes_lcl.h" # include "modes_lcl.h"
static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,

View File

@ -13,7 +13,7 @@
#ifndef OPENSSL_NO_CAST #ifndef OPENSSL_NO_CAST
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/cast.h> # include <openssl/cast.h>
static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, static int cast_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,

View File

@ -15,8 +15,8 @@
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "evp_locl.h" # include "evp_locl.h"
# include "internal/evp_int.h" # include "crypto/evp.h"
# include "internal/chacha.h" # include "crypto/chacha.h"
typedef struct { typedef struct {
union { union {
@ -146,7 +146,7 @@ const EVP_CIPHER *EVP_chacha20(void)
} }
# ifndef OPENSSL_NO_POLY1305 # ifndef OPENSSL_NO_POLY1305
# include "internal/poly1305.h" # include "crypto/poly1305.h"
typedef struct { typedef struct {
EVP_CHACHA_KEY key; EVP_CHACHA_KEY key;

View File

@ -12,7 +12,7 @@
#ifndef OPENSSL_NO_DES #ifndef OPENSSL_NO_DES
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/des.h> # include <openssl/des.h>
# include <openssl/rand.h> # include <openssl/rand.h>

View File

@ -12,7 +12,7 @@
#ifndef OPENSSL_NO_DES #ifndef OPENSSL_NO_DES
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/des.h> # include <openssl/des.h>
# include <openssl/rand.h> # include <openssl/rand.h>
# include "evp_locl.h" # include "evp_locl.h"

View File

@ -13,7 +13,7 @@
#ifndef OPENSSL_NO_IDEA #ifndef OPENSSL_NO_IDEA
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/idea.h> # include <openssl/idea.h>
/* Can't use IMPLEMENT_BLOCK_CIPHER because IDEA_ecb_encrypt is different */ /* Can't use IMPLEMENT_BLOCK_CIPHER because IDEA_ecb_encrypt is different */

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc); const unsigned char *iv, int enc);

View File

@ -14,7 +14,7 @@
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/rc2.h> # include <openssl/rc2.h>
static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,

View File

@ -16,7 +16,7 @@
# include <openssl/objects.h> # include <openssl/objects.h>
# include <openssl/rc4.h> # include <openssl/rc4.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
typedef struct { typedef struct {
RC4_KEY ks; /* working key */ RC4_KEY ks; /* working key */

View File

@ -19,7 +19,7 @@
# include <openssl/objects.h> # include <openssl/objects.h>
# include <openssl/rc4.h> # include <openssl/rc4.h>
# include <openssl/md5.h> # include <openssl/md5.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
typedef struct { typedef struct {
RC4_KEY ks; RC4_KEY ks;

View File

@ -13,7 +13,7 @@
#ifndef OPENSSL_NO_RC5 #ifndef OPENSSL_NO_RC5
# include <openssl/evp.h> # include <openssl/evp.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/objects.h> # include <openssl/objects.h>
# include "evp_locl.h" # include "evp_locl.h"
# include <openssl/rc5.h> # include <openssl/rc5.h>

View File

@ -16,7 +16,7 @@ NON_EMPTY_TRANSLATION_UNIT
# include <string.h> # include <string.h>
# include <assert.h> # include <assert.h>
# include <openssl/seed.h> # include <openssl/seed.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc); const unsigned char *iv, int enc);

View File

@ -13,8 +13,8 @@
#ifndef OPENSSL_NO_SM4 #ifndef OPENSSL_NO_SM4
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/modes.h> # include <openssl/modes.h>
# include "internal/sm4.h" # include "crypto/sm4.h"
# include "internal/evp_int.h" # include "crypto/evp.h"
typedef struct { typedef struct {
SM4_KEY ks; SM4_KEY ks;

View File

@ -14,7 +14,7 @@
# include <openssl/evp.h> # include <openssl/evp.h>
# include <openssl/objects.h> # include <openssl/objects.h>
# include "internal/evp_int.h" # include "crypto/evp.h"
# include <openssl/des.h> # include <openssl/des.h>
static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,

View File

@ -12,7 +12,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include "evp_locl.h" #include "evp_locl.h"
#include "internal/evp_int.h" #include "crypto/evp.h"
static unsigned char conv_ascii2bin(unsigned char a, static unsigned char conv_ascii2bin(unsigned char a,
const unsigned char *table); const unsigned char *table);

View File

@ -15,7 +15,7 @@
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/rand_drbg.h> #include <openssl/rand_drbg.h>
#include <openssl/engine.h> #include <openssl/engine.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "evp_locl.h" #include "evp_locl.h"
int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c) int EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c)

View File

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "internal/evp_int.h" #include "crypto/evp.h"
#include "evp_locl.h" #include "evp_locl.h"
int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type) int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type)

Some files were not shown because too many files have changed in this diff Show More