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 #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 */
Private key.
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:199
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:207
X.509 certificates.
struct x509_certificate * certstore_find_key(struct private_key *key)
Find certificate in store corresponding to a private key.
Definition: certstore.c:119
struct x509_certificate * certstore_find(struct asn1_cursor *raw)
Find certificate in store.
Definition: certstore.c:102
A private key.
Definition: privkey.h:16
__be32 raw[7]
Definition: CIB_PRM.h:28
An ASN.1 object cursor.
Definition: asn1.h:20
union @382 key
Sense key.
Definition: crypto.h:284