Identify and move common internal libcrypto header files

There are header files in crypto/ that are used by a number of crypto/
submodules.  Move those to crypto/include/internal and adapt the
affected source code and Makefiles.

The header files that got moved are:

crypto/cryptolib.h
crypto/md32_common.h

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Richard Levitte 2015-05-14 16:56:48 +02:00
parent 7a05eaac5e
commit b39fc56061
380 changed files with 378 additions and 378 deletions

View File

@ -43,7 +43,7 @@ LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o \
SRC= $(LIBSRC)
HEADER= cryptlib.h buildinf.h md32_common.h
HEADER= buildinf.h arm_arch.h ppc_arch.h sparc_arch.h
ALL= $(GENERAL) $(SRC) $(HEADER)

View File

@ -49,7 +49,7 @@
*
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/aes.h>
#include "aes_locl.h"

View File

@ -52,7 +52,7 @@
* ====================================================================
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/aes.h>
#include <openssl/modes.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include "asn1_locl.h"

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <limits.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/asn1.h>

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H
# include <sys/types.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#ifndef NO_OLD_ASN1

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/bn.h>

View File

@ -62,7 +62,7 @@
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include "asn1_locl.h"

View File

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

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/bn.h>
#include "asn1_locl.h"

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <ctype.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
static int traverse_string(const unsigned char *p, int len, int inform,

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <limits.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/asn1.h>
#include <openssl/objects.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x)

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
int ASN1_PRINTABLE_type(const unsigned char *s, int len)

View File

@ -112,7 +112,7 @@
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H
# include <sys/types.h>

View File

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

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <ctype.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/objects.h>

View File

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

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/objects.h>
#include "asn1_locl.h"

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include "asn1_locl.h"

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
/* UTF8 utilities */

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H
# include <sys/types.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
#ifndef OPENSSL_NO_ENGINE

View File

@ -57,7 +57,7 @@
*
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/x509v3.h>

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <limits.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,

View File

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

View File

@ -55,7 +55,7 @@
#include <stdio.h>
#include <ctype.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/asn1.h>

View File

@ -60,7 +60,7 @@
#include <stdio.h>
#include <ctype.h>
#include <openssl/crypto.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/conf.h>
#include <openssl/dso.h>
#include <openssl/x509.h>

View File

@ -56,7 +56,7 @@
#include <stdio.h>
#include <ctype.h>
#include <openssl/crypto.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
/* ASN1 packing and unpacking functions */

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/objects.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/objects.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1t.h>

View File

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

View File

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

View File

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

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/x509.h>
#include "internal/asn1_int.h"

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/objects.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#ifndef OPENSSL_NO_RSA
# include <openssl/rsa.h>
# include <openssl/objects.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
#include <openssl/rand.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
#include <openssl/rand.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/conf.h>
#include <openssl/x509v3.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/bn.h>
#include <openssl/objects.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/objects.h>
#include <openssl/buffer.h>
#include "internal/bn_int.h"

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/bn.h>
#include <openssl/objects.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/x509.h>
#include <openssl/asn1.h>
#ifndef OPENSSL_NO_RSA

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/bn.h>
#ifndef OPENSSL_NO_RSA

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/asn1.h>
#include <openssl/x509.h>

View File

@ -59,7 +59,7 @@
#include <stddef.h>
#include <string.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#include <openssl/objects.h>

View File

@ -58,7 +58,7 @@
*/
#include <stddef.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#include <openssl/objects.h>

View File

@ -58,7 +58,7 @@
*/
#include <stddef.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#include <openssl/objects.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/bn.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include "asn1_locl.h"
#include <openssl/x509.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/asn1.h>
#include <openssl/x509.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/bn.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>
#include "internal/asn1_int.h"

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>

View File

@ -62,7 +62,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/x509.h>
#include <openssl/asn1t.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/x509.h>

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/asn1t.h>
#include <openssl/x509.h>

View File

@ -58,7 +58,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/asn1t.h>
#include <openssl/x509.h>

View File

@ -61,7 +61,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bio_lcl.h"
#define TRUNCATE

View File

@ -72,7 +72,7 @@
#include <ctype.h>
#include <assert.h>
#include <limits.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H
# include <sys/types.h>
#endif

View File

@ -60,7 +60,7 @@
#include <stdlib.h>
#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
#if defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_BSDSOCK)
# include <netdb.h>

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
static int buffer_write(BIO *h, const char *buf, int num);

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
#include <openssl/evp.h>

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/rand.h>
#include <openssl/bio.h>

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
/*

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
#include <openssl/err.h>

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <errno.h>
#include <openssl/crypto.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
#include <openssl/stack.h>

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
#ifndef OPENSSL_NO_SOCK

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
#ifndef OPENSSL_NO_SOCK

View File

@ -60,7 +60,7 @@
#include <stdio.h>
#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
#ifndef OPENSSL_NO_DGRAM

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
#include "internal/cryptlib.h"
#if defined(OPENSSL_NO_POSIX_IO)
/*

View File

@ -85,7 +85,7 @@
# include <stdio.h>
# include <errno.h>
# include "cryptlib.h"
# include "internal/cryptlib.h"
# include "bio_lcl.h"
# include <openssl/err.h>

View File

@ -65,7 +65,7 @@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#if defined(OPENSSL_SYS_WINCE)
#elif defined(OPENSSL_SYS_WIN32)

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
static int mem_write(BIO *h, const char *buf, int num);

View File

@ -58,7 +58,7 @@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include <openssl/bio.h>
static int null_write(BIO *h, const char *buf, int num);

View File

@ -59,7 +59,7 @@
#include <stdio.h>
#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
#include "internal/cryptlib.h"
#ifndef OPENSSL_NO_SOCK

View File

@ -56,7 +56,7 @@
* [including the GNU Public Licence.]
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
/* r can == a or b */

View File

@ -63,7 +63,7 @@
#include <assert.h>
#include <openssl/crypto.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#if defined(BN_LLONG) || defined(BN_UMULT_HIGH)

View File

@ -109,7 +109,7 @@
* [including the GNU Public Licence.]
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#define BN_BLINDING_COUNTER 32

View File

@ -62,7 +62,7 @@
#include <assert.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
/*-

View File

@ -60,7 +60,7 @@
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#include <openssl/rand.h>

View File

@ -57,7 +57,7 @@
*/
#include <openssl/bn.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
/* The old slow way */

View File

@ -109,7 +109,7 @@
*
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#include <stdlib.h>

View File

@ -110,7 +110,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#define TABLE_SIZE 32

View File

@ -109,7 +109,7 @@
*
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
static BIGNUM *euclid(BIGNUM *a, BIGNUM *b);

View File

@ -92,7 +92,7 @@
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#ifndef OPENSSL_NO_EC2M

View File

@ -52,7 +52,7 @@
*
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
/*

View File

@ -53,7 +53,7 @@
*
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
/* least significant word */

View File

@ -63,7 +63,7 @@
#include <assert.h>
#include <limits.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
const char BN_version[] = "Big Number" OPENSSL_VERSION_PTEXT;

View File

@ -113,7 +113,7 @@
* [including the GNU Public Licence.]
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)

View File

@ -116,7 +116,7 @@
* sections 3.8 and 4.2 in http://security.ece.orst.edu/koc/papers/r01rsasw.pdf
*/
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#define MONT_WORD /* use the faster word-based algorithm */

View File

@ -57,7 +57,7 @@
*/
#include <stdio.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
int BN_bn2mpi(const BIGNUM *a, unsigned char *d)

View File

@ -62,7 +62,7 @@
#endif
#include <assert.h>
#include "cryptlib.h"
#include "internal/cryptlib.h"
#include "bn_lcl.h"
#if defined(OPENSSL_NO_ASM) || !defined(OPENSSL_BN_ASM_PART_WORDS)

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