| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 #ifndef WEBRTC_RTC_BASE_RTCCERTIFICATE_H_ | 11 #ifndef WEBRTC_RTC_BASE_RTCCERTIFICATE_H_ |
| 12 #define WEBRTC_RTC_BASE_RTCCERTIFICATE_H_ | 12 #define WEBRTC_RTC_BASE_RTCCERTIFICATE_H_ |
| 13 | 13 |
| 14 #include <stdint.h> | 14 #include <stdint.h> |
| 15 | 15 |
| 16 #include <memory> | 16 #include <memory> |
| 17 | 17 |
| 18 #include "webrtc/base/refcount.h" | 18 #include "webrtc/rtc_base/refcount.h" |
| 19 #include "webrtc/base/scoped_ref_ptr.h" | 19 #include "webrtc/rtc_base/scoped_ref_ptr.h" |
| 20 #include "webrtc/base/sslidentity.h" | 20 #include "webrtc/rtc_base/sslidentity.h" |
| 21 | 21 |
| 22 namespace rtc { | 22 namespace rtc { |
| 23 | 23 |
| 24 // This class contains PEM strings of an RTCCertificate's private key and | 24 // This class contains PEM strings of an RTCCertificate's private key and |
| 25 // certificate and acts as a text representation of RTCCertificate. Certificates | 25 // certificate and acts as a text representation of RTCCertificate. Certificates |
| 26 // can be serialized and deserialized to and from this format, which allows for | 26 // can be serialized and deserialized to and from this format, which allows for |
| 27 // cloning and storing of certificates to disk. The PEM format is that of | 27 // cloning and storing of certificates to disk. The PEM format is that of |
| 28 // |SSLIdentity::PrivateKeyToPEMString| and |SSLCertificate::ToPEMString|, e.g. | 28 // |SSLIdentity::PrivateKeyToPEMString| and |SSLCertificate::ToPEMString|, e.g. |
| 29 // the string representations used by OpenSSL. | 29 // the string representations used by OpenSSL. |
| 30 class RTCCertificatePEM { | 30 class RTCCertificatePEM { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 // The SSLIdentity is the owner of the SSLCertificate. To protect our | 80 // The SSLIdentity is the owner of the SSLCertificate. To protect our |
| 81 // ssl_certificate() we take ownership of |identity_|. | 81 // ssl_certificate() we take ownership of |identity_|. |
| 82 std::unique_ptr<SSLIdentity> identity_; | 82 std::unique_ptr<SSLIdentity> identity_; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace rtc | 85 } // namespace rtc |
| 86 | 86 |
| 87 #endif // WEBRTC_RTC_BASE_RTCCERTIFICATE_H_ | 87 #endif // WEBRTC_RTC_BASE_RTCCERTIFICATE_H_ |
| OLD | NEW |