Added a certificate validation hook to the credential manager

This commit is contained in:
Martin Willi
2010-07-13 10:26:07 +02:00
parent c3a9bef08e
commit 2feb16f5dd
3 changed files with 103 additions and 0 deletions
@@ -30,6 +30,7 @@ typedef struct credential_manager_t credential_manager_t;
#include <credentials/keys/private_key.h>
#include <credentials/keys/shared_key.h>
#include <credentials/certificates/certificate.h>
#include <credentials/cert_validator.h>
/**
* Manages credentials using credential_sets.
@@ -189,6 +190,20 @@ struct credential_manager_t {
*/
void (*remove_set)(credential_manager_t *this, credential_set_t *set);
/**
* Register a certificate validator to the manager.
*
* @param vdtr validator to register
*/
void (*add_validator)(credential_manager_t *this, cert_validator_t *vdtr);
/**
* Remove a certificate validator from the manager.
*
* @param vdtr validator to unregister
*/
void (*remove_validator)(credential_manager_t *this, cert_validator_t *vdtr);
/**
* Destroy a credential_manager instance.
*/