Annotation of embedaddon/strongswan/src/libcharon/plugins/dnscert/dnscert_cred.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (C) 2013 Ruslan Marchenko
! 3: *
! 4: * Permission is hereby granted, free of charge, to any person obtaining a copy
! 5: * of this software and associated documentation files (the "Software"), to deal
! 6: * in the Software without restriction, including without limitation the rights
! 7: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
! 8: * copies of the Software, and to permit persons to whom the Software is
! 9: * furnished to do so, subject to the following conditions:
! 10: *
! 11: * The above copyright notice and this permission notice shall be included in
! 12: * all copies or substantial portions of the Software.
! 13: *
! 14: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
! 15: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
! 16: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
! 17: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
! 18: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
! 19: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
! 20: * THE SOFTWARE.
! 21: */
! 22:
! 23: /**
! 24: * @defgroup dnscert_cred_i dnscert_cred
! 25: * @{ @ingroup dnscert
! 26: */
! 27:
! 28: #ifndef DNSCERT_CRED_H_
! 29: #define DNSCERT_CRED_H_
! 30:
! 31: #include <credentials/credential_set.h>
! 32: #include <resolver/resolver.h>
! 33:
! 34: typedef struct dnscert_cred_t dnscert_cred_t;
! 35:
! 36: /**
! 37: * DNSCERT credential set.
! 38: *
! 39: * The dnscert credential set contains CERT RRs as certificates.
! 40: */
! 41: struct dnscert_cred_t {
! 42:
! 43: /**
! 44: * Implements credential_set_t interface
! 45: */
! 46: credential_set_t set;
! 47:
! 48: /**
! 49: * Destroy the dnscert_cred.
! 50: */
! 51: void (*destroy)(dnscert_cred_t *this);
! 52: };
! 53:
! 54: /**
! 55: * Create a dnscert_cred instance which uses the given resolver
! 56: * to query the DNS for CERT resource records.
! 57: *
! 58: * @param res resolver to use (gets adopted)
! 59: * @return credential set
! 60: */
! 61: dnscert_cred_t *dnscert_cred_create(resolver_t *res);
! 62:
! 63: #endif /** DNSCERT_CRED_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>