Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: net/third_party/nss/ssl/sslproto.h

Issue 9764001: Add DTLS support to NSS, contributed by Eric Rescorla. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/third_party/nss/ssl/sslproto.h
===================================================================
--- net/third_party/nss/ssl/sslproto.h (revision 127709)
+++ net/third_party/nss/ssl/sslproto.h (working copy)
@@ -49,10 +49,15 @@
#define SSL_LIBRARY_VERSION_3_0 0x0300
#define SSL_LIBRARY_VERSION_TLS_1_0 0x0301
#define SSL_LIBRARY_VERSION_TLS_1_1 0x0302
+/* Note: this is the external format, not the wire format */
wtc 2012/03/21 01:22:07 You meant "internal format" rather than "external
ekr 2012/03/21 01:36:40 Yes. My bad.
+#define SSL_LIBRARY_VERSION_DTLS_1_0 0x0302
/* deprecated old name */
#define SSL_LIBRARY_VERSION_3_1_TLS SSL_LIBRARY_VERSION_TLS_1_0
+/* The DTLS version used in the spec */
+#define SSL_LIBRARY_VERSION_DTLS_1_0_WIRE ((~0x0100) & 0xffff)
wtc 2012/03/21 01:22:07 Nit: would it be faster to do (0x0100 ^ 0xffff)?
ekr 2012/03/21 01:36:40 Probably, but shouldn't the compiler make this a c
wtc 2012/03/21 02:12:01 Yes, you're right. I thought we may be performing
+
/* Header lengths of some of the messages */
#define SSL_HL_ERROR_HBYTES 3
#define SSL_HL_CLIENT_HELLO_HBYTES 9

Powered by Google App Engine
This is Rietveld 408576698