Modified vici_cert_info class for use with load_creds and vici_cred
This commit is contained in:
@@ -26,39 +26,7 @@ typedef struct vici_cert_info_t vici_cert_info_t;
|
||||
#include <credentials/certificates/certificate.h>
|
||||
#include <credentials/certificates/x509.h>
|
||||
|
||||
/**
|
||||
* Information on vici certificate types
|
||||
*/
|
||||
struct vici_cert_info_t {
|
||||
|
||||
/**
|
||||
* Certificate type string used in vici messages
|
||||
*/
|
||||
char *type_str;
|
||||
|
||||
/**
|
||||
* Caption describing the certificate type
|
||||
*/
|
||||
char *caption;
|
||||
|
||||
/**
|
||||
* Base certificate type
|
||||
*/
|
||||
certificate_type_t type;
|
||||
|
||||
/**
|
||||
* X.509 flag
|
||||
*/
|
||||
x509_flag_t flag;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Retrieve information on a given certificate type
|
||||
*
|
||||
* @param type_str Vici certificate type string
|
||||
* @return Information record or NULL if not found
|
||||
*/
|
||||
vici_cert_info_t* vici_cert_info_retrieve(char *type_str);
|
||||
bool vici_cert_info_from_str(char *type_str, certificate_type_t *type,
|
||||
x509_flag_t *flag);
|
||||
|
||||
#endif /** VICI_CERT_INFO_H_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user