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

Unified Diff: net/base/ssl_client_cert_type_list.h

Issue 11571059: Add net/android/keystore.h (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: First real implementation - RSA only Created 7 years, 11 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: net/base/ssl_client_cert_type_list.h
diff --git a/net/base/ssl_client_cert_type_list.h b/net/base/ssl_client_cert_type_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..32d35c78770612b09b229eeee018391019eac3e8
--- /dev/null
+++ b/net/base/ssl_client_cert_type_list.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This header can be included to define a list of constants matching
+// TLS ClientCertificateType Identifiers.
+// http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-1
+// It is used to define both C++ and Java constants.
+//
+#ifndef DEFINE_CLIENT_CERT_TYPE
+#error "You should define CLIENT_CERT_TYPE before including this file"
+#endif
+
+DEFINE_CLIENT_CERT_TYPE(RSA_SIGN, 1)
+DEFINE_CLIENT_CERT_TYPE(DSS_SIGN, 2)
+DEFINE_CLIENT_CERT_TYPE(ECDSA_SIGN, 64)
+
+// 224-255 are Reserved for Private Use, we pick one to use as "invalid".
+DEFINE_CLIENT_CERT_TYPE(INVALID_TYPE, 255)

Powered by Google App Engine
This is Rietveld 408576698