]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[crypto] Mark permanent certificates as permanent
authorMichael Brown <mcb30@ipxe.org>
Wed, 31 Aug 2016 16:23:42 +0000 (17:23 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 31 Aug 2016 16:23:42 +0000 (17:23 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/certstore.c

index d0ef5c5d5c29f001c31b8091809527b8a0a1f6f0..cdf6fb4dd2ff8e7503bd456fc3839ac4e99a10d1 100644 (file)
@@ -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 ) );
        }