Modified vici_cert_info class for use with load_creds and vici_cred

This commit is contained in:
Andreas Steffen
2015-12-11 22:14:38 +01:00
parent 9dd8bfb2ce
commit 4df09fe563
2 changed files with 31 additions and 59 deletions
+2 -34
View File
@@ -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_ @}*/