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

Side by Side Diff: webrtc/base/sslidentity.h

Issue 1268363002: DtlsIdentityStoreInterface added. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master, remove unnecessary forw decl Created 5 years, 4 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 | « talk/app/webrtc/peerconnectioninterface.h ('k') | no next file » | 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 // Handling of certificates and keypairs for SSLStreamAdapter's peer mode. 11 // Handling of certificates and keypairs for SSLStreamAdapter's peer mode.
12 12
13 #ifndef WEBRTC_BASE_SSLIDENTITY_H_ 13 #ifndef WEBRTC_BASE_SSLIDENTITY_H_
14 #define WEBRTC_BASE_SSLIDENTITY_H_ 14 #define WEBRTC_BASE_SSLIDENTITY_H_
15 15
16 #include <algorithm> 16 #include <algorithm>
17 #include <string> 17 #include <string>
18 #include <vector> 18 #include <vector>
19 19
20 #include "webrtc/base/buffer.h" 20 #include "webrtc/base/buffer.h"
21 #include "webrtc/base/messagedigest.h" 21 #include "webrtc/base/messagedigest.h"
22 22
23 namespace rtc { 23 namespace rtc {
24 24
25 enum KeyType { KT_RSA, KT_ECDSA, KT_LAST, KT_DEFAULT = KT_RSA };
26
25 // Forward declaration due to circular dependency with SSLCertificate. 27 // Forward declaration due to circular dependency with SSLCertificate.
26 class SSLCertChain; 28 class SSLCertChain;
27 29
28 // Abstract interface overridden by SSL library specific 30 // Abstract interface overridden by SSL library specific
29 // implementations. 31 // implementations.
30 32
31 // A somewhat opaque type used to encapsulate a certificate. 33 // A somewhat opaque type used to encapsulate a certificate.
32 // Wraps the SSL library's notion of a certificate, with reference counting. 34 // Wraps the SSL library's notion of a certificate, with reference counting.
33 // The SSLCertificate object is pretty much immutable once created. 35 // The SSLCertificate object is pretty much immutable once created.
34 // (The OpenSSL implementation only does reference counting and 36 // (The OpenSSL implementation only does reference counting and
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const unsigned char* data, 156 const unsigned char* data,
155 size_t length); 157 size_t length);
156 }; 158 };
157 159
158 extern const char kPemTypeCertificate[]; 160 extern const char kPemTypeCertificate[];
159 extern const char kPemTypeRsaPrivateKey[]; 161 extern const char kPemTypeRsaPrivateKey[];
160 162
161 } // namespace rtc 163 } // namespace rtc
162 164
163 #endif // WEBRTC_BASE_SSLIDENTITY_H_ 165 #endif // WEBRTC_BASE_SSLIDENTITY_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/peerconnectioninterface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698