Added a certificate validation hook to the credential manager
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user