summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2016-08-25 16:38:58 +0200
committerMichael Brown2016-08-31 16:41:02 +0200
commit9a1a42f2830ac797070cb6f807869872d7e7c19a (patch)
tree1ddddac488c2fd20a17a0e7df895411f05769f19 /src/include
parent[crypto] Expose certstore_del() to explicitly remove stored certificates (diff)
downloadipxe-9a1a42f2830ac797070cb6f807869872d7e7c19a.tar.gz
ipxe-9a1a42f2830ac797070cb6f807869872d7e7c19a.tar.xz
ipxe-9a1a42f2830ac797070cb6f807869872d7e7c19a.zip
[crypto] Allow certificates to be marked as having been added explicitly
Allow certificates to be marked as having been added explicitly at run time. Such certificates will not be discarded via the certificate store cache discarder. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/x509.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ipxe/x509.h b/src/include/ipxe/x509.h
index 58f91c01..78eeafbf 100644
--- a/src/include/ipxe/x509.h
+++ b/src/include/ipxe/x509.h
@@ -220,6 +220,10 @@ struct x509_certificate {
enum x509_flags {
/** Certificate has been validated */
X509_FL_VALIDATED = 0x0001,
+ /** Certificate was added at build time */
+ X509_FL_PERMANENT = 0x0002,
+ /** Certificate was added explicitly at run time */
+ X509_FL_EXPLICIT = 0x0004,
};
/**