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

Side by Side Diff: webrtc/rtc_base/opensslidentity.cc

Issue 2962303003: Revert "Update includes for webrtc/{base => rtc_base} rename (3/3)" (Closed)
Patch Set: Created 3 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 | « webrtc/rtc_base/opensslidentity.h ('k') | webrtc/rtc_base/opensslstreamadapter.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
11 #include "webrtc/rtc_base/opensslidentity.h" 11 #include "webrtc/base/opensslidentity.h"
12 12
13 #include <memory> 13 #include <memory>
14 14
15 // Must be included first before openssl headers. 15 // Must be included first before openssl headers.
16 #include "webrtc/rtc_base/win32.h" // NOLINT 16 #include "webrtc/base/win32.h" // NOLINT
17 17
18 #include <openssl/bio.h> 18 #include <openssl/bio.h>
19 #include <openssl/err.h> 19 #include <openssl/err.h>
20 #include <openssl/pem.h> 20 #include <openssl/pem.h>
21 #include <openssl/bn.h> 21 #include <openssl/bn.h>
22 #include <openssl/rsa.h> 22 #include <openssl/rsa.h>
23 #include <openssl/crypto.h> 23 #include <openssl/crypto.h>
24 24
25 #include "webrtc/rtc_base/checks.h" 25 #include "webrtc/base/checks.h"
26 #include "webrtc/rtc_base/helpers.h" 26 #include "webrtc/base/helpers.h"
27 #include "webrtc/rtc_base/logging.h" 27 #include "webrtc/base/logging.h"
28 #include "webrtc/rtc_base/openssl.h" 28 #include "webrtc/base/openssl.h"
29 #include "webrtc/rtc_base/openssldigest.h" 29 #include "webrtc/base/openssldigest.h"
30 30
31 namespace rtc { 31 namespace rtc {
32 32
33 // We could have exposed a myriad of parameters for the crypto stuff, 33 // We could have exposed a myriad of parameters for the crypto stuff,
34 // but keeping it simple seems best. 34 // but keeping it simple seems best.
35 35
36 // Random bits for certificate serial number 36 // Random bits for certificate serial number
37 static const int SERIAL_RAND_BITS = 64; 37 static const int SERIAL_RAND_BITS = 64;
38 38
39 // Generate a key pair. Caller is responsible for freeing the returned object. 39 // Generate a key pair. Caller is responsible for freeing the returned object.
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 bool OpenSSLIdentity::operator==(const OpenSSLIdentity& other) const { 567 bool OpenSSLIdentity::operator==(const OpenSSLIdentity& other) const {
568 return *this->key_pair_ == *other.key_pair_ && 568 return *this->key_pair_ == *other.key_pair_ &&
569 *this->certificate_ == *other.certificate_; 569 *this->certificate_ == *other.certificate_;
570 } 570 }
571 571
572 bool OpenSSLIdentity::operator!=(const OpenSSLIdentity& other) const { 572 bool OpenSSLIdentity::operator!=(const OpenSSLIdentity& other) const {
573 return !(*this == other); 573 return !(*this == other);
574 } 574 }
575 575
576 } // namespace rtc 576 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/rtc_base/opensslidentity.h ('k') | webrtc/rtc_base/opensslstreamadapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698