1 #ifndef _IPXE_CERTSTORE_H
2 #define _IPXE_CERTSTORE_H
3 
4 /** @file
5  *
6  * Certificate store
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/asn1.h>
13 #include <ipxe/x509.h>
14 #include <ipxe/privkey.h>
15 
16 extern struct x509_chain certstore;
17 
18 extern struct x509_certificate * certstore_find ( struct asn1_cursor *raw );
19 extern struct x509_certificate * certstore_find_key ( struct private_key *key );
20 extern void certstore_add ( struct x509_certificate *cert );
21 extern void certstore_del ( struct x509_certificate *cert );
22 
23 #endif /* _IPXE_CERTSTORE_H */
24