Skip to content
Snippets Groups Projects
Commit 18f662fc authored by Oto Šťáva's avatar Oto Šťáva
Browse files

fixup! daemon/tls: use GNUTLS_NO_TICKETS_TLS12

parent 749c031d
No related branches found
No related tags found
No related merge requests found
Pipeline #98996 failed
Pipeline: Knot Resolver

#98997

    This commit is part of merge request !1295. Comments created here will be created in the context of that merge request.
    ......@@ -332,11 +332,11 @@ struct tls_ctx *tls_new(struct worker_ctx *worker)
    return NULL;
    }
    int flags = GNUTLS_SERVER | GNUTLS_NONBLOCK
    int flags = GNUTLS_SERVER | GNUTLS_NONBLOCK;
    #if GNUTLS_VERSION_NUMBER >= 0x030705
    | GNUTLS_NO_TICKETS_TLS12;
    if (gnutls_check_version("3.7.5"))
    flags |= GNUTLS_NO_TICKETS_TLS12;
    #endif
    ;
    int err = gnutls_init(&tls->c.tls_session, flags);
    if (err != GNUTLS_E_SUCCESS) {
    kr_log_error(TLS, "gnutls_init(): %s (%d)\n", gnutls_strerror_name(err), err);
    ......@@ -1071,10 +1071,11 @@ struct tls_client_ctx *tls_client_ctx_new(tls_client_param_t *entry,
    #ifdef GNUTLS_ENABLE_FALSE_START
    | GNUTLS_ENABLE_FALSE_START
    #endif
    ;
    #if GNUTLS_VERSION_NUMBER >= 0x030705
    | GNUTLS_NO_TICKETS_TLS12;
    if (gnutls_check_version("3.7.5"))
    flags |= GNUTLS_NO_TICKETS_TLS12;
    #endif
    ;
    int ret = gnutls_init(&ctx->c.tls_session, flags);
    if (ret != GNUTLS_E_SUCCESS) {
    tls_client_ctx_free(ctx);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment