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_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);

View File

@ -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;
} }