iPXE
certstore.h
Go to the documentation of this file.
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 
15 extern struct x509_chain certstore;
16 
17 extern struct x509_certificate * certstore_find ( struct asn1_cursor *raw );
18 extern struct x509_certificate * certstore_find_key ( struct asn1_cursor *key );
19 extern void certstore_add ( struct x509_certificate *cert );
20 extern void certstore_del ( struct x509_certificate *cert );
21 
22 #endif /* _IPXE_CERTSTORE_H */
void certstore_add(struct x509_certificate *cert)
Add certificate to store.
Definition: certstore.c:138
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
An X.509 certificate chain.
Definition: x509.h:177
void certstore_del(struct x509_certificate *cert)
Remove certificate from store.
Definition: certstore.c:153
ASN.1 encoding.
struct x509_chain certstore
Certificate store.
Definition: certstore.c:73
An X.509 certificate.
Definition: x509.h:185
X.509 certificates.
struct x509_certificate * certstore_find(struct asn1_cursor *raw)
Find certificate in store.
Definition: certstore.c:102
struct x509_certificate * certstore_find_key(struct asn1_cursor *key)
Find certificate in store corresponding to a private key.
Definition: certstore.c:119
__be32 raw[7]
Definition: CIB_PRM.h:28
An ASN.1 object cursor.
Definition: asn1.h:19
union @375 key
Sense key.
Definition: scsi.h:18