mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-27 12:58:21 +01:00
New version of LibreSSL already implement these functions
This commit is contained in:
parent
d4ea2d12f3
commit
706e0f0281
@ -32,7 +32,7 @@
|
||||
#include "ssl.h"
|
||||
|
||||
|
||||
#if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER<0x10100000L
|
||||
#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) || (OPENSSL_VERSION_NUMBER < 0x1010000fL)
|
||||
#define SSL_is_server(s) (s->server)
|
||||
#define SSL_up_ref(ssl) CRYPTO_add(&(ssl)->references, 1, CRYPTO_LOCK_SSL)
|
||||
#define X509_up_ref(c) CRYPTO_add(&c->references, 1, CRYPTO_LOCK_X509)
|
||||
|
Loading…
Reference in New Issue
Block a user