| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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_SSLFINGERPRINT_H_ | 11 #ifndef WEBRTC_RTC_BASE_SSLFINGERPRINT_H_ |
| 12 #define WEBRTC_RTC_BASE_SSLFINGERPRINT_H_ | 12 #define WEBRTC_RTC_BASE_SSLFINGERPRINT_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "webrtc/rtc_base/basictypes.h" | 16 #include "webrtc/base/basictypes.h" |
| 17 #include "webrtc/rtc_base/copyonwritebuffer.h" | 17 #include "webrtc/base/copyonwritebuffer.h" |
| 18 #include "webrtc/rtc_base/rtccertificate.h" | 18 #include "webrtc/base/rtccertificate.h" |
| 19 #include "webrtc/rtc_base/sslidentity.h" | 19 #include "webrtc/base/sslidentity.h" |
| 20 | 20 |
| 21 namespace rtc { | 21 namespace rtc { |
| 22 | 22 |
| 23 class SSLCertificate; | 23 class SSLCertificate; |
| 24 | 24 |
| 25 struct SSLFingerprint { | 25 struct SSLFingerprint { |
| 26 static SSLFingerprint* Create(const std::string& algorithm, | 26 static SSLFingerprint* Create(const std::string& algorithm, |
| 27 const rtc::SSLIdentity* identity); | 27 const rtc::SSLIdentity* identity); |
| 28 | 28 |
| 29 static SSLFingerprint* Create(const std::string& algorithm, | 29 static SSLFingerprint* Create(const std::string& algorithm, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 std::string ToString() const; | 49 std::string ToString() const; |
| 50 | 50 |
| 51 std::string algorithm; | 51 std::string algorithm; |
| 52 rtc::CopyOnWriteBuffer digest; | 52 rtc::CopyOnWriteBuffer digest; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace rtc | 55 } // namespace rtc |
| 56 | 56 |
| 57 #endif // WEBRTC_RTC_BASE_SSLFINGERPRINT_H_ | 57 #endif // WEBRTC_RTC_BASE_SSLFINGERPRINT_H_ |
| OLD | NEW |