summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-16 00:04:45 +0100
committerFelix Fietkau <nbd@openwrt.org>2016-01-16 00:04:45 +0100
commit0c4f5c2493a4a9bbff28efd9661a967fe95e7495 (patch)
tree6550beaf9b148022d99813d3731128335ecfb937
parente5e801ca5d36387f5ce94bbe15b8cc3cd6858cd3 (diff)
downloadustream-ssl-0c4f5c2493a4a9bbff28efd9661a967fe95e7495.tar.gz
polarssl: init certificate storage
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--ustream-polarssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ustream-polarssl.c b/ustream-polarssl.c
index 9208e6a..7135d3c 100644
--- a/ustream-polarssl.c
+++ b/ustream-polarssl.c
@@ -100,6 +100,8 @@ __ustream_ssl_context_new(bool server)
ctx->server = server;
pk_init(&ctx->key);
+ x509_crt_init(&ctx->ca_cert);
+ x509_crt_init(&ctx->cert);
return ctx;
}