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

Side by Side Diff: net/third_party/nss/ssl/ssl3ecc.c

Issue 111853013: Update net/third_party/nss to NSS 3.15.4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update the comment in sslenum.c for the two CHACHA20 cipher suites Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/third_party/nss/ssl/ssl3con.c ('k') | net/third_party/nss/ssl/ssl3ext.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * SSL3 Protocol 2 * SSL3 Protocol
3 * 3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public 4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 7
8 /* ECC code moved here from ssl3con.c */ 8 /* ECC code moved here from ssl3con.c */
9 9
10 #include "nss.h" 10 #include "nss.h"
(...skipping 20 matching lines...) Expand all
31 #include <stdio.h> 31 #include <stdio.h>
32 32
33 /* This is a bodge to allow this code to be compiled against older NSS headers 33 /* This is a bodge to allow this code to be compiled against older NSS headers
34 * that don't contain the TLS 1.2 changes. */ 34 * that don't contain the TLS 1.2 changes. */
35 #ifndef CKM_NSS_TLS_MASTER_KEY_DERIVE_DH_SHA256 35 #ifndef CKM_NSS_TLS_MASTER_KEY_DERIVE_DH_SHA256
36 #define CKM_NSS_TLS_MASTER_KEY_DERIVE_DH_SHA256 (CKM_NSS + 24) 36 #define CKM_NSS_TLS_MASTER_KEY_DERIVE_DH_SHA256 (CKM_NSS + 24)
37 #endif 37 #endif
38 38
39 #ifdef NSS_ENABLE_ECC 39 #ifdef NSS_ENABLE_ECC
40 40
41 /*
42 * In NSS 3.13.2 the definition of the EC_POINT_FORM_UNCOMPRESSED macro
43 * was moved from the internal header ec.h to the public header blapit.h.
44 * Define the macro here when compiling against older system NSS headers.
45 */
46 #ifndef EC_POINT_FORM_UNCOMPRESSED
47 #define EC_POINT_FORM_UNCOMPRESSED 0x04
48 #endif
49
50 #ifndef PK11_SETATTRS 41 #ifndef PK11_SETATTRS
51 #define PK11_SETATTRS(x,id,v,l) (x)->type = (id); \ 42 #define PK11_SETATTRS(x,id,v,l) (x)->type = (id); \
52 (x)->pValue=(v); (x)->ulValueLen = (l); 43 (x)->pValue=(v); (x)->ulValueLen = (l);
53 #endif 44 #endif
54 45
55 #define SSL_GET_SERVER_PUBLIC_KEY(sock, type) \ 46 #define SSL_GET_SERVER_PUBLIC_KEY(sock, type) \
56 (ss->serverCerts[type].serverKeyPair ? \ 47 (ss->serverCerts[type].serverKeyPair ? \
57 ss->serverCerts[type].serverKeyPair->pubKey : NULL) 48 ss->serverCerts[type].serverKeyPair->pubKey : NULL)
58 49
59 #define SSL_IS_CURVE_NEGOTIATED(curvemsk, curveName) \ 50 #define SSL_IS_CURVE_NEGOTIATED(curvemsk, curveName) \
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 ssl3_DisableECCSuites(ss, ecdhe_ecdsa_suites); 1266 ssl3_DisableECCSuites(ss, ecdhe_ecdsa_suites);
1276 return SECFailure; 1267 return SECFailure;
1277 1268
1278 loser: 1269 loser:
1279 /* no common curve supported */ 1270 /* no common curve supported */
1280 ssl3_DisableECCSuites(ss, ecSuites); 1271 ssl3_DisableECCSuites(ss, ecSuites);
1281 return SECFailure; 1272 return SECFailure;
1282 } 1273 }
1283 1274
1284 #endif /* NSS_ENABLE_ECC */ 1275 #endif /* NSS_ENABLE_ECC */
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/ssl3con.c ('k') | net/third_party/nss/ssl/ssl3ext.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698