diff options
| author | jsing <> | 2017-01-25 03:20:27 +0000 |
|---|---|---|
| committer | jsing <> | 2017-01-25 03:20:27 +0000 |
| commit | db7670d2179ebab23ca5870d1e8ad41a03beddbd (patch) | |
| tree | 5e40fb54dd1fccfbcbe980ef1e02b717296b185f /src | |
| parent | d33bde3ed36857acb00572097ce6259ce3671a9d (diff) | |
| download | openbsd-db7670d2179ebab23ca5870d1e8ad41a03beddbd.tar.gz openbsd-db7670d2179ebab23ca5870d1e8ad41a03beddbd.tar.bz2 openbsd-db7670d2179ebab23ca5870d1e8ad41a03beddbd.zip | |
Provide defines for SSL_CTRL_SET_CURVES/SSL_CTRL_SET_CURVES_LIST for things
that are conditioning on these.
From BoringSSL.
ok beck@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/ssl.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index cf75130faf..8824d2e0f6 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl.h,v 1.122 2017/01/24 09:03:21 jsing Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.123 2017/01/25 03:20:27 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1176,6 +1176,20 @@ int SSL_set1_groups(SSL *ssl, const int *groups, size_t groups_len); | |||
| 1176 | int SSL_set1_groups_list(SSL *ssl, const char *groups); | 1176 | int SSL_set1_groups_list(SSL *ssl, const char *groups); |
| 1177 | 1177 | ||
| 1178 | #ifndef LIBRESSL_INTERNAL | 1178 | #ifndef LIBRESSL_INTERNAL |
| 1179 | /* | ||
| 1180 | * Preprocessor compatibility section. | ||
| 1181 | * | ||
| 1182 | * Historically, a number of APIs were implemented in OpenSSL as macros and | ||
| 1183 | * constants to 'ctrl' functions. To avoid breaking #ifdefs in consumers, this | ||
| 1184 | * section defines a number of legacy macros. | ||
| 1185 | * | ||
| 1186 | * Although using either the CTRL values or their wrapper macros in #ifdefs is | ||
| 1187 | * still supported, the CTRL values may not be passed to SSL_ctrl and | ||
| 1188 | * SSL_CTX_ctrl. Call the functions (previously wrapper macros) instead. | ||
| 1189 | */ | ||
| 1190 | #define SSL_CTRL_SET_CURVES doesnt_exist | ||
| 1191 | #define SSL_CTRL_SET_CURVES_LIST doesnt_exist | ||
| 1192 | |||
| 1179 | #define SSL_CTX_set1_curves SSL_CTX_set1_groups | 1193 | #define SSL_CTX_set1_curves SSL_CTX_set1_groups |
| 1180 | #define SSL_CTX_set1_curves_list SSL_CTX_set1_groups_list | 1194 | #define SSL_CTX_set1_curves_list SSL_CTX_set1_groups_list |
| 1181 | #define SSL_set1_curves SSL_set1_groups | 1195 | #define SSL_set1_curves SSL_set1_groups |
