mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +01:00
fix new ssl version linking bug
This commit is contained in:
parent
290c46ab3f
commit
62b037aeab
5
httpd.c
5
httpd.c
@ -38,7 +38,12 @@ SSL_CTX *create_context()
|
||||
|
||||
void configure_context(SSL_CTX *ctx)
|
||||
{
|
||||
#if defined(SSL_CTX_set_ecdh_auto)
|
||||
SSL_CTX_set_ecdh_auto(ctx, 1);
|
||||
#else
|
||||
SSL_CTX_set_tmp_ecdh(ctx, EC_KEY_new_by_curve_name(NID_X9_62_prime256v1));
|
||||
#endif
|
||||
//SSL_CTX_set_ecdh_auto(ctx, 1);
|
||||
/* Set some options and the session id.
|
||||
* SSL_OP_NO_SSLv2: SSLv2 is insecure, disable it.
|
||||
* SSL_OP_NO_TICKET: We don't want TLS tickets used because this is an SSL server caching example.
|
||||
|
Loading…
Reference in New Issue
Block a user