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

Side by Side Diff: net/ssl/ssl_cipher_suite_names.cc

Issue 2083743002: Adding TLS 1.3 constants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing max version constraints. Created 4 years, 5 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
« no previous file with comments | « net/ssl/openssl_ssl_util.cc ('k') | net/ssl/ssl_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/ssl/ssl_cipher_suite_names.h" 5 #include "net/ssl/ssl_cipher_suite_names.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <openssl/ssl.h> 9 #include <openssl/ssl.h>
10 10
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 break; 337 break;
338 case SSL_CONNECTION_VERSION_TLS1: 338 case SSL_CONNECTION_VERSION_TLS1:
339 *name = "TLS 1.0"; 339 *name = "TLS 1.0";
340 break; 340 break;
341 case SSL_CONNECTION_VERSION_TLS1_1: 341 case SSL_CONNECTION_VERSION_TLS1_1:
342 *name = "TLS 1.1"; 342 *name = "TLS 1.1";
343 break; 343 break;
344 case SSL_CONNECTION_VERSION_TLS1_2: 344 case SSL_CONNECTION_VERSION_TLS1_2:
345 *name = "TLS 1.2"; 345 *name = "TLS 1.2";
346 break; 346 break;
347 case SSL_CONNECTION_VERSION_TLS1_3:
348 *name = "TLS 1.3";
349 break;
347 case SSL_CONNECTION_VERSION_QUIC: 350 case SSL_CONNECTION_VERSION_QUIC:
348 *name = "QUIC"; 351 *name = "QUIC";
349 break; 352 break;
350 default: 353 default:
351 NOTREACHED() << ssl_version; 354 NOTREACHED() << ssl_version;
352 *name = "???"; 355 *name = "???";
353 break; 356 break;
354 } 357 }
355 } 358 }
356 359
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 case 14: // ECDHE_ECDSA 443 case 14: // ECDHE_ECDSA
441 case 16: // ECDHE_RSA 444 case 16: // ECDHE_RSA
442 break; 445 break;
443 default: 446 default:
444 return nullptr; 447 return nullptr;
445 } 448 }
446 return SSL_get_curve_name(key_exchange_info); 449 return SSL_get_curve_name(key_exchange_info);
447 } 450 }
448 451
449 } // namespace net 452 } // namespace net
OLDNEW
« no previous file with comments | « net/ssl/openssl_ssl_util.cc ('k') | net/ssl/ssl_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698