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

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

Issue 8156001: net: rework the NPN patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 2 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/sslimpl.h
diff --git a/net/third_party/nss/ssl/sslimpl.h b/net/third_party/nss/ssl/sslimpl.h
index d73a0e3e5d00b849c9b2311ffba9f647de3ab964..f872f374f51e48e55210d612c45933734ddcca66 100644
--- a/net/third_party/nss/ssl/sslimpl.h
+++ b/net/third_party/nss/ssl/sslimpl.h
@@ -322,11 +322,6 @@ typedef struct {
#endif /* NSS_ENABLE_ECC */
typedef struct sslOptionsStr {
- /* For clients, this is a validated list of protocols in preference order
- * and wire format. For servers, this is the list of support protocols,
- * also in wire format. */
- SECItem nextProtoNego;
-
unsigned int useSecurity : 1; /* 1 */
unsigned int useSocks : 1; /* 2 */
unsigned int requestCertificate : 1; /* 3 */
@@ -827,7 +822,6 @@ const ssl3CipherSuiteDef *suite_def;
#ifdef NSS_ENABLE_ECC
PRUint32 negotiatedECCurves; /* bit mask */
#endif /* NSS_ENABLE_ECC */
- PRBool nextProtoNego;/* Our peer has sent this extension */
} SSL3HandshakeState;
@@ -887,13 +881,9 @@ struct ssl3StateStr {
/* In a client: if the server supports Next Protocol Negotiation, then
* this is the protocol that was requested.
wtc 2011/10/11 23:43:04 Nit: I think "that was negotiated" or "that the cl
agl 2011/10/17 17:37:24 Done.
- * In a server: this is the protocol that the client requested via Next
- * Protocol Negotiation.
wtc 2011/10/11 23:43:04 Why do you delete this comment about servers? Is i
agl 2011/10/17 17:37:24 Right, the server side hasn't been written and the
*
- * In either case, if the data pointer is non-NULL, then it is malloced
- * data. */
+ * If the data pointer is non-NULL, then it is malloced data. */
SECItem nextProto;
- int nextProtoState; /* See SSL_NEXT_PROTO_* defines */
};
typedef struct {
@@ -1129,6 +1119,8 @@ const unsigned char * preferredCipher;
SSLHandshakeCallback handshakeCallback;
void *handshakeCallbackData;
void *pkcs11PinArg;
+ SSLNextProtoCallback nextProtoCallback;
+ void *nextProtoArg;
PRIntervalTime rTimeout; /* timeout for NSPR I/O */
PRIntervalTime wTimeout; /* timeout for NSPR I/O */

Powered by Google App Engine
This is Rietveld 408576698