Annotation of embedaddon/strongswan/src/libpttls/sasl/sasl_plain/sasl_plain.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (C) 2013 Martin Willi
! 3: * Copyright (C) 2013 revosec AG
! 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 sasl_plain sasl_plain
! 18: * @{ @ingroup sasl
! 19: */
! 20:
! 21: #ifndef SASL_PLAIN_H_
! 22: #define SASL_PLAIN_H_
! 23:
! 24: #include <sasl/sasl_mechanism.h>
! 25:
! 26: typedef struct sasl_plain_t sasl_plain_t;
! 27:
! 28: /**
! 29: * SASL Mechanism implementing PLAIN.
! 30: */
! 31: struct sasl_plain_t {
! 32:
! 33: /**
! 34: * Implements sasl_mechanism_t
! 35: */
! 36: sasl_mechanism_t sasl;
! 37: };
! 38:
! 39: /**
! 40: * Create a sasl_plain instance.
! 41: *
! 42: * @param name name of mechanism, must be "PLAIN"
! 43: * @param client client identity, NULL to act as server
! 44: * @return mechanism implementing PLAIN, NULL on error
! 45: */
! 46: sasl_plain_t *sasl_plain_create(char *name, identification_t *client);
! 47:
! 48: #endif /** SASL_PLAIN_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>