diff --git a/src/capwap/dtls_gnutls.c b/src/capwap/dtls_gnutls.c new file mode 100644 index 00000000..54788d2a --- /dev/null +++ b/src/capwap/dtls_gnutls.c @@ -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 . + +*/ + + +#include + + +int dtls_gnutls_init() +{ + gnutls_global_init(); + return 1; +} diff --git a/src/capwap/dtls_gnutls.h b/src/capwap/dtls_gnutls.h new file mode 100644 index 00000000..65684526 --- /dev/null +++ b/src/capwap/dtls_gnutls.h @@ -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 . + +*/ + +#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 + diff --git a/src/capwap/dtls_gnutls_accept.c b/src/capwap/dtls_gnutls_accept.c new file mode 100644 index 00000000..cb32d3e0 --- /dev/null +++ b/src/capwap/dtls_gnutls_accept.c @@ -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 . + +*/ + +#include "dtls_gnutls.h" + +int dtls_gnutls_accept(struct conn * conn) +{ + return 1; +} +