mem-cred: Add a method to atomically replace all certificates
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2013 Tobias Brunner
|
||||
* Copyright (C) 2010-2015 Tobias Brunner
|
||||
* Hochschule fuer Technik Rapperswil
|
||||
* Copyright (C) 2010 Martin Willi
|
||||
* Copyright (C) 2010 revosec AG
|
||||
@@ -102,6 +102,7 @@ struct mem_cred_t {
|
||||
*/
|
||||
void (*add_shared_list)(mem_cred_t *this, shared_key_t *shared,
|
||||
linked_list_t *owners);
|
||||
|
||||
/**
|
||||
* Add a certificate distribution point to the set.
|
||||
*
|
||||
@@ -112,6 +113,15 @@ struct mem_cred_t {
|
||||
void (*add_cdp)(mem_cred_t *this, certificate_type_t type,
|
||||
identification_t *id, char *uri);
|
||||
|
||||
/**
|
||||
* Replace all certificates in this credential set with those of another.
|
||||
*
|
||||
* @param other credential set to get certificates from
|
||||
* @param clone TRUE to clone certs, FALSE to adopt them (they
|
||||
* get removed from the other set)
|
||||
*/
|
||||
void (*replace_certs)(mem_cred_t *this, mem_cred_t *other, bool clone);
|
||||
|
||||
/**
|
||||
* Replace all secrets (private and shared keys) in this credential set
|
||||
* with those of another.
|
||||
|
||||
Reference in New Issue
Block a user