mirror of
https://repo.or.cz/socat.git
synced 2025-07-11 06:22:58 +00:00
With OPENSSL_API_COMPAT=0x10000000L the files openssl/dh.h, openssl/bn.h must be included
This commit is contained in:
parent
9209312c3c
commit
b7a277472b
7 changed files with 49 additions and 10 deletions
14
sslcls.c
14
sslcls.c
|
@ -21,12 +21,25 @@
|
|||
#include "sysutils.h"
|
||||
#include "sycls.h"
|
||||
|
||||
#if HAVE_OPENSSL_init_ssl
|
||||
int sycOPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings) {
|
||||
int result;
|
||||
Debug2("OPENSSL_init_ssl("F_uint64_t", %p)", opts, settings);
|
||||
result = OPENSSL_init_ssl(opts, settings);
|
||||
Debug1("OPENSSL_init_ssl() -> %d", result);
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !HAVE_OPENSSL_init_ssl
|
||||
void sycSSL_load_error_strings(void) {
|
||||
Debug("SSL_load_error_strings()");
|
||||
SSL_load_error_strings();
|
||||
Debug("SSL_load_error_strings() ->");
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !HAVE_OPENSSL_init_ssl
|
||||
int sycSSL_library_init(void) {
|
||||
int result;
|
||||
Debug("SSL_library_init()");
|
||||
|
@ -34,6 +47,7 @@ int sycSSL_library_init(void) {
|
|||
Debug1("SSL_library_init() -> %d", result);
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAVE_TLS_client_method
|
||||
const SSL_METHOD *sycTLS_client_method(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue