diff options
author | kikht <kikht@yandex-team.ru> | 2022-02-10 16:45:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:14 +0300 |
commit | 194cae0e8855b11be2005e1eff12c660c3ee9774 (patch) | |
tree | ed29c437b616690880c017855ebe0be34fdf81a2 /contrib/libs/libevent/openssl-compat.h | |
parent | 49116032d905455a7b1c994e4a696afc885c1e71 (diff) | |
download | ydb-194cae0e8855b11be2005e1eff12c660c3ee9774.tar.gz |
Restoring authorship annotation for <kikht@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/libevent/openssl-compat.h')
-rw-r--r-- | contrib/libs/libevent/openssl-compat.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/contrib/libs/libevent/openssl-compat.h b/contrib/libs/libevent/openssl-compat.h index a23e34251b..c0ac9e03ee 100644 --- a/contrib/libs/libevent/openssl-compat.h +++ b/contrib/libs/libevent/openssl-compat.h @@ -1,47 +1,47 @@ #ifndef OPENSSL_COMPAT_H #define OPENSSL_COMPAT_H -#include <openssl/bio.h> -#include "util-internal.h" +#include <openssl/bio.h> +#include "util-internal.h" -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \ - (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) - -static inline BIO_METHOD *BIO_meth_new(int type, const char *name) +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \ + (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) + +static inline BIO_METHOD *BIO_meth_new(int type, const char *name) { - BIO_METHOD *biom = calloc(1, sizeof(BIO_METHOD)); + BIO_METHOD *biom = calloc(1, sizeof(BIO_METHOD)); - if (biom != NULL) { - biom->type = type; - biom->name = name; - } - return biom; + if (biom != NULL) { + biom->type = type; + biom->name = name; + } + return biom; } -#define BIO_meth_set_write(b, f) (b)->bwrite = (f) -#define BIO_meth_set_read(b, f) (b)->bread = (f) -#define BIO_meth_set_puts(b, f) (b)->bputs = (f) -#define BIO_meth_set_ctrl(b, f) (b)->ctrl = (f) -#define BIO_meth_set_create(b, f) (b)->create = (f) -#define BIO_meth_set_destroy(b, f) (b)->destroy = (f) +#define BIO_meth_set_write(b, f) (b)->bwrite = (f) +#define BIO_meth_set_read(b, f) (b)->bread = (f) +#define BIO_meth_set_puts(b, f) (b)->bputs = (f) +#define BIO_meth_set_ctrl(b, f) (b)->ctrl = (f) +#define BIO_meth_set_create(b, f) (b)->create = (f) +#define BIO_meth_set_destroy(b, f) (b)->destroy = (f) -#define BIO_set_init(b, val) (b)->init = (val) -#define BIO_set_data(b, val) (b)->ptr = (val) -#define BIO_set_shutdown(b, val) (b)->shutdown = (val) -#define BIO_get_init(b) (b)->init -#define BIO_get_data(b) (b)->ptr -#define BIO_get_shutdown(b) (b)->shutdown +#define BIO_set_init(b, val) (b)->init = (val) +#define BIO_set_data(b, val) (b)->ptr = (val) +#define BIO_set_shutdown(b, val) (b)->shutdown = (val) +#define BIO_get_init(b) (b)->init +#define BIO_get_data(b) (b)->ptr +#define BIO_get_shutdown(b) (b)->shutdown -#define TLS_method SSLv23_method +#define TLS_method SSLv23_method #define X509_getm_notBefore X509_get_notBefore #define X509_getm_notAfter X509_get_notAfter -#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || \ - (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) */ - -#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L -#define BIO_get_init(b) (b)->init -#endif - +#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || \ + (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) */ + +#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L +#define BIO_get_init(b) (b)->init +#endif + #endif /* OPENSSL_COMPAT_H */ |