Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix up comment on GnuTLS dtls_ssl field
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 11, 2014
1 parent 6a3ad98 commit d736357
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions openconnect-internal.h
Expand Up @@ -251,11 +251,10 @@ struct openconnect_info {
SSL *dtls_ssl;
SSL_SESSION *dtls_session;
#elif defined(DTLS_GNUTLS)
/* Call these *_ssl rather than *_sess because they're just
pointers, and generic code (in mainloop.c for example)
wants to check if they're NULL or not. No point in being
differently named to the OpenSSL variant, and forcing us to
have ifdefs or accessor macros for them. */
/* Call this dtls_ssl rather than dtls_sess because it's just a
pointer, and generic code in dtls.c wants to check if it's
NULL or not or pass it to DTLS_SEND/DTLS_RECV. This way we
have fewer ifdefs and accessor macros for it. */
gnutls_session_t dtls_ssl;
#endif
int dtls_state;
Expand Down

0 comments on commit d736357

Please sign in to comment.