mem-cred: Add method to remove a private key with a specific fingerprint

This commit is contained in:
Tobias Brunner
2017-02-16 19:21:12 +01:00
parent 257f6cb8e7
commit dd5ee9d415
2 changed files with 38 additions and 2 deletions
+11 -2
View File
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2010-2015 Tobias Brunner
* Hochschule fuer Technik Rapperswil
* Copyright (C) 2010-2016 Tobias Brunner
* HSR Hochschule fuer Technik Rapperswil
*
* Copyright (C) 2010 Martin Willi
* Copyright (C) 2010 revosec AG
*
@@ -86,6 +87,14 @@ struct mem_cred_t {
*/
void (*add_key)(mem_cred_t *this, private_key_t *key);
/**
* Remove a private key from the credential set.
*
* @param fp fingerprint of the key to remove
* @return TRUE if the key was found and removed
*/
bool (*remove_key)(mem_cred_t *this, chunk_t fp);
/**
* Add a shared key to the credential set.
*