Chromium Code Reviews| Index: net/base/ssl_client_cert_type.h |
| diff --git a/net/base/ssl_client_cert_type.h b/net/base/ssl_client_cert_type.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..921a6f4ef9953f825b5ae88a0fda00c31e47a7df |
| --- /dev/null |
| +++ b/net/base/ssl_client_cert_type.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2011 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. |
| + |
| +#ifndef NET_BASE_SSL_CLIENT_CERT_TYPE_H_ |
| +#define NET_BASE_SSL_CLIENT_CERT_TYPE_H_ |
| +#pragma once |
| + |
| +namespace net { |
| + |
| +// TLS ClientCertificateType Identifiers |
| +// http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters-1 |
| +enum SSLClientCertType { |
| + CLIENT_CERT_RSA_SIGN = 1, |
| + CLIENT_CERT_ECDSA_SIGN = 64, |
| + // 224-255 are Reserved for Private Use, we pick one to use as "invalid". |
|
wtc
2011/12/02 22:06:59
Since 0 is also unassigned, I think we can just us
|
| + CLIENT_CERT_INVALID_TYPE = 255, |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_BASE_SSL_CLIENT_CERT_TYPE_H_ |