Annotation of embedaddon/strongswan/src/libstrongswan/plugins/pem/pem_builder.h, revision 1.1

1.1     ! misho       1: /*
        !             2:  * Copyright (C) 2013 Tobias Brunner
        !             3:  * Copyright (C) 2009 Martin Willi
        !             4:  * HSR Hochschule fuer Technik Rapperswil
        !             5:  *
        !             6:  * This program is free software; you can redistribute it and/or modify it
        !             7:  * under the terms of the GNU General Public License as published by the
        !             8:  * Free Software Foundation; either version 2 of the License, or (at your
        !             9:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
        !            10:  *
        !            11:  * This program is distributed in the hope that it will be useful, but
        !            12:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
        !            13:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
        !            14:  * for more details.
        !            15:  */
        !            16: 
        !            17: /**
        !            18:  * @defgroup pem_builder pem_builder
        !            19:  * @{ @ingroup pem_p
        !            20:  */
        !            21: 
        !            22: #ifndef PEM_BUILDER_H_
        !            23: #define PEM_BUILDER_H_
        !            24: 
        !            25: #include <credentials/builder.h>
        !            26: #include <credentials/credential_factory.h>
        !            27: #include <credentials/keys/private_key.h>
        !            28: #include <credentials/certificates/certificate.h>
        !            29: #include <credentials/containers/container.h>
        !            30: 
        !            31: /**
        !            32:  * Load PEM encoded private keys.
        !            33:  *
        !            34:  * @param type         type of the key
        !            35:  * @param args         builder_part_t argument list
        !            36:  * @return                     private key, NULL if failed
        !            37:  */
        !            38: private_key_t *pem_private_key_load(key_type_t type, va_list args);
        !            39: 
        !            40: /**
        !            41:  * Load PEM encoded public keys.
        !            42:  *
        !            43:  * @param type         type of the key
        !            44:  * @param args         builder_part_t argument list
        !            45:  * @return                     public key, NULL if failed
        !            46:  */
        !            47: public_key_t *pem_public_key_load(key_type_t type, va_list args);
        !            48: 
        !            49: /**
        !            50:  * Build PEM encoded certificates.
        !            51:  *
        !            52:  * @param type         type of the certificate
        !            53:  * @param args         builder_part_t argument list
        !            54:  * @return                     certificate, NULL if failed
        !            55:  */
        !            56: certificate_t *pem_certificate_load(certificate_type_t type, va_list args);
        !            57: 
        !            58: /**
        !            59:  * Build PEM encoded containers.
        !            60:  *
        !            61:  * @param type         type of the container
        !            62:  * @param args         builder_part_t argument list
        !            63:  * @return                     container, NULL if failed
        !            64:  */
        !            65: container_t *pem_container_load(container_type_t type, va_list args);
        !            66: 
        !            67: #endif /** PEM_BUILDER_H_ @}*/
        !            68: 

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