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

Side by Side Diff: ppapi/c/private/ppb_x509_certificate_private.h

Issue 10006048: Fixed some PP_X509Certificate_Private_Field enum values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 Fri Apr 6 16:06:15 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 26 matching lines...) Expand all
44 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 44 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
45 PP_X509CERTIFICATE_PRIVATE_ISSUER_LOCALITY_NAME = 1, 45 PP_X509CERTIFICATE_PRIVATE_ISSUER_LOCALITY_NAME = 1,
46 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 46 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
47 PP_X509CERTIFICATE_PRIVATE_ISSUER_STATE_OR_PROVINCE_NAME = 2, 47 PP_X509CERTIFICATE_PRIVATE_ISSUER_STATE_OR_PROVINCE_NAME = 2,
48 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 48 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
49 PP_X509CERTIFICATE_PRIVATE_ISSUER_COUNTRY_NAME = 3, 49 PP_X509CERTIFICATE_PRIVATE_ISSUER_COUNTRY_NAME = 3,
50 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 50 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
51 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_NAME = 4, 51 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_NAME = 4,
52 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 52 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
53 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_UNIT_NAME = 5, 53 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_UNIT_NAME = 5,
54 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
55 PP_X509CERTIFICATE_PRIVATE_ISSUER_DISTINGUISHED_NAME = 6,
54 /** 56 /**
55 * Note: This field is unimplemented and will return 57 * Note: This field is unimplemented and will return
56 * <code>PP_VARTYPE_NULL</code>. 58 * <code>PP_VARTYPE_NULL</code>.
57 */ 59 */
58 PP_X509CERTIFICATE_PRIVATE_ISSUER_UNIQUE_ID = 6, 60 PP_X509CERTIFICATE_PRIVATE_ISSUER_UNIQUE_ID = 7,
59 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 61 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
60 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COMMON_NAME = 7, 62 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COMMON_NAME = 8,
61 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 63 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
62 PP_X509CERTIFICATE_PRIVATE_SUBJECT_LOCALITY_NAME = 8, 64 PP_X509CERTIFICATE_PRIVATE_SUBJECT_LOCALITY_NAME = 9,
63 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 65 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
64 PP_X509CERTIFICATE_PRIVATE_SUBJECT_STATE_OR_PROVINCE_NAME = 9, 66 PP_X509CERTIFICATE_PRIVATE_SUBJECT_STATE_OR_PROVINCE_NAME = 10,
65 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 67 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
66 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COUNTRY_NAME = 10, 68 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COUNTRY_NAME = 11,
67 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 69 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
68 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_NAME = 11, 70 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_NAME = 12,
69 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 71 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
70 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_UNIT_NAME = 12, 72 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_UNIT_NAME = 13,
73 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
74 PP_X509CERTIFICATE_PRIVATE_SUBJECT_DISTINGUISHED_NAME = 14,
71 /** 75 /**
72 * Note: This field is unimplemented and will return 76 * Note: This field is unimplemented and will return
73 * <code>PP_VARTYPE_NULL</code>. 77 * <code>PP_VARTYPE_NULL</code>.
74 */ 78 */
75 PP_X509CERTIFICATE_PRIVATE_SUBJECT_UNIQUE_ID = 13, 79 PP_X509CERTIFICATE_PRIVATE_SUBJECT_UNIQUE_ID = 15,
76 /** 80 /**
77 * Note: This field is unimplemented and will return 81 * Note: This field is unimplemented and will return
78 * <code>PP_VARTYPE_NULL</code>. 82 * <code>PP_VARTYPE_NULL</code>.
79 */ 83 */
80 PP_X509CERTIFICATE_PRIVATE_VERSION = 14, 84 PP_X509CERTIFICATE_PRIVATE_VERSION = 16,
81 /** 85 /**
82 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). 86 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>).
83 * The serial number may include a leading 0. 87 * The serial number may include a leading 0.
84 */ 88 */
85 PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER = 15, 89 PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER = 17,
86 /** 90 /**
87 * Note: This field is unimplemented and will return 91 * Note: This field is unimplemented and will return
88 * <code>PP_VARTYPE_NULL</code>. 92 * <code>PP_VARTYPE_NULL</code>.
89 */ 93 */
90 PP_X509CERTIFICATE_PRIVATE_ALGORITHM_OID = 16, 94 PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_OID = 18,
91 /** 95 /**
92 * Note: This field is unimplemented and will return 96 * Note: This field is unimplemented and will return
93 * <code>PP_VARTYPE_NULL</code>. 97 * <code>PP_VARTYPE_NULL</code>.
94 */ 98 */
95 PP_X509CERTIFICATE_PRIVATE_ALGORITHM_PARAMATERS_RAW = 17, 99 PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_PARAMATERS_RAW = 19,
96 /** 100 /**
97 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which 101 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which
98 * can be cast to a <code>PP_TIME</code>. 102 * can be cast to a <code>PP_TIME</code>.
99 */ 103 */
100 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE = 18, 104 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE = 20,
101 /** 105 /**
102 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which 106 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which
103 * can be cast to a <code>PP_TIME</code>. 107 * can be cast to a <code>PP_TIME</code>.
104 */ 108 */
105 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER = 19, 109 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER = 21,
106 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 110 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
107 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID = 20, 111 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID = 22,
108 /** 112 /**
109 * Note: This field is unimplemented and will return 113 * Note: This field is unimplemented and will return
110 * <code>PP_VARTYPE_NULL</code>. 114 * <code>PP_VARTYPE_NULL</code>.
111 */ 115 */
112 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY = 21, 116 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY = 23,
113 /** 117 /**
114 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). 118 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>).
115 * This is the DER-encoded representation of the certificate. 119 * This is the DER-encoded representation of the certificate.
116 */ 120 */
117 PP_X509CERTIFICATE_PRIVATE_RAW = 22 121 PP_X509CERTIFICATE_PRIVATE_RAW = 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698