mirror of
https://repo.or.cz/socat.git
synced 2025-01-08 22:12:33 +00:00
LibreSSL support: check for OPENSSL_NO_COMP
This commit is contained in:
parent
d6b0e1425e
commit
522cf716f8
5 changed files with 9 additions and 6 deletions
3
CHANGES
3
CHANGES
|
@ -72,6 +72,9 @@ porting:
|
||||||
AIX-7 uses an extended O_ACCMODE that does not fit socat's internal
|
AIX-7 uses an extended O_ACCMODE that does not fit socat's internal
|
||||||
requirements. Thanks to Garrick Trowsdale for providing a patch
|
requirements. Thanks to Garrick Trowsdale for providing a patch
|
||||||
|
|
||||||
|
LibreSSL support: check for OPENSSL_NO_COMP
|
||||||
|
Thanks to Bernard Spil for providing a patch
|
||||||
|
|
||||||
testing:
|
testing:
|
||||||
socks4echo.sh and socks4a-echo.sh hung with new bash with read -n
|
socks4echo.sh and socks4a-echo.sh hung with new bash with read -n
|
||||||
|
|
||||||
|
|
2
sslcls.c
2
sslcls.c
|
@ -385,7 +385,7 @@ int sycFIPS_mode_set(int onoff) {
|
||||||
}
|
}
|
||||||
#endif /* WITH_FIPS */
|
#endif /* WITH_FIPS */
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x00908000L
|
#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
|
||||||
const COMP_METHOD *sycSSL_get_current_compression(SSL *ssl) {
|
const COMP_METHOD *sycSSL_get_current_compression(SSL *ssl) {
|
||||||
const COMP_METHOD *result;
|
const COMP_METHOD *result;
|
||||||
Debug1("SSL_get_current_compression(%p)", ssl);
|
Debug1("SSL_get_current_compression(%p)", ssl);
|
||||||
|
|
2
sslcls.h
2
sslcls.h
|
@ -55,7 +55,7 @@ BIO *sycBIO_new_file(const char *filename, const char *mode);
|
||||||
|
|
||||||
int sycFIPS_mode_set(int onoff);
|
int sycFIPS_mode_set(int onoff);
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x00908000L
|
#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
|
||||||
const COMP_METHOD *sycSSL_get_current_compression(SSL *ssl);
|
const COMP_METHOD *sycSSL_get_current_compression(SSL *ssl);
|
||||||
const COMP_METHOD *sycSSL_get_current_expansion(SSL *ssl);
|
const COMP_METHOD *sycSSL_get_current_expansion(SSL *ssl);
|
||||||
const char *sycSSL_COMP_get_name(const COMP_METHOD *comp);
|
const char *sycSSL_COMP_get_name(const COMP_METHOD *comp);
|
||||||
|
|
|
@ -110,7 +110,7 @@ const struct optdesc opt_openssl_cafile = { "openssl-cafile", "cafile",
|
||||||
const struct optdesc opt_openssl_capath = { "openssl-capath", "capath", OPT_OPENSSL_CAPATH, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC };
|
const struct optdesc opt_openssl_capath = { "openssl-capath", "capath", OPT_OPENSSL_CAPATH, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC };
|
||||||
const struct optdesc opt_openssl_egd = { "openssl-egd", "egd", OPT_OPENSSL_EGD, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC };
|
const struct optdesc opt_openssl_egd = { "openssl-egd", "egd", OPT_OPENSSL_EGD, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC };
|
||||||
const struct optdesc opt_openssl_pseudo = { "openssl-pseudo", "pseudo", OPT_OPENSSL_PSEUDO, GROUP_OPENSSL, PH_SPEC, TYPE_BOOL, OFUNC_SPEC };
|
const struct optdesc opt_openssl_pseudo = { "openssl-pseudo", "pseudo", OPT_OPENSSL_PSEUDO, GROUP_OPENSSL, PH_SPEC, TYPE_BOOL, OFUNC_SPEC };
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x00908000L
|
#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
|
||||||
const struct optdesc opt_openssl_compress = { "openssl-compress", "compress", OPT_OPENSSL_COMPRESS, GROUP_OPENSSL, PH_SPEC, TYPE_STRING, OFUNC_SPEC };
|
const struct optdesc opt_openssl_compress = { "openssl-compress", "compress", OPT_OPENSSL_COMPRESS, GROUP_OPENSSL, PH_SPEC, TYPE_STRING, OFUNC_SPEC };
|
||||||
#endif
|
#endif
|
||||||
#if WITH_FIPS
|
#if WITH_FIPS
|
||||||
|
@ -147,7 +147,7 @@ int xio_reset_fips_mode(void) {
|
||||||
static void openssl_conn_loginfo(SSL *ssl) {
|
static void openssl_conn_loginfo(SSL *ssl) {
|
||||||
Notice1("SSL connection using %s", SSL_get_cipher(ssl));
|
Notice1("SSL connection using %s", SSL_get_cipher(ssl));
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x00908000L
|
#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
|
||||||
{
|
{
|
||||||
const COMP_METHOD *comp, *expansion;
|
const COMP_METHOD *comp, *expansion;
|
||||||
|
|
||||||
|
|
|
@ -296,7 +296,7 @@ const struct optname optionnames[] = {
|
||||||
#if WITH_EXT2 && defined(EXT2_COMPR_FL)
|
#if WITH_EXT2 && defined(EXT2_COMPR_FL)
|
||||||
IF_ANY ("compr", &opt_ext2_compr)
|
IF_ANY ("compr", &opt_ext2_compr)
|
||||||
#endif
|
#endif
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x00908000L
|
#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
|
||||||
IF_OPENSSL("compress", &opt_openssl_compress)
|
IF_OPENSSL("compress", &opt_openssl_compress)
|
||||||
#endif
|
#endif
|
||||||
#ifdef TCP_CONN_ABORT_THRESHOLD /* HP_UX */
|
#ifdef TCP_CONN_ABORT_THRESHOLD /* HP_UX */
|
||||||
|
@ -1098,7 +1098,7 @@ const struct optname optionnames[] = {
|
||||||
IF_OPENSSL("openssl-certificate", &opt_openssl_certificate)
|
IF_OPENSSL("openssl-certificate", &opt_openssl_certificate)
|
||||||
IF_OPENSSL("openssl-cipherlist", &opt_openssl_cipherlist)
|
IF_OPENSSL("openssl-cipherlist", &opt_openssl_cipherlist)
|
||||||
IF_OPENSSL("openssl-commonname", &opt_openssl_commonname)
|
IF_OPENSSL("openssl-commonname", &opt_openssl_commonname)
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x00908000L
|
#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
|
||||||
IF_OPENSSL("openssl-compress", &opt_openssl_compress)
|
IF_OPENSSL("openssl-compress", &opt_openssl_compress)
|
||||||
#endif
|
#endif
|
||||||
IF_OPENSSL("openssl-dhparam", &opt_openssl_dhparam)
|
IF_OPENSSL("openssl-dhparam", &opt_openssl_dhparam)
|
||||||
|
|
Loading…
Reference in a new issue