From 827dd1bfee67daa683935ce65316f7e0f057fe1c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 31 Aug 2016 17:23:42 +0100 Subject: [PATCH] [crypto] Mark permanent certificates as permanent Signed-off-by: Michael Brown --- src/crypto/certstore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crypto/certstore.c b/src/crypto/certstore.c index d0ef5c5d..cdf6fb4d 100644 --- a/src/crypto/certstore.c +++ b/src/crypto/certstore.c @@ -240,6 +240,7 @@ static void certstore_init ( void ) { * permanent reference to it. */ certstore_add ( cert ); + cert->flags |= X509_FL_PERMANENT; DBGC ( &certstore, "CERTSTORE permanent certificate %d is %s\n", i, x509_name ( cert ) ); }