提交 b39fc560 编写于 作者: R Richard Levitte

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: NRich Salz <rsalz@openssl.org>
上级 7a05eaac
...@@ -43,7 +43,7 @@ LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o \ ...@@ -43,7 +43,7 @@ LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o \
SRC= $(LIBSRC) 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) ALL= $(GENERAL) $(SRC) $(HEADER)
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
* *
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/aes.h> #include <openssl/aes.h>
#include "aes_locl.h" #include "aes_locl.h"
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
* ==================================================================== * ====================================================================
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/aes.h> #include <openssl/aes.h>
#include <openssl/modes.h> #include <openssl/modes.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "asn1_locl.h" #include "asn1_locl.h"
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H #ifndef NO_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#ifndef NO_OLD_ASN1 #ifndef NO_OLD_ASN1
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/bn.h> #include <openssl/bn.h>
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "asn1_locl.h" #include "asn1_locl.h"
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "asn1_locl.h" #include "asn1_locl.h"
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
static int traverse_string(const unsigned char *p, int len, int inform, static int traverse_string(const unsigned char *p, int len, int inform,
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#include "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>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x) ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x)
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
int ASN1_PRINTABLE_type(const unsigned char *s, int len) int ASN1_PRINTABLE_type(const unsigned char *s, int len)
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H #ifndef NO_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "cryptlib.h" #include "internal/cryptlib.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>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "asn1_locl.h" #include "asn1_locl.h"
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "asn1_locl.h" #include "asn1_locl.h"
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "asn1_locl.h" #include "asn1_locl.h"
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
/* UTF8 utilities */ /* UTF8 utilities */
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H #ifndef NO_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#ifndef OPENSSL_NO_ENGINE #ifndef OPENSSL_NO_ENGINE
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
* *
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
static int asn1_get_length(const unsigned char **pp, int *inf, long *rl, static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include "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>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/conf.h> #include <openssl/conf.h>
#include <openssl/dso.h> #include <openssl/dso.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/conf.h> #include <openssl/conf.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
/* ASN1 packing and unpacking functions */ /* ASN1 packing and unpacking functions */
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "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 "internal/asn1_int.h"
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#ifndef OPENSSL_NO_RSA #ifndef OPENSSL_NO_RSA
# include <openssl/rsa.h> # include <openssl/rsa.h>
# include <openssl/objects.h> # include <openssl/objects.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/rand.h> #include <openssl/rand.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/rand.h> #include <openssl/rand.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/conf.h> #include <openssl/conf.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "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 "internal/bn_int.h"
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#ifndef OPENSSL_NO_RSA #ifndef OPENSSL_NO_RSA
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#ifndef OPENSSL_NO_RSA #ifndef OPENSSL_NO_RSA
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stddef.h> #include <stddef.h>
#include <string.h> #include <string.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stddef.h> #include <stddef.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stddef.h> #include <stddef.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/bn.h> #include <openssl/bn.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "asn1_locl.h" #include "asn1_locl.h"
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/bn.h> #include <openssl/bn.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include "internal/asn1_int.h" #include "internal/asn1_int.h"
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bio_lcl.h" #include "bio_lcl.h"
#define TRUNCATE #define TRUNCATE
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
#include <ctype.h> #include <ctype.h>
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#ifndef NO_SYS_TYPES_H #ifndef NO_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
#endif #endif
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#if defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_BSDSOCK) #if defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_BSDSOCK)
# include <netdb.h> # include <netdb.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
static int buffer_write(BIO *h, const char *buf, int num); static int buffer_write(BIO *h, const char *buf, int num);
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/evp.h> #include <openssl/evp.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/bio.h> #include <openssl/bio.h>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
/* /*
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/err.h> #include <openssl/err.h>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/stack.h> #include <openssl/stack.h>
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#ifndef OPENSSL_NO_SOCK #ifndef OPENSSL_NO_SOCK
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#ifndef OPENSSL_NO_SOCK #ifndef OPENSSL_NO_SOCK
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
#ifndef OPENSSL_NO_DGRAM #ifndef OPENSSL_NO_DGRAM
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "internal/cryptlib.h"
#if defined(OPENSSL_NO_POSIX_IO) #if defined(OPENSSL_NO_POSIX_IO)
/* /*
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
# include <stdio.h> # include <stdio.h>
# include <errno.h> # include <errno.h>
# include "cryptlib.h" # include "internal/cryptlib.h"
# include "bio_lcl.h" # include "bio_lcl.h"
# include <openssl/err.h> # include <openssl/err.h>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#if defined(OPENSSL_SYS_WINCE) #if defined(OPENSSL_SYS_WINCE)
#elif defined(OPENSSL_SYS_WIN32) #elif defined(OPENSSL_SYS_WIN32)
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
static int mem_write(BIO *h, const char *buf, int num); static int mem_write(BIO *h, const char *buf, int num);
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/bio.h> #include <openssl/bio.h>
static int null_write(BIO *h, const char *buf, int num); static int null_write(BIO *h, const char *buf, int num);
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#define USE_SOCKETS #define USE_SOCKETS
#include "cryptlib.h" #include "internal/cryptlib.h"
#ifndef OPENSSL_NO_SOCK #ifndef OPENSSL_NO_SOCK
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
/* r can == a or b */ /* r can == a or b */
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
#include <assert.h> #include <assert.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
#if defined(BN_LLONG) || defined(BN_UMULT_HIGH) #if defined(BN_LLONG) || defined(BN_UMULT_HIGH)
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
#define BN_BLINDING_COUNTER 32 #define BN_BLINDING_COUNTER 32
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#include <assert.h> #include <assert.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
/*- /*-
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
#include <openssl/rand.h> #include <openssl/rand.h>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <openssl/bn.h> #include <openssl/bn.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
/* The old slow way */ /* The old slow way */
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
* *
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
#define TABLE_SIZE 32 #define TABLE_SIZE 32
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
* *
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
static BIGNUM *euclid(BIGNUM *a, BIGNUM *b); static BIGNUM *euclid(BIGNUM *a, BIGNUM *b);
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
#ifndef OPENSSL_NO_EC2M #ifndef OPENSSL_NO_EC2M
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
* *
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
/* /*
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
* *
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
/* least significant word */ /* least significant word */
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
const char BN_version[] = "Big Number" OPENSSL_VERSION_PTEXT; const char BN_version[] = "Big Number" OPENSSL_VERSION_PTEXT;
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
* sections 3.8 and 4.2 in http://security.ece.orst.edu/koc/papers/r01rsasw.pdf * 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" #include "bn_lcl.h"
#define MONT_WORD /* use the faster word-based algorithm */ #define MONT_WORD /* use the faster word-based algorithm */
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
int BN_bn2mpi(const BIGNUM *a, unsigned char *d) int BN_bn2mpi(const BIGNUM *a, unsigned char *d)
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#endif #endif
#include <assert.h> #include <assert.h>
#include "cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_lcl.h"
#if defined(OPENSSL_NO_ASM) || !defined(OPENSSL_BN_ASM_PART_WORDS) #if defined(OPENSSL_NO_ASM) || !defined(OPENSSL_BN_ASM_PART_WORDS)
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册