Return to ipseckey_cred.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libcharon / plugins / ipseckey |
1.1 misho 1: /* 2: * Copyright (C) 2012 Reto Guadagnini 3: * HSR Hochschule fuer Technik Rapperswil 4: * 5: * This program is free software; you can redistribute it and/or modify it 6: * under the terms of the GNU General Public License as published by the 7: * Free Software Foundation; either version 2 of the License, or (at your 8: * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. 9: * 10: * This program is distributed in the hope that it will be useful, but 11: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13: * for more details. 14: */ 15: 16: /** 17: * @defgroup ipseckey_cred_i ipseckey_cred 18: * @{ @ingroup ipseckey 19: */ 20: 21: #ifndef IPSECKEY_CRED_H_ 22: #define IPSECKEY_CRED_H_ 23: 24: #include <credentials/credential_set.h> 25: #include <resolver/resolver.h> 26: 27: typedef struct ipseckey_cred_t ipseckey_cred_t; 28: 29: /** 30: * IPSECKEY credential set. 31: * 32: * The ipseckey credential set contains IPSECKEYs as certificates of type 33: * pubkey_cert_t. 34: */ 35: struct ipseckey_cred_t { 36: 37: /** 38: * Implements credential_set_t interface 39: */ 40: credential_set_t set; 41: 42: /** 43: * Destroy the ipseckey_cred. 44: */ 45: void (*destroy)(ipseckey_cred_t *this); 46: }; 47: 48: /** 49: * Create an ipseckey_cred instance which uses the given resolver 50: * to query the DNS for IPSECKEY resource records. 51: * 52: * @param res resolver to use (gets adopted) 53: * @return credential set 54: */ 55: ipseckey_cred_t *ipseckey_cred_create(resolver_t *res); 56: 57: #endif /** IPSECKEY_CRED_H_ @}*/