Skip to content

Commit

Permalink
Document the remaining DTLS states
Browse files Browse the repository at this point in the history
At some point we might want to explain what each state means on ESP
versus Cisco connections, but this is a start.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
cernekee authored and David Woodhouse committed Mar 8, 2016
1 parent 436198a commit 90ac52e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openconnect-internal.h
Expand Up @@ -151,9 +151,9 @@ struct pkt {
#define KA_KEEPALIVE 3
#define KA_REKEY 4

#define DTLS_NOSECRET 0
#define DTLS_SECRET 1
#define DTLS_DISABLED 2
#define DTLS_NOSECRET 0 /* Random secret has not been generated yet */
#define DTLS_SECRET 1 /* Secret is present, ready to attempt DTLS */
#define DTLS_DISABLED 2 /* DTLS was disabled on the *client* side */
#define DTLS_SLEEPING 3 /* For ESP, sometimes sending probes */
#define DTLS_CONNECTING 4 /* ESP probe received; must tell server */
#define DTLS_CONNECTED 5 /* Server informed and should be sending ESP */
Expand Down

0 comments on commit 90ac52e

Please sign in to comment.