From 0996dc5440cc233f029129182bbb6e3d4613045a Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Sat, 16 Jan 2016 00:08:38 -0500 Subject: Refactor apps load_certs/load_crls to work incrementally Reviewed-by: Richard Levitte --- apps/s_cb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/s_cb.c') diff --git a/apps/s_cb.c b/apps/s_cb.c index c72e4c2314..55d2c39e8b 100644 --- a/apps/s_cb.c +++ b/apps/s_cb.c @@ -1002,9 +1002,8 @@ int load_excert(SSL_EXCERT **pexc) if (!exc->key) return 0; if (exc->chainfile) { - exc->chain = load_certs(exc->chainfile, FORMAT_PEM, - NULL, NULL, "Server Chain"); - if (!exc->chain) + if (!load_certs(exc->chainfile, &exc->chain, FORMAT_PEM, NULL, + NULL, "Server Chain")) return 0; } } -- cgit v1.2.3