move DTLS comments
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 22 Sep 2008 22:58:47 +0000 (15:58 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 22 Sep 2008 22:58:47 +0000 (15:58 -0700)
dtls.c
main.c

diff --git a/dtls.c b/dtls.c
index 07ce8ac..20e9a82 100644 (file)
--- a/dtls.c
+++ b/dtls.c
 
 #include "anyconnect.h"
 
+/*
+ * The master-secret is generated randomly by the client. The server
+ * responds with a DTLS Session-ID. These, done over the HTTPS
+ * connection, are enough to 'resume' a DTLS session, bypassing all
+ * the normal setup of a normal DTLS connection.
+ * 
+ * Cisco's own client uses an old version of OpenSSL, which implements
+ * the pre-RFC version of DTLS. I haven't been able to get it working 
+ * when I force it to link against any of my own builds of OpenSSL.
+ *
+ * Hopefully, it'll just work when I get round to implementing it
+ * here, either with the system OpenSSL, or linking against their
+ * library (which will at least be progress, and make it a little
+ * easier to debug.
+ */   
+
+
 int setup_dtls(struct anyconnect_info *vpninfo)
 {
        struct vpn_option *dtls_opt = vpninfo->dtls_options;
diff --git a/main.c b/main.c
index d42090c..6f2f502 100644 (file)
--- a/main.c
+++ b/main.c
 
 #include "anyconnect.h"
 
-/* The master-secret is generated randomly by the client. The server
-   responds with a DTLS Session-ID. These are enough to 'resume' the DTLS
-   session, bypassing all the initial setup of a normal DTLS connection.
-   Or you can just send traffic over the HTTPS connection... */
-
 int verbose = 0;
 
 static struct option long_options[] = {