OLD | NEW |
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 |
11 // Handling of certificates and keypairs for SSLStreamAdapter's peer mode. | 11 // Handling of certificates and keypairs for SSLStreamAdapter's peer mode. |
12 #include "webrtc/rtc_base/sslidentity.h" | 12 #include "webrtc/base/sslidentity.h" |
13 | 13 |
14 #include <ctime> | 14 #include <ctime> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "webrtc/rtc_base/base64.h" | 17 #include "webrtc/base/base64.h" |
18 #include "webrtc/rtc_base/checks.h" | 18 #include "webrtc/base/checks.h" |
19 #include "webrtc/rtc_base/logging.h" | 19 #include "webrtc/base/logging.h" |
20 #include "webrtc/rtc_base/opensslidentity.h" | 20 #include "webrtc/base/opensslidentity.h" |
21 #include "webrtc/rtc_base/sslfingerprint.h" | 21 #include "webrtc/base/sslfingerprint.h" |
22 | 22 |
23 namespace rtc { | 23 namespace rtc { |
24 | 24 |
25 const char kPemTypeCertificate[] = "CERTIFICATE"; | 25 const char kPemTypeCertificate[] = "CERTIFICATE"; |
26 const char kPemTypeRsaPrivateKey[] = "RSA PRIVATE KEY"; | 26 const char kPemTypeRsaPrivateKey[] = "RSA PRIVATE KEY"; |
27 const char kPemTypeEcPrivateKey[] = "EC PRIVATE KEY"; | 27 const char kPemTypeEcPrivateKey[] = "EC PRIVATE KEY"; |
28 | 28 |
29 SSLCertificateStats::SSLCertificateStats( | 29 SSLCertificateStats::SSLCertificateStats( |
30 std::string&& fingerprint, | 30 std::string&& fingerprint, |
31 std::string&& fingerprint_algorithm, | 31 std::string&& fingerprint_algorithm, |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 316 |
317 if (bytes_left != 1) { | 317 if (bytes_left != 1) { |
318 // Now just Z should remain. Its existence was asserted above. | 318 // Now just Z should remain. Its existence was asserted above. |
319 return -1; | 319 return -1; |
320 } | 320 } |
321 | 321 |
322 return TmToSeconds(tm); | 322 return TmToSeconds(tm); |
323 } | 323 } |
324 | 324 |
325 } // namespace rtc | 325 } // namespace rtc |
OLD | NEW |