Initial commit

FossilOrigin-Name: 092e97030576d0a75c192b86f49513cdd505800462f404a758c3bde533a4cb6c
This commit is contained in:
7u83@mail.ru 2014-08-03 06:46:42 +00:00
parent e95a74c2dc
commit 422a4acfae
3 changed files with 82 additions and 0 deletions

27
src/capwap/dtls_gnutls.c Normal file
View File

@ -0,0 +1,27 @@
/*
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/>.
*/
#include <gnutls/gnutls.h>
int dtls_gnutls_init()
{
gnutls_global_init();
return 1;
}

30
src/capwap/dtls_gnutls.h Normal file
View File

@ -0,0 +1,30 @@
/*
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/>.
*/
#ifndef __DTLS_GNUTLS_H
#define __DTLS_GNUTLS_H
#include "conn.h"
extern int dtls_gnutls_init();
extern int dtls_gnutls_accept(struct conn * conn);
extern const char * dtls_gnutls_get_cipher(struct conn * conn);
#endif

View File

@ -0,0 +1,25 @@
/*
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/>.
*/
#include "dtls_gnutls.h"
int dtls_gnutls_accept(struct conn * conn)
{
return 1;
}