Annotation of embedaddon/strongswan/src/libstrongswan/plugins/revocation/revocation_validator.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2018 Tobias Brunner
                      3:  * HSR Hochschule fuer Technik Rapperswil
                      4:  *
                      5:  * Copyright (C) 2010 Martin Willi
                      6:  * Copyright (C) 2010 revosec AG
                      7:  *
                      8:  * This program is free software; you can redistribute it and/or modify it
                      9:  * under the terms of the GNU General Public License as published by the
                     10:  * Free Software Foundation; either version 2 of the License, or (at your
                     11:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
                     12:  *
                     13:  * This program is distributed in the hope that it will be useful, but
                     14:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
                     15:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
                     16:  * for more details.
                     17:  */
                     18: 
                     19: /**
                     20:  * @defgroup revocation_validator revocation_validator
                     21:  * @{ @ingroup revocation
                     22:  */
                     23: 
                     24: #ifndef REVOCATION_VALIDATOR_H_
                     25: #define REVOCATION_VALIDATOR_H_
                     26: 
                     27: #include <credentials/cert_validator.h>
                     28: 
                     29: typedef struct revocation_validator_t revocation_validator_t;
                     30: 
                     31: /**
                     32:  * Certificate validator doing CRL/OCSP checking of X509 certificates.
                     33:  */
                     34: struct revocation_validator_t {
                     35: 
                     36:        /**
                     37:         * Implements cert_validator_t interface.
                     38:         */
                     39:        cert_validator_t validator;
                     40: 
                     41:        /**
                     42:         * Reload the configuration
                     43:         */
                     44:        void (*reload)(revocation_validator_t *this);
                     45: 
                     46:        /**
                     47:         * Destroy a revocation_validator_t.
                     48:         */
                     49:        void (*destroy)(revocation_validator_t *this);
                     50: };
                     51: 
                     52: /**
                     53:  * Create a revocation_validator instance.
                     54:  */
                     55: revocation_validator_t *revocation_validator_create();
                     56: 
                     57: #endif /** REVOCATION_VALIDATOR_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>