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

Identify and move OpenSSL internal header files

There are header files in crypto/ that are used by the rest of
OpenSSL.  Move those to include/internal and adapt the affected source
code, Makefiles and scripts.

The header files that got moved are:

crypto/constant_time_locl.h
crypto/o_dir.h
crypto/o_str.h
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 167f6c93
...@@ -43,8 +43,7 @@ LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o \ ...@@ -43,8 +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 o_str.h o_dir.h \ HEADER= cryptlib.h buildinf.h md32_common.h
constant_time_locl.h
ALL= $(GENERAL) $(SRC) $(HEADER) ALL= $(GENERAL) $(SRC) $(HEADER)
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
#define LP_find_file OPENSSL_DIR_read #define LP_find_file OPENSSL_DIR_read
#define LP_find_file_end OPENSSL_DIR_end #define LP_find_file_end OPENSSL_DIR_end
#include "o_dir.h" #include "internal/o_dir.h"
#define LPDIR_H #define LPDIR_H
#if defined OPENSSL_SYS_UNIX || defined DJGPP #if defined OPENSSL_SYS_UNIX || defined DJGPP
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "e_os2.h" #include "e_os2.h"
#include "o_dir.h" #include "internal/o_dir.h"
#if defined OPENSSL_SYS_UNIX || defined OPENSSL_SYS_WIN32 || defined OPENSSL_SYS_WINCE #if defined OPENSSL_SYS_UNIX || defined OPENSSL_SYS_WIN32 || defined OPENSSL_SYS_WINCE
# define CURRDIR "." # define CURRDIR "."
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
#include <ctype.h> #include <ctype.h>
#include <e_os.h> #include <e_os.h>
#include "o_str.h" #include "internal/o_str.h"
#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && \ #if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && \
!defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_SYS_WINCE) && \ !defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_SYS_WINCE) && \
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* one-wayness. For the RSA function, this is an equivalent notion. * one-wayness. For the RSA function, this is an equivalent notion.
*/ */
#include "constant_time_locl.h" #include "internal/constant_time_locl.h"
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "cryptlib.h"
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#include "constant_time_locl.h" #include "internal/constant_time_locl.h"
#include <stdio.h> #include <stdio.h>
#include "cryptlib.h" #include "cryptlib.h"
......
...@@ -605,7 +605,7 @@ extern int sys_nerr; ...@@ -605,7 +605,7 @@ extern int sys_nerr;
# define strerror(errnum) \ # define strerror(errnum) \
(((errnum)<0 || (errnum)>=sys_nerr) ? NULL : sys_errlist[errnum]) (((errnum)<0 || (errnum)>=sys_nerr) ? NULL : sys_errlist[errnum])
/* Being signed SunOS 4.x memcpy breaks ASN1_OBJECT table lookup */ /* Being signed SunOS 4.x memcpy breaks ASN1_OBJECT table lookup */
# include "crypto/o_str.h" # include "internal/o_str.h"
# define memcmp OPENSSL_memcmp # define memcmp OPENSSL_memcmp
# endif # endif
...@@ -624,7 +624,7 @@ extern int sys_nerr; ...@@ -624,7 +624,7 @@ extern int sys_nerr;
# define strncasecmp _strnicmp # define strncasecmp _strnicmp
# elif defined(OPENSSL_SYS_VMS) # elif defined(OPENSSL_SYS_VMS)
/* VMS below version 7.0 doesn't have strcasecmp() */ /* VMS below version 7.0 doesn't have strcasecmp() */
# include "o_str.h" # include "internal/o_str.h"
# define strcasecmp OPENSSL_strcasecmp # define strcasecmp OPENSSL_strcasecmp
# define strncasecmp OPENSSL_strncasecmp # define strncasecmp OPENSSL_strncasecmp
# define OPENSSL_IMPLEMENTS_strncasecmp # define OPENSSL_IMPLEMENTS_strncasecmp
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
DIR= ssl DIR= ssl
TOP= .. TOP= ..
CC= cc CC= cc
INCLUDES= -I../crypto -I$(TOP) -I../include INCLUDES= -I$(TOP) -I../include
CFLAG=-g CFLAG=-g
MAKEFILE= Makefile MAKEFILE= Makefile
AR= ar r AR= ar r
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
*/ */
#include "../ssl_locl.h" #include "../ssl_locl.h"
#include "../../crypto/constant_time_locl.h" #include "internal/constant_time_locl.h"
#include <openssl/rand.h> #include <openssl/rand.h>
#include "record_locl.h" #include "record_locl.h"
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
* *
*/ */
#include "../crypto/constant_time_locl.h" #include "internal/constant_time_locl.h"
#include "ssl_locl.h" #include "ssl_locl.h"
#include <openssl/md5.h> #include <openssl/md5.h>
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
#include <stdio.h> #include <stdio.h>
#include "ssl_locl.h" #include "ssl_locl.h"
#include "../crypto/constant_time_locl.h" #include "internal/constant_time_locl.h"
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/objects.h> #include <openssl/objects.h>
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
# include <sys/types.h> # include <sys/types.h>
#endif #endif
#include "o_dir.h" #include "internal/o_dir.h"
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/bio.h> #include <openssl/bio.h>
#include <openssl/pem.h> #include <openssl/pem.h>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
* [including the GNU Public Licence.] * [including the GNU Public Licence.]
*/ */
#include "../crypto/constant_time_locl.h" #include "internal/constant_time_locl.h"
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -262,8 +262,8 @@ $ssl.=" include/openssl/srtp.h"; ...@@ -262,8 +262,8 @@ $ssl.=" include/openssl/srtp.h";
my $crypto ="include/openssl/crypto.h"; my $crypto ="include/openssl/crypto.h";
$crypto.=" crypto/cryptlib.h"; $crypto.=" crypto/cryptlib.h";
$crypto.=" crypto/o_dir.h"; $crypto.=" include/internal/o_dir.h";
$crypto.=" crypto/o_str.h"; $crypto.=" include/internal/o_str.h";
$crypto.=" include/openssl/des.h" ; # unless $no_des; $crypto.=" include/openssl/des.h" ; # unless $no_des;
$crypto.=" include/openssl/idea.h" ; # unless $no_idea; $crypto.=" include/openssl/idea.h" ; # unless $no_idea;
$crypto.=" include/openssl/rc4.h" ; # unless $no_rc4; $crypto.=" include/openssl/rc4.h" ; # unless $no_rc4;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册