BUILD: ssl: use SSL_MODE_ASYNC macro instead of OPENSSL_VERSION

This commit is contained in:
Ilya Shipitsin
2020-11-14 01:56:34 +05:00
committed by William Lallemand
parent f69cd68737
commit bdec3ba796
5 changed files with 15 additions and 15 deletions

View File

@@ -20,7 +20,7 @@
#include <openssl/engine.h>
#endif
#if (OPENSSL_VERSION_NUMBER >= 0x1010000fL) && !defined(OPENSSL_NO_ASYNC) && !defined(LIBRESSL_VERSION_NUMBER)
#ifdef SSL_MODE_ASYNC
#include <openssl/async.h>
#endif

View File

@@ -95,7 +95,7 @@ SSL_CTX *ssl_sock_get_generated_cert(unsigned int key, struct bind_conf *bind_co
int ssl_sock_set_generated_cert(SSL_CTX *ctx, unsigned int key, struct bind_conf *bind_conf);
unsigned int ssl_sock_generated_cert_key(const void *data, size_t len);
void ssl_sock_load_cert_sni(struct ckch_inst *ckch_inst, struct bind_conf *bind_conf);
#if (HA_OPENSSL_VERSION_NUMBER >= 0x1010000fL) && !defined(OPENSSL_NO_ASYNC) && !defined(LIBRESSL_VERSION_NUMBER)
#ifdef SSL_MODE_ASYNC
void ssl_async_fd_handler(int fd);
void ssl_async_fd_free(int fd);
#endif