Function added to mem_cred_t to add shared secret with a linked list of owners.

This commit is contained in:
Tobias Brunner
2010-12-03 17:59:59 +01:00
parent 88f97e5c34
commit 3023a75e67
2 changed files with 33 additions and 10 deletions
+13 -1
View File
@@ -1,4 +1,6 @@
/*
* Copyright (C) 2010 Tobias Brunner
* Hochschule fuer Technik Rapperswil
* Copyright (C) 2010 Martin Willi
* Copyright (C) 2010 revosec AG
*
@@ -24,6 +26,7 @@
typedef struct mem_cred_t mem_cred_t;
#include <credentials/credential_set.h>
#include <utils/linked_list.h>
/**
* Generic in-memory credential set.
@@ -54,10 +57,19 @@ struct mem_cred_t {
* Add a shared key to the credential set.
*
* @param shared shared key to add, gets owned by set
* @param ... NULL terminated list of owners identification_t*
* @param ... NULL terminated list of owners (identification_t*)
*/
void (*add_shared)(mem_cred_t *this, shared_key_t *shared, ...);
/**
* Add a shared key to the credential set.
*
* @param shared shared key to add, gets owned by set
* @param owners list of owners (identification_t*), gets owned
*/
void (*add_shared_list)(mem_cred_t *this, shared_key_t *shared,
linked_list_t *owners);
/**
* Clear all credentials from the credential set.
*/