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) |