From: jsing Date: Thu, 22 May 2014 17:43:52 +0000 (+0000) Subject: There are two actual uses of e_os2.h in libssl - an OPENSSL_GLOBAL (an X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=68b99d3222e5ec9a22f1e097ab07231c86180061;p=openbsd There are two actual uses of e_os2.h in libssl - an OPENSSL_GLOBAL (an empty define) and an OPENSSL_EXTERN (which is defined as, well... extern). The use of OPENSSL_EXTERN is already inconsistent since the lines above and below just use plain old "extern". Expand the two uses of these macros and stop including e_os2.h in libssl. ok miod@ --- diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c index b99d6c4dd9f..0bb74760f2d 100644 --- a/lib/libssl/s3_lib.c +++ b/lib/libssl/s3_lib.c @@ -166,7 +166,7 @@ const char ssl3_version_str[]="SSLv3" OPENSSL_VERSION_PTEXT; #define SSL3_NUM_CIPHERS (sizeof(ssl3_ciphers) / sizeof(SSL_CIPHER)) /* list of available SSLv3 ciphers (sorted by id) */ -OPENSSL_GLOBAL SSL_CIPHER ssl3_ciphers[] = { +SSL_CIPHER ssl3_ciphers[] = { /* The RSA ciphers */ /* Cipher 01 */ diff --git a/lib/libssl/src/ssl/s3_lib.c b/lib/libssl/src/ssl/s3_lib.c index b99d6c4dd9f..0bb74760f2d 100644 --- a/lib/libssl/src/ssl/s3_lib.c +++ b/lib/libssl/src/ssl/s3_lib.c @@ -166,7 +166,7 @@ const char ssl3_version_str[]="SSLv3" OPENSSL_VERSION_PTEXT; #define SSL3_NUM_CIPHERS (sizeof(ssl3_ciphers) / sizeof(SSL_CIPHER)) /* list of available SSLv3 ciphers (sorted by id) */ -OPENSSL_GLOBAL SSL_CIPHER ssl3_ciphers[] = { +SSL_CIPHER ssl3_ciphers[] = { /* The RSA ciphers */ /* Cipher 01 */ diff --git a/lib/libssl/src/ssl/ssl.h b/lib/libssl/src/ssl/ssl.h index dc56abaa99a..98c7cfaa380 100644 --- a/lib/libssl/src/ssl/ssl.h +++ b/lib/libssl/src/ssl/ssl.h @@ -143,8 +143,6 @@ #ifndef HEADER_SSL_H #define HEADER_SSL_H -#include - #ifndef OPENSSL_NO_COMP #include #endif diff --git a/lib/libssl/src/ssl/ssl_cert.c b/lib/libssl/src/ssl/ssl_cert.c index 1b9944cf929..f89fa13951a 100644 --- a/lib/libssl/src/ssl/ssl_cert.c +++ b/lib/libssl/src/ssl/ssl_cert.c @@ -121,7 +121,6 @@ #include #include -#include #include #include #include diff --git a/lib/libssl/src/ssl/ssl_locl.h b/lib/libssl/src/ssl/ssl_locl.h index 012a38cc5c1..fc9d6a10271 100644 --- a/lib/libssl/src/ssl/ssl_locl.h +++ b/lib/libssl/src/ssl/ssl_locl.h @@ -152,7 +152,6 @@ #include #include -#include #include #ifndef OPENSSL_NO_COMP #include @@ -566,8 +565,7 @@ typedef struct ssl3_comp_st { #endif extern SSL3_ENC_METHOD ssl3_undef_enc_method; -OPENSSL_EXTERN SSL_CIPHER ssl3_ciphers[]; - +extern SSL_CIPHER ssl3_ciphers[]; SSL_METHOD *ssl_bad_method(int ver); diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index dc56abaa99a..98c7cfaa380 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -143,8 +143,6 @@ #ifndef HEADER_SSL_H #define HEADER_SSL_H -#include - #ifndef OPENSSL_NO_COMP #include #endif diff --git a/lib/libssl/ssl_cert.c b/lib/libssl/ssl_cert.c index 1b9944cf929..f89fa13951a 100644 --- a/lib/libssl/ssl_cert.c +++ b/lib/libssl/ssl_cert.c @@ -121,7 +121,6 @@ #include #include -#include #include #include #include diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h index 012a38cc5c1..fc9d6a10271 100644 --- a/lib/libssl/ssl_locl.h +++ b/lib/libssl/ssl_locl.h @@ -152,7 +152,6 @@ #include #include -#include #include #ifndef OPENSSL_NO_COMP #include @@ -566,8 +565,7 @@ typedef struct ssl3_comp_st { #endif extern SSL3_ENC_METHOD ssl3_undef_enc_method; -OPENSSL_EXTERN SSL_CIPHER ssl3_ciphers[]; - +extern SSL_CIPHER ssl3_ciphers[]; SSL_METHOD *ssl_bad_method(int ver);