PR: 2000
Submitted by: Vadim Zeitlin <vz-openssl@zeitlins.org> Approved by: steve@openssl.org Make no-comp compile without warnings.
This commit is contained in:
parent
ea904b4074
commit
f45e8c7bdd
10
apps/apps.h
10
apps/apps.h
@ -168,6 +168,12 @@ extern BIO *bio_err;
|
|||||||
#define do_pipe_sig()
|
#define do_pipe_sig()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef OPENSSL_NO_COMP
|
||||||
|
#define zlib_cleanup()
|
||||||
|
#else
|
||||||
|
#define zlib_cleanup() COMP_zlib_cleanup()
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MONOLITH) && !defined(OPENSSL_C)
|
#if defined(MONOLITH) && !defined(OPENSSL_C)
|
||||||
# define apps_startup() \
|
# define apps_startup() \
|
||||||
do_pipe_sig()
|
do_pipe_sig()
|
||||||
@ -182,7 +188,7 @@ extern BIO *bio_err;
|
|||||||
do { CONF_modules_unload(1); destroy_ui_method(); \
|
do { CONF_modules_unload(1); destroy_ui_method(); \
|
||||||
OBJ_cleanup(); EVP_cleanup(); ENGINE_cleanup(); \
|
OBJ_cleanup(); EVP_cleanup(); ENGINE_cleanup(); \
|
||||||
CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
|
CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
|
||||||
ERR_free_strings(); COMP_zlib_cleanup();} while(0)
|
ERR_free_strings(); zlib_cleanup();} while(0)
|
||||||
# else
|
# else
|
||||||
# define apps_startup() \
|
# define apps_startup() \
|
||||||
do { do_pipe_sig(); CRYPTO_malloc_init(); \
|
do { do_pipe_sig(); CRYPTO_malloc_init(); \
|
||||||
@ -192,7 +198,7 @@ extern BIO *bio_err;
|
|||||||
do { CONF_modules_unload(1); destroy_ui_method(); \
|
do { CONF_modules_unload(1); destroy_ui_method(); \
|
||||||
OBJ_cleanup(); EVP_cleanup(); \
|
OBJ_cleanup(); EVP_cleanup(); \
|
||||||
CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
|
CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
|
||||||
ERR_free_strings(); } while(0)
|
ERR_free_strings(); zlib_cleanup(); } while(0)
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -269,11 +269,14 @@ static int ssl23_client_hello(SSL *s)
|
|||||||
{
|
{
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
unsigned char *p,*d;
|
unsigned char *p,*d;
|
||||||
int i,j,ch_len;
|
int i,ch_len;
|
||||||
unsigned long Time,l;
|
unsigned long Time,l;
|
||||||
int ssl2_compat;
|
int ssl2_compat;
|
||||||
int version = 0, version_major, version_minor;
|
int version = 0, version_major, version_minor;
|
||||||
|
#ifndef OPENSSL_NO_COMP
|
||||||
|
int j;
|
||||||
SSL_COMP *comp;
|
SSL_COMP *comp;
|
||||||
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ssl2_compat = (s->options & SSL_OP_NO_SSLv2) ? 0 : 1;
|
ssl2_compat = (s->options & SSL_OP_NO_SSLv2) ? 0 : 1;
|
||||||
|
@ -120,13 +120,14 @@ int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp)
|
|||||||
{
|
{
|
||||||
#define LSIZE2 (sizeof(long)*2)
|
#define LSIZE2 (sizeof(long)*2)
|
||||||
int v1=0,v2=0,v3=0,v4=0,v5=0,v7=0,v8=0;
|
int v1=0,v2=0,v3=0,v4=0,v5=0,v7=0,v8=0;
|
||||||
unsigned char buf[4],ibuf1[LSIZE2],ibuf2[LSIZE2], cbuf;
|
unsigned char buf[4],ibuf1[LSIZE2],ibuf2[LSIZE2];
|
||||||
unsigned char ibuf3[LSIZE2],ibuf4[LSIZE2],ibuf5[LSIZE2];
|
unsigned char ibuf3[LSIZE2],ibuf4[LSIZE2],ibuf5[LSIZE2];
|
||||||
#ifndef OPENSSL_NO_TLSEXT
|
#ifndef OPENSSL_NO_TLSEXT
|
||||||
int v6=0,v9=0,v10=0;
|
int v6=0,v9=0,v10=0;
|
||||||
unsigned char ibuf6[LSIZE2];
|
unsigned char ibuf6[LSIZE2];
|
||||||
#endif
|
#endif
|
||||||
#ifndef OPENSSL_NO_COMP
|
#ifndef OPENSSL_NO_COMP
|
||||||
|
unsigned char cbuf;
|
||||||
int v11=0;
|
int v11=0;
|
||||||
#endif
|
#endif
|
||||||
long l;
|
long l;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user