Annotation of embedaddon/strongswan/src/libcharon/plugins/vici/vici_authority.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (C) 2015 Andreas Steffen
! 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 vici_authority vici_authority
! 18: * @{ @ingroup vici
! 19: */
! 20:
! 21: #ifndef VICI_AUTHORITY_H_
! 22: #define VICI_AUTHORITY_H_
! 23:
! 24: #include "vici_dispatcher.h"
! 25: #include "vici_cred.h"
! 26:
! 27: typedef struct vici_authority_t vici_authority_t;
! 28:
! 29: /**
! 30: * In-memory certification authority backend, managed by VICI.
! 31: */
! 32: struct vici_authority_t {
! 33:
! 34: /**
! 35: * Implements credential_set_t
! 36: */
! 37: credential_set_t set;
! 38:
! 39: /**
! 40: * Destroy a vici_authority_t.
! 41: */
! 42: void (*destroy)(vici_authority_t *this);
! 43: };
! 44:
! 45: /**
! 46: * Create a vici_authority instance.
! 47: *
! 48: * @param dispatcher dispatcher to receive requests from
! 49: * @param cred in-memory credential backend managed by VICI
! 50: * @return authority backend
! 51: */
! 52: vici_authority_t *vici_authority_create(vici_dispatcher_t *dispatcher,
! 53: vici_cred_t *cred);
! 54:
! 55: #endif /** VICI_AUTHORITY_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>