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.
This commit is contained in:
parent
792bbc2374
commit
fceac0bc74
@ -115,7 +115,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "ssl_locl.h"
|
#include "ssl_locl.h"
|
||||||
|
#ifndef OPENSSL_NO_COMP
|
||||||
#include <openssl/comp.h>
|
#include <openssl/comp.h>
|
||||||
|
#endif
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/hmac.h>
|
#include <openssl/hmac.h>
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
|
@ -142,7 +142,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <openssl/objects.h>
|
#include <openssl/objects.h>
|
||||||
|
#ifndef OPENSSL_NO_COMP
|
||||||
#include <openssl/comp.h>
|
#include <openssl/comp.h>
|
||||||
|
#endif
|
||||||
#ifndef OPENSSL_NO_ENGINE
|
#ifndef OPENSSL_NO_ENGINE
|
||||||
#include <openssl/engine.h>
|
#include <openssl/engine.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -150,7 +150,9 @@
|
|||||||
#include "e_os.h"
|
#include "e_os.h"
|
||||||
|
|
||||||
#include <openssl/buffer.h>
|
#include <openssl/buffer.h>
|
||||||
|
#ifndef OPENSSL_NO_COMP
|
||||||
#include <openssl/comp.h>
|
#include <openssl/comp.h>
|
||||||
|
#endif
|
||||||
#include <openssl/bio.h>
|
#include <openssl/bio.h>
|
||||||
#include <openssl/stack.h>
|
#include <openssl/stack.h>
|
||||||
#ifndef OPENSSL_NO_RSA
|
#ifndef OPENSSL_NO_RSA
|
||||||
@ -554,6 +556,7 @@ typedef struct ssl3_enc_method
|
|||||||
int (*alert_value)(int);
|
int (*alert_value)(int);
|
||||||
} SSL3_ENC_METHOD;
|
} SSL3_ENC_METHOD;
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_COMP
|
||||||
/* Used for holding the relevant compression methods loaded into SSL_CTX */
|
/* Used for holding the relevant compression methods loaded into SSL_CTX */
|
||||||
typedef struct ssl3_comp_st
|
typedef struct ssl3_comp_st
|
||||||
{
|
{
|
||||||
@ -561,6 +564,7 @@ typedef struct ssl3_comp_st
|
|||||||
char *name; /* Text name used for the compression type */
|
char *name; /* Text name used for the compression type */
|
||||||
COMP_METHOD *method; /* The method :-) */
|
COMP_METHOD *method; /* The method :-) */
|
||||||
} SSL3_COMP;
|
} SSL3_COMP;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_BUF_FREELISTS
|
#ifndef OPENSSL_NO_BUF_FREELISTS
|
||||||
typedef struct ssl3_buf_freelist_st
|
typedef struct ssl3_buf_freelist_st
|
||||||
|
@ -137,7 +137,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "ssl_locl.h"
|
#include "ssl_locl.h"
|
||||||
|
#ifndef OPENSSL_NO_COMP
|
||||||
#include <openssl/comp.h>
|
#include <openssl/comp.h>
|
||||||
|
#endif
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/hmac.h>
|
#include <openssl/hmac.h>
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user