1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00
This commit is contained in:
lxsang 2019-12-15 18:23:01 +01:00
parent 63c65e0d46
commit b093bd0194
2 changed files with 5 additions and 3 deletions

View File

@ -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_session_id_context(ctx, (void *)&ssl_session_ctx_id, sizeof(ssl_session_ctx_id));
// 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);
exit(EXIT_FAILURE);

View File

@ -226,8 +226,8 @@ antd_task_t* antd_create_task(void* (*handle)(void*), void *data, void* (*callba
task->handle = handle;
task->callback = callback_of(callback);
task->priority = NORMAL_PRIORITY;
task->type = HEAVY;
//task->type = LIGHT;
//task->type = HEAVY;
task->type = LIGHT;
task->access_time = atime;
return task;
}