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_BASE_RTCCERTIFICATE_H_ | 11 #ifndef WEBRTC_BASE_RTCCERTIFICATE_H_ |
12 #define WEBRTC_BASE_RTCCERTIFICATE_H_ | 12 #define WEBRTC_BASE_RTCCERTIFICATE_H_ |
13 | 13 |
14 #include <stdint.h> | |
15 | |
16 #include <memory> | 14 #include <memory> |
17 | 15 |
| 16 #include "webrtc/base/basictypes.h" |
18 #include "webrtc/base/refcount.h" | 17 #include "webrtc/base/refcount.h" |
19 #include "webrtc/base/scoped_ref_ptr.h" | 18 #include "webrtc/base/scoped_ref_ptr.h" |
20 #include "webrtc/base/sslidentity.h" | 19 #include "webrtc/base/sslidentity.h" |
21 | 20 |
22 namespace rtc { | 21 namespace rtc { |
23 | 22 |
24 // This class contains PEM strings of an RTCCertificate's private key and | 23 // This class contains PEM strings of an RTCCertificate's private key and |
25 // certificate and acts as a text representation of RTCCertificate. Certificates | 24 // certificate and acts as a text representation of RTCCertificate. Certificates |
26 // can be serialized and deserialized to and from this format, which allows for | 25 // 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 | 26 // cloning and storing of certificates to disk. The PEM format is that of |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 77 |
79 private: | 78 private: |
80 // The SSLIdentity is the owner of the SSLCertificate. To protect our | 79 // The SSLIdentity is the owner of the SSLCertificate. To protect our |
81 // ssl_certificate() we take ownership of |identity_|. | 80 // ssl_certificate() we take ownership of |identity_|. |
82 std::unique_ptr<SSLIdentity> identity_; | 81 std::unique_ptr<SSLIdentity> identity_; |
83 }; | 82 }; |
84 | 83 |
85 } // namespace rtc | 84 } // namespace rtc |
86 | 85 |
87 #endif // WEBRTC_BASE_RTCCERTIFICATE_H_ | 86 #endif // WEBRTC_BASE_RTCCERTIFICATE_H_ |
OLD | NEW |