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:
Martin Willi
2008-03-14 15:11:29 +00:00
parent 39ea88f694
commit 8d04f78d07
5 changed files with 106 additions and 40 deletions
@@ -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_ @} */