diff options
| author | 2018-03-03 19:58:29 +0000 | |
|---|---|---|
| committer | 2018-03-03 19:58:29 +0000 | |
| commit | 7208ea37bef32de71f12b87fce4dde55986b638e (patch) | |
| tree | e9e2e6c8e6ab816d2a37e920b28f98eb2cad4cc0 /lib/libssl/ssl.h | |
| parent | Be specific on what is slow (diff) | |
| download | wireguard-openbsd-7208ea37bef32de71f12b87fce4dde55986b638e.tar.xz wireguard-openbsd-7208ea37bef32de71f12b87fce4dde55986b638e.zip | |
Provide macro versions of SSL_CTX_set_min/max_proto_version and friends
Needed at least by openvpn-2.4.5, which detects availability of this
interface using #ifdefs... Discussed with & ok jsing@
Diffstat (limited to 'lib/libssl/ssl.h')
| -rw-r--r-- | lib/libssl/ssl.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h index d65e99363d6..e6556fd136c 100644 --- a/lib/libssl/ssl.h +++ b/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.145 2018/02/22 17:30:25 jsing Exp $ */ +/* $OpenBSD: ssl.h,v 1.146 2018/03/03 19:58:29 jca Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1200,6 +1200,21 @@ int SSL_set_max_proto_version(SSL *ssl, uint16_t version); #define SSL_get_server_tmp_key(s, pk) \ SSL_ctrl(s,SSL_CTRL_GET_SERVER_TMP_KEY,0,pk) +#ifndef LIBRESSL_INTERNAL +/* + * Also provide those functions as macros for compatibility with + * existing users. + */ +#define SSL_CTX_set1_groups SSL_CTX_set1_groups +#define SSL_CTX_set1_groups_list SSL_CTX_set1_groups_list +#define SSL_set1_groups SSL_set1_groups +#define SSL_set1_groups_list SSL_set1_groups_list +#define SSL_CTX_set_min_proto_version SSL_CTX_set_min_proto_version +#define SSL_CTX_set_max_proto_version SSL_CTX_set_max_proto_version +#define SSL_set_min_proto_version SSL_set_min_proto_version +#define SSL_set_max_proto_version SSL_set_max_proto_version +#endif + BIO_METHOD *BIO_f_ssl(void); BIO *BIO_new_ssl(SSL_CTX *ctx, int client); BIO *BIO_new_ssl_connect(SSL_CTX *ctx); |
