summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2016-08-31 18:23:42 +0200
committerMichael Brown2016-08-31 18:23:42 +0200
commit827dd1bfee67daa683935ce65316f7e0f057fe1c (patch)
tree795ca2b1789e268680bb312044fd083d25f04b2b /src
parent[cmdline] Add certificate management commands (diff)
downloadipxe-827dd1bfee67daa683935ce65316f7e0f057fe1c.tar.gz
ipxe-827dd1bfee67daa683935ce65316f7e0f057fe1c.tar.xz
ipxe-827dd1bfee67daa683935ce65316f7e0f057fe1c.zip
[crypto] Mark permanent certificates as permanent
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/certstore.c1
1 files changed, 1 insertions, 0 deletions
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 ) );
}