mirror of
https://github.com/Fishwaldo/minihttp.git
synced 2025-07-06 04:48:22 +00:00
Compile fix for newer polarssl/mbedtls headers
This commit is contained in:
parent
fbff82e607
commit
2d32a41975
1 changed files with 4 additions and 0 deletions
|
@ -399,8 +399,12 @@ static bool _openSSL(void *ps, SSLCtx *ctx)
|
|||
|
||||
/* SSLv3 is deprecated, set minimum to TLS 1.0 */
|
||||
ssl_set_min_version(&ctx->ssl, SSL_MAJOR_VERSION_3, SSL_MINOR_VERSION_1);
|
||||
|
||||
// The following is removed from newer polarssl versions
|
||||
#ifdef SSL_ARC4_DISABLED
|
||||
/* RC4 is deprecated, disable it */
|
||||
ssl_set_arc4_support(&ctx->ssl, SSL_ARC4_DISABLED );
|
||||
#endif
|
||||
|
||||
ssl_set_rng(&ctx->ssl, ctr_drbg_random, &ctx->ctr_drbg);
|
||||
ssl_set_dbg(&ctx->ssl, traceprint_ssl, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue