From 874a31ea0be9f6d3fe6e8fb0fa17e8b02ce8d37a Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Tue, 30 Jul 2019 16:14:34 +0200 Subject: quic: fix cert loading Type: fix Change-Id: I29d24c8ec7b8e0613d4fbf5eedc72384326dc284 Signed-off-by: Nathan Skrzypczak --- src/plugins/quic/quic.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/plugins/quic/quic.c') diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index 9ec7fd869d5..252f92d3160 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -927,8 +927,15 @@ allocate_quicly_ctx (application_t * app, u8 is_client) &ptls_openssl_sha256, key_vec); if (!is_client && app->tls_key != NULL && app->tls_cert != NULL) { - load_bio_private_key (quicly_ctx->tls, (char *) app->tls_key); - load_bio_certificate_chain (quicly_ctx->tls, (char *) app->tls_cert); + if (load_bio_private_key (quicly_ctx->tls, (char *) app->tls_key)) + { + QUIC_DBG (1, "failed to read private key from app configuration\n"); + } + if (load_bio_certificate_chain (quicly_ctx->tls, + (char *) app->tls_cert)) + { + QUIC_DBG (1, "failed to load certificate\n"); + } } } -- cgit 1.2.3-korg