From 422a4acfaeee6319c58dedae41ae18c1f2e32d4b Mon Sep 17 00:00:00 2001
From: "7u83@mail.ru" <7u83@mail.ru@noemail.net>
Date: Sun, 3 Aug 2014 06:46:42 +0000
Subject: [PATCH] Initial commit
FossilOrigin-Name: 092e97030576d0a75c192b86f49513cdd505800462f404a758c3bde533a4cb6c
---
src/capwap/dtls_gnutls.c | 27 +++++++++++++++++++++++++++
src/capwap/dtls_gnutls.h | 30 ++++++++++++++++++++++++++++++
src/capwap/dtls_gnutls_accept.c | 25 +++++++++++++++++++++++++
3 files changed, 82 insertions(+)
create mode 100644 src/capwap/dtls_gnutls.c
create mode 100644 src/capwap/dtls_gnutls.h
create mode 100644 src/capwap/dtls_gnutls_accept.c
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;
+}
+