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 |
14 #include <memory> | 16 #include <memory> |
15 | 17 |
16 #include "webrtc/base/basictypes.h" | |
17 #include "webrtc/base/refcount.h" | 18 #include "webrtc/base/refcount.h" |
18 #include "webrtc/base/scoped_ref_ptr.h" | 19 #include "webrtc/base/scoped_ref_ptr.h" |
19 #include "webrtc/base/sslidentity.h" | 20 #include "webrtc/base/sslidentity.h" |
20 | 21 |
21 namespace rtc { | 22 namespace rtc { |
22 | 23 |
23 // 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 |
24 // certificate and acts as a text representation of RTCCertificate. Certificates | 25 // certificate and acts as a text representation of RTCCertificate. Certificates |
25 // 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 |
26 // 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 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 78 |
78 private: | 79 private: |
79 // The SSLIdentity is the owner of the SSLCertificate. To protect our | 80 // The SSLIdentity is the owner of the SSLCertificate. To protect our |
80 // ssl_certificate() we take ownership of |identity_|. | 81 // ssl_certificate() we take ownership of |identity_|. |
81 std::unique_ptr<SSLIdentity> identity_; | 82 std::unique_ptr<SSLIdentity> identity_; |
82 }; | 83 }; |
83 | 84 |
84 } // namespace rtc | 85 } // namespace rtc |
85 | 86 |
86 #endif // WEBRTC_BASE_RTCCERTIFICATE_H_ | 87 #endif // WEBRTC_BASE_RTCCERTIFICATE_H_ |
OLD | NEW |