diff options
author | Martin Willi <martin@revosec.ch> | 2013-04-29 11:19:57 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-07-18 12:17:54 +0200 |
commit | 7b8edabd8a6ff47d33f3ca47915179b073c72ec7 (patch) | |
tree | 70f087a95ab44ddeddbf691011bc41a84ffe4305 /src/libstrongswan/plugins/keychain/keychain_creds.h | |
parent | 5d36f04ee27ad6324ec3d81b7cb47577d87476de (diff) | |
download | strongswan-7b8edabd8a6ff47d33f3ca47915179b073c72ec7.tar.bz2 strongswan-7b8edabd8a6ff47d33f3ca47915179b073c72ec7.tar.xz |
keychain: add a stub for a credential plugin using OS X Keychain Services
Diffstat (limited to 'src/libstrongswan/plugins/keychain/keychain_creds.h')
-rw-r--r-- | src/libstrongswan/plugins/keychain/keychain_creds.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/keychain/keychain_creds.h b/src/libstrongswan/plugins/keychain/keychain_creds.h new file mode 100644 index 000000000..f2ca5d75c --- /dev/null +++ b/src/libstrongswan/plugins/keychain/keychain_creds.h @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2013 Martin Willi + * Copyright (C) 2013 revosec AG + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +/** + * @defgroup keychain_creds keychain_creds + * @{ @ingroup keychain + */ + +#ifndef KEYCHAIN_CREDS_H_ +#define KEYCHAIN_CREDS_H_ + +typedef struct keychain_creds_t keychain_creds_t; + +#include <credentials/credential_manager.h> + +/** + * Credential set using OS X Keychain Services. + */ +struct keychain_creds_t { + + /** + * Implements credential_set_t. + */ + credential_set_t set; + + /** + * Destroy a keychain_creds_t. + */ + void (*destroy)(keychain_creds_t *this); +}; + +/** + * Create a keychain_creds instance. + */ +keychain_creds_t *keychain_creds_create(); + +#endif /** KEYCHAIN_CREDS_H_ @}*/ |