Hyperman

 view release on metacpan or  search on metacpan

include/hyperman/hm_tls.h  view on Meta::CPAN

        hm_errlog("Hyperman TLS: cannot load certificate '%s'\n", cert);
        ERR_print_errors_fp(stderr); SSL_CTX_free(ctx); return NULL;
    }
    if (SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM) <= 0) {
        hm_errlog("Hyperman TLS: cannot load private key '%s'\n", key);
        ERR_print_errors_fp(stderr); SSL_CTX_free(ctx); return NULL;
    }
    /*
     # uncoverable branch true
     # uncoverable condition left count:1 class:ignore_covered_err */
    if (!SSL_CTX_check_private_key(ctx)) {
        hm_errlog("Hyperman TLS: certificate and key do not match\n"); /* # uncoverable statement */
        SSL_CTX_free(ctx); return NULL; /* # uncoverable statement */
    }
#ifdef HM_HAVE_ALPN
    /* h3 only on a QUIC context: offering h2 or http/1.1 over QUIC is a
     * protocol error. The TCP list is untouched - h3 is discovered through
     * Alt-Svc, never through ALPN over TCP. */
    /*
     # uncoverable branch true class:ignore_covered_err
     # uncoverable condition left count:1 class:ignore_covered_err */



( run in 2.844 seconds using v1.01-cache-2.11-cpan-8379b9b8ec2 )