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

Unified Diff: webrtc/base/sslidentity.h

Issue 1151943005: Ability to specify KeyType (RSA, ECDSA) for SSLIdentity generation in libjingle (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressing ASAN, LSAN issues in unittests Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/base/sslidentity.h
diff --git a/webrtc/base/sslidentity.h b/webrtc/base/sslidentity.h
index 320fe53d0f5ad01fee6790c469d7ab0276053c4d..733755feaf839b843dc803e1d3874b242e0e01ad 100644
--- a/webrtc/base/sslidentity.h
+++ b/webrtc/base/sslidentity.h
@@ -25,6 +25,16 @@ namespace rtc {
// Forward declaration due to circular dependency with SSLCertificate.
class SSLCertChain;
+enum KeyType {
hbos 2015/06/12 12:46:55 (Also defined in torbjorng@'s CL, to be merged.)
+ // Same order as |key_type_names| in .cc for index lookup.
+ KT_RSA = 0,
+ KT_ECDSA,
+
+ KT_DEFAULT = KT_RSA
+};
+
+std::string KeyTypeToString(KeyType key_type);
+
// Abstract interface overridden by SSL library specific
// implementations.

Powered by Google App Engine
This is Rietveld 408576698