1
#ifndef _IPXE_CLIENTCERT_H
2
#define _IPXE_CLIENTCERT_H
6
* Client certificate store
10
FILE_LICENCE ( GPL2_OR_LATER );
14
/** A client certificate */
15
struct client_certificate {
22
/** A client private key */
23
struct client_private_key {
30
extern struct client_certificate client_certificate;
31
extern struct client_private_key client_private_key;
34
* Check for presence of a client certificate
36
* @ret have_cert We have a client certificate and private key
38
static inline int have_client_certificate ( void ) {
39
return ( ( client_certificate.len > 0 ) &&
40
( client_private_key.len > 0 ) );
43
#endif /* _IPXE_CLIENTCERT_H */