2014-07-11 22:12:11 +02:00
|
|
|
/*
|
|
|
|
This file is part of libcapwap.
|
|
|
|
|
|
|
|
libcapwap is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
libcapwap is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
*/
|
2015-04-07 07:42:36 +02:00
|
|
|
#ifndef __CW_DTLS_H
|
|
|
|
#define __CW_DTLS_H
|
|
|
|
|
|
|
|
|
2018-03-02 00:12:38 +01:00
|
|
|
#include "dtls_common.h"
|
2015-02-09 22:04:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-10 12:25:14 +02:00
|
|
|
#ifdef USE_OPENSSL
|
|
|
|
#include "dtls_openssl.h"
|
|
|
|
#define dtls_init dtls_openssl_init
|
|
|
|
#define dtls_accept dtls_openssl_accept
|
|
|
|
#define dtls_connect dtls_openssl_connect
|
|
|
|
#define dtls_shutdown dtls_openssl_shutdown
|
|
|
|
#define dtls_get_cipher dtls_openssl_get_cipher
|
2022-08-15 16:31:26 +02:00
|
|
|
#define dtls_data_destroy dtls_openssl_data_destroy
|
2022-07-10 12:25:14 +02:00
|
|
|
#else
|
2014-08-03 08:47:43 +02:00
|
|
|
#include "dtls_gnutls.h"
|
|
|
|
#define dtls_init dtls_gnutls_init
|
|
|
|
#define dtls_accept dtls_gnutls_accept
|
|
|
|
#define dtls_connect dtls_gnutls_connect
|
|
|
|
#define dtls_shutdown dtls_gnutls_shutdown
|
|
|
|
#define dtls_get_cipher dtls_gnutls_get_cipher
|
2015-02-09 22:04:54 +01:00
|
|
|
#define dtls_get_peers_cert dtls_gnutls_get_peers_cert
|
2018-04-02 01:39:08 +02:00
|
|
|
#endif
|
2014-08-03 08:47:43 +02:00
|
|
|
|
2015-02-07 03:00:39 +01:00
|
|
|
|
2014-07-11 22:12:11 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|