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

Side by Side Diff: webrtc/base/sslidentity.h

Issue 1972873002: Try out ECDSA default after deadbeef's patch (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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 | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/pc/mediasession.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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 RTC_DISALLOW_COPY_AND_ASSIGN(SSLCertChain); 114 RTC_DISALLOW_COPY_AND_ASSIGN(SSLCertChain);
115 }; 115 };
116 116
117 // KT_DEFAULT is currently an alias for KT_RSA. This is likely to change. 117 // KT_DEFAULT is currently an alias for KT_RSA. This is likely to change.
118 // KT_LAST is intended for vector declarations and loops over all key types; 118 // KT_LAST is intended for vector declarations and loops over all key types;
119 // it does not represent any key type in itself. 119 // it does not represent any key type in itself.
120 // TODO(hbos,torbjorng): Don't change KT_DEFAULT without first updating 120 // TODO(hbos,torbjorng): Don't change KT_DEFAULT without first updating
121 // PeerConnectionFactory_nativeCreatePeerConnection's certificate generation 121 // PeerConnectionFactory_nativeCreatePeerConnection's certificate generation
122 // code. 122 // code.
123 enum KeyType { KT_RSA, KT_ECDSA, KT_LAST, KT_DEFAULT = KT_RSA }; 123 enum KeyType { KT_RSA, KT_ECDSA, KT_LAST, KT_DEFAULT = KT_ECDSA };
124 124
125 static const int kRsaDefaultModSize = 1024; 125 static const int kRsaDefaultModSize = 1024;
126 static const int kRsaDefaultExponent = 0x10001; // = 2^16+1 = 65537 126 static const int kRsaDefaultExponent = 0x10001; // = 2^16+1 = 65537
127 static const int kRsaMinModSize = 1024; 127 static const int kRsaMinModSize = 1024;
128 static const int kRsaMaxModSize = 8192; 128 static const int kRsaMaxModSize = 8192;
129 129
130 // Certificate default validity lifetime. 130 // Certificate default validity lifetime.
131 static const int kDefaultCertificateLifetimeInSeconds = 131 static const int kDefaultCertificateLifetimeInSeconds =
132 60 * 60 * 24 * 30; // 30 days 132 60 * 60 * 24 * 30; // 30 days
133 // Certificate validity window. 133 // Certificate validity window.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // |s| is not 0-terminated; its char count is defined by |length|. 247 // |s| is not 0-terminated; its char count is defined by |length|.
248 int64_t ASN1TimeToSec(const unsigned char* s, size_t length, bool long_format); 248 int64_t ASN1TimeToSec(const unsigned char* s, size_t length, bool long_format);
249 249
250 extern const char kPemTypeCertificate[]; 250 extern const char kPemTypeCertificate[];
251 extern const char kPemTypeRsaPrivateKey[]; 251 extern const char kPemTypeRsaPrivateKey[];
252 extern const char kPemTypeEcPrivateKey[]; 252 extern const char kPemTypeEcPrivateKey[];
253 253
254 } // namespace rtc 254 } // namespace rtc
255 255
256 #endif // WEBRTC_BASE_SSLIDENTITY_H_ 256 #endif // WEBRTC_BASE_SSLIDENTITY_H_
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | webrtc/pc/mediasession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698