mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 08:48:21 +01:00
zzzz
This commit is contained in:
parent
63c65e0d46
commit
b093bd0194
4
httpd.c
4
httpd.c
@ -59,7 +59,9 @@ void configure_context(SSL_CTX *ctx)
|
|||||||
SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET);
|
SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET);
|
||||||
SSL_CTX_set_session_id_context(ctx, (void *)&ssl_session_ctx_id, sizeof(ssl_session_ctx_id));
|
SSL_CTX_set_session_id_context(ctx, (void *)&ssl_session_ctx_id, sizeof(ssl_session_ctx_id));
|
||||||
// set the cipher suit
|
// set the cipher suit
|
||||||
if (SSL_CTX_set_cipher_list(ctx, CIPHER_SUIT) != 1)
|
config_t * cnf = config();
|
||||||
|
const char* suit = cnf->ssl_cipher?cnf->ssl_cipher:CIPHER_SUIT;
|
||||||
|
if (SSL_CTX_set_cipher_list(ctx, suit) != 1)
|
||||||
{
|
{
|
||||||
ERR_print_errors_fp(stderr);
|
ERR_print_errors_fp(stderr);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
@ -226,8 +226,8 @@ antd_task_t* antd_create_task(void* (*handle)(void*), void *data, void* (*callba
|
|||||||
task->handle = handle;
|
task->handle = handle;
|
||||||
task->callback = callback_of(callback);
|
task->callback = callback_of(callback);
|
||||||
task->priority = NORMAL_PRIORITY;
|
task->priority = NORMAL_PRIORITY;
|
||||||
task->type = HEAVY;
|
//task->type = HEAVY;
|
||||||
//task->type = LIGHT;
|
task->type = LIGHT;
|
||||||
task->access_time = atime;
|
task->access_time = atime;
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user