| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* From private/ppb_x509_certificate_private.idl, | 6 /* From private/ppb_x509_certificate_private.idl, |
| 7 * modified Thu Mar 29 16:25:36 2012. | 7 * modified Wed Apr 11 17:11:26 2012. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_H_ |
| 12 | 12 |
| 13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| 17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 PP_X509CERTIFICATE_PRIVATE_VERSION = 14, | 80 PP_X509CERTIFICATE_PRIVATE_VERSION = 14, |
| 81 /** | 81 /** |
| 82 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). | 82 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). |
| 83 * The serial number may include a leading 0. | 83 * The serial number may include a leading 0. |
| 84 */ | 84 */ |
| 85 PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER = 15, | 85 PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER = 15, |
| 86 /** | 86 /** |
| 87 * Note: This field is unimplemented and will return | 87 * Note: This field is unimplemented and will return |
| 88 * <code>PP_VARTYPE_NULL</code>. | 88 * <code>PP_VARTYPE_NULL</code>. |
| 89 */ | 89 */ |
| 90 PP_X509CERTIFICATE_PRIVATE_ALGORITHM_OID = 16, | 90 PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_OID = 16, |
| 91 /** | 91 /** |
| 92 * Note: This field is unimplemented and will return | 92 * Note: This field is unimplemented and will return |
| 93 * <code>PP_VARTYPE_NULL</code>. | 93 * <code>PP_VARTYPE_NULL</code>. |
| 94 */ | 94 */ |
| 95 PP_X509CERTIFICATE_PRIVATE_ALGORITHM_PARAMATERS_RAW = 17, | 95 PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_PARAMATERS_RAW = 17, |
| 96 /** | 96 /** |
| 97 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which | 97 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which |
| 98 * can be cast to a <code>PP_TIME</code>. | 98 * can be cast to a <code>PP_TIME</code>. |
| 99 */ | 99 */ |
| 100 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE = 18, | 100 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE = 18, |
| 101 /** | 101 /** |
| 102 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which | 102 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which |
| 103 * can be cast to a <code>PP_TIME</code>. | 103 * can be cast to a <code>PP_TIME</code>. |
| 104 */ | 104 */ |
| 105 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER = 19, | 105 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER = 19, |
| 106 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ | 106 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ |
| 107 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID = 20, | 107 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID = 20, |
| 108 /** | 108 /** |
| 109 * Note: This field is unimplemented and will return | 109 * Note: This field is unimplemented and will return |
| 110 * <code>PP_VARTYPE_NULL</code>. | 110 * <code>PP_VARTYPE_NULL</code>. |
| 111 */ | 111 */ |
| 112 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY = 21, | 112 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY = 21, |
| 113 /** | 113 /** |
| 114 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). | 114 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). |
| 115 * This is the DER-encoded representation of the certificate. | 115 * This is the DER-encoded representation of the certificate. |
| 116 */ | 116 */ |
| 117 PP_X509CERTIFICATE_PRIVATE_RAW = 22 | 117 PP_X509CERTIFICATE_PRIVATE_RAW = 22, |
| 118 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ |
| 119 PP_X509CERTIFICATE_PRIVATE_ISSUER_DISTINGUISHED_NAME = 23, |
| 120 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ |
| 121 PP_X509CERTIFICATE_PRIVATE_SUBJECT_DISTINGUISHED_NAME = 24 |
| 118 } PP_X509Certificate_Private_Field; | 122 } PP_X509Certificate_Private_Field; |
| 119 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_X509Certificate_Private_Field, 4); | 123 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_X509Certificate_Private_Field, 4); |
| 120 | 124 |
| 121 /** | 125 /** |
| 122 * This enumeration defines the different possible values for X5O9 certificate | 126 * This enumeration defines the different possible values for X5O9 certificate |
| 123 * versions as returned by: | 127 * versions as returned by: |
| 124 * <code>GetField(resource, PP_X509CERTIFICATE_PRIVATE_VERSION)</code>. | 128 * <code>GetField(resource, PP_X509CERTIFICATE_PRIVATE_VERSION)</code>. |
| 125 */ | 129 */ |
| 126 typedef enum { | 130 typedef enum { |
| 127 PP_X509CERTIFICATE_PRIVATE_V1 = 0, | 131 PP_X509CERTIFICATE_PRIVATE_V1 = 0, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 PP_X509Certificate_Private_Field field); | 173 PP_X509Certificate_Private_Field field); |
| 170 }; | 174 }; |
| 171 | 175 |
| 172 typedef struct PPB_X509Certificate_Private_0_1 PPB_X509Certificate_Private; | 176 typedef struct PPB_X509Certificate_Private_0_1 PPB_X509Certificate_Private; |
| 173 /** | 177 /** |
| 174 * @} | 178 * @} |
| 175 */ | 179 */ |
| 176 | 180 |
| 177 #endif /* PPAPI_C_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_H_ */ | 181 #endif /* PPAPI_C_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_H_ */ |
| 178 | 182 |
| OLD | NEW |