diff options
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index b1eeb85c64..18218f4c61 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.57 2014/07/09 11:25:42 jsing Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.58 2014/07/10 08:51:15 tedu Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -145,9 +145,6 @@ | |||
145 | 145 | ||
146 | #include <openssl/opensslconf.h> | 146 | #include <openssl/opensslconf.h> |
147 | 147 | ||
148 | #ifndef OPENSSL_NO_COMP | ||
149 | #include <openssl/comp.h> | ||
150 | #endif | ||
151 | #ifndef OPENSSL_NO_BIO | 148 | #ifndef OPENSSL_NO_BIO |
152 | #include <openssl/bio.h> | 149 | #include <openssl/bio.h> |
153 | #endif | 150 | #endif |
@@ -488,8 +485,6 @@ struct ssl_session_st { | |||
488 | time_t time; | 485 | time_t time; |
489 | int references; | 486 | int references; |
490 | 487 | ||
491 | unsigned int compress_meth; /* Need to lookup the method */ | ||
492 | |||
493 | const SSL_CIPHER *cipher; | 488 | const SSL_CIPHER *cipher; |
494 | unsigned long cipher_id; /* when ASN.1 loaded, this | 489 | unsigned long cipher_id; /* when ASN.1 loaded, this |
495 | * needs to be used to load | 490 | * needs to be used to load |
@@ -682,11 +677,6 @@ typedef struct ssl_comp_st SSL_COMP; | |||
682 | struct ssl_comp_st { | 677 | struct ssl_comp_st { |
683 | int id; | 678 | int id; |
684 | const char *name; | 679 | const char *name; |
685 | #ifndef OPENSSL_NO_COMP | ||
686 | COMP_METHOD *method; | ||
687 | #else | ||
688 | char *method; | ||
689 | #endif | ||
690 | }; | 680 | }; |
691 | 681 | ||
692 | DECLARE_STACK_OF(SSL_COMP) | 682 | DECLARE_STACK_OF(SSL_COMP) |
@@ -1099,11 +1089,6 @@ struct ssl_st { | |||
1099 | 1089 | ||
1100 | EVP_CIPHER_CTX *enc_read_ctx; /* cryptographic state */ | 1090 | EVP_CIPHER_CTX *enc_read_ctx; /* cryptographic state */ |
1101 | EVP_MD_CTX *read_hash; /* used for mac generation */ | 1091 | EVP_MD_CTX *read_hash; /* used for mac generation */ |
1102 | #ifndef OPENSSL_NO_COMP | ||
1103 | COMP_CTX *expand; /* uncompress */ | ||
1104 | #else | ||
1105 | char *expand; | ||
1106 | #endif | ||
1107 | 1092 | ||
1108 | SSL_AEAD_CTX *aead_write_ctx; /* AEAD context. If non-NULL, then | 1093 | SSL_AEAD_CTX *aead_write_ctx; /* AEAD context. If non-NULL, then |
1109 | enc_write_ctx and write_hash are | 1094 | enc_write_ctx and write_hash are |
@@ -1111,12 +1096,6 @@ struct ssl_st { | |||
1111 | 1096 | ||
1112 | EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ | 1097 | EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ |
1113 | EVP_MD_CTX *write_hash; /* used for mac generation */ | 1098 | EVP_MD_CTX *write_hash; /* used for mac generation */ |
1114 | #ifndef OPENSSL_NO_COMP | ||
1115 | COMP_CTX *compress; /* compression */ | ||
1116 | #else | ||
1117 | char *compress; | ||
1118 | |||
1119 | #endif | ||
1120 | 1099 | ||
1121 | /* session info */ | 1100 | /* session info */ |
1122 | 1101 | ||
@@ -1836,20 +1815,6 @@ void SSL_CTX_set_tmp_ecdh_callback(SSL_CTX *ctx, | |||
1836 | void SSL_set_tmp_ecdh_callback(SSL *ssl, | 1815 | void SSL_set_tmp_ecdh_callback(SSL *ssl, |
1837 | EC_KEY *(*ecdh)(SSL *ssl, int is_export, int keylength)); | 1816 | EC_KEY *(*ecdh)(SSL *ssl, int is_export, int keylength)); |
1838 | 1817 | ||
1839 | #ifndef OPENSSL_NO_COMP | ||
1840 | const COMP_METHOD *SSL_get_current_compression(SSL *s); | ||
1841 | const COMP_METHOD *SSL_get_current_expansion(SSL *s); | ||
1842 | const char *SSL_COMP_get_name(const COMP_METHOD *comp); | ||
1843 | STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void); | ||
1844 | int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm); | ||
1845 | #else | ||
1846 | const void *SSL_get_current_compression(SSL *s); | ||
1847 | const void *SSL_get_current_expansion(SSL *s); | ||
1848 | const char *SSL_COMP_get_name(const void *comp); | ||
1849 | void *SSL_COMP_get_compression_methods(void); | ||
1850 | int SSL_COMP_add_compression_method(int id, void *cm); | ||
1851 | #endif | ||
1852 | |||
1853 | /* TLS extensions functions */ | 1818 | /* TLS extensions functions */ |
1854 | int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len); | 1819 | int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len); |
1855 | 1820 | ||