From: Richard Levitte Date: Thu, 20 May 2004 23:47:57 +0000 (+0000) Subject: Move some COMP functions to be inside the #ifndef OPENSSL_NO_COMP X-Git-Tag: BEN_FIPS_TEST_6~14^2~235 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6713a4835f0235e483c20994de6761050fc74006;p=oweals%2Fopenssl.git Move some COMP functions to be inside the #ifndef OPENSSL_NO_COMP wrapping preprocessor directive. This also removes a duplicate declaration. --- diff --git a/ssl/ssl.h b/ssl/ssl.h index 04909c829a..8ff9ab3304 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h @@ -1200,11 +1200,6 @@ int SSL_CIPHER_get_bits(SSL_CIPHER *c,int *alg_bits); char * SSL_CIPHER_get_version(SSL_CIPHER *c); const char * SSL_CIPHER_get_name(SSL_CIPHER *c); -const COMP_METHOD *SSL_get_current_compression(SSL *s); -const COMP_METHOD *SSL_get_current_expansion(SSL *s); -const char *SSL_COMP_get_name(const COMP_METHOD *comp); -STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); - int SSL_get_fd(SSL *s); int SSL_get_rfd(SSL *s); int SSL_get_wfd(SSL *s); @@ -1492,11 +1487,17 @@ void SSL_set_tmp_ecdh_callback(SSL *ssl, #endif #ifndef OPENSSL_NO_COMP +const COMP_METHOD *SSL_get_current_compression(SSL *s); +const COMP_METHOD *SSL_get_current_expansion(SSL *s); +const char *SSL_COMP_get_name(const COMP_METHOD *comp); STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); int SSL_COMP_add_compression_method(int id,COMP_METHOD *cm); #else +const void *SSL_get_current_compression(SSL *s); +const void *SSL_get_current_expansion(SSL *s); +const char *SSL_COMP_get_name(const void *comp); void *SSL_COMP_get_compression_methods(void); -int SSL_COMP_add_compression_method(int id,char *cm); +int SSL_COMP_add_compression_method(int id,void *cm); #endif /* BEGIN ERROR CODES */