From f4677b79609a17b125c46a8bc9899be94ac65919 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lutz=20J=C3=A4nicke?= Date: Mon, 5 Jan 2009 14:43:07 +0000 Subject: [PATCH] Fix compilation with -no-comp by adding some more #ifndef OPENSSL_NO_COMP Some #include statements were not properly protected. This will go unnoted on most systems as openssl/comp.h tends to be installed as a system header file by default but may become visible when cross compiling. --- ssl/d1_enc.c | 2 ++ ssl/ssl_ciph.c | 3 +++ ssl/ssl_locl.h | 4 ++++ ssl/t1_enc.c | 2 ++ 4 files changed, 11 insertions(+) diff --git a/ssl/d1_enc.c b/ssl/d1_enc.c index 8676125843..cf3332e4e4 100644 --- a/ssl/d1_enc.c +++ b/ssl/d1_enc.c @@ -115,7 +115,9 @@ #include #include "ssl_locl.h" +#ifndef OPENSSL_NO_COMP #include +#endif #include #include #include diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index 1a400121a1..0c2aa249b4 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -115,7 +115,10 @@ */ #include #include +#ifndef OPENSSL_NO_COMP #include +#endif + #include "ssl_locl.h" #define SSL_ENC_DES_IDX 0 diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 735db39713..ed4ddbbae6 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -124,7 +124,9 @@ #include "e_os.h" #include +#ifndef OPENSSL_NO_COMP #include +#endif #include #include #ifndef OPENSSL_NO_RSA @@ -500,6 +502,7 @@ typedef struct ssl3_enc_method int (*alert_value)(int); } SSL3_ENC_METHOD; +#ifndef OPENSSL_NO_COMP /* Used for holding the relevant compression methods loaded into SSL_CTX */ typedef struct ssl3_comp_st { @@ -507,6 +510,7 @@ typedef struct ssl3_comp_st char *name; /* Text name used for the compression type */ COMP_METHOD *method; /* The method :-) */ } SSL3_COMP; +#endif extern SSL3_ENC_METHOD ssl3_undef_enc_method; OPENSSL_EXTERN SSL_CIPHER ssl2_ciphers[]; diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index e2eadd5e44..7cb3e29a41 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -111,7 +111,9 @@ #include #include "ssl_locl.h" +#ifndef OPENSSL_NO_COMP #include +#endif #include #include #include -- 2.25.1