removed X509_PEER flag; flags are meant to read cert, not to store additional state in cert
removed x509_t.set_flags for the reason above implemented a simple, generic shared_key_t
This commit is contained in:
@@ -83,4 +83,13 @@ struct shared_key_t {
|
||||
void (*destroy)(shared_key_t *this);
|
||||
};
|
||||
|
||||
/**
|
||||
* A simple private key implementation
|
||||
*
|
||||
* @param type type of the shared key
|
||||
* @param key key data, gets owned by instance
|
||||
* @return simple shared key instance
|
||||
*/
|
||||
shared_key_t *shared_key_create(shared_key_type_t type, chunk_t key);
|
||||
|
||||
#endif /** SHARED_KEY_H_ @} */
|
||||
|
||||
Reference in New Issue
Block a user