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

Side by Side Diff: ppapi/api/private/ppb_x509_certificate_private.idl

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
« no previous file with comments | « no previous file | ppapi/c/private/ppb_x509_certificate_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 6 /**
7 * This file defines the <code>PPB_X509Certificate_Private</code> interface for 7 * This file defines the <code>PPB_X509Certificate_Private</code> interface for
8 * an X509 certificate. 8 * an X509 certificate.
9 */ 9 */
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 31 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
32 PP_X509CERTIFICATE_PRIVATE_ISSUER_COUNTRY_NAME = 3, 32 PP_X509CERTIFICATE_PRIVATE_ISSUER_COUNTRY_NAME = 3,
33 33
34 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 34 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
35 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_NAME = 4, 35 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_NAME = 4,
36 36
37 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 37 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
38 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_UNIT_NAME = 5, 38 PP_X509CERTIFICATE_PRIVATE_ISSUER_ORGANIZATION_UNIT_NAME = 5,
39 39
40 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
41 PP_X509CERTIFICATE_PRIVATE_ISSUER_DISTINGUISHED_NAME = 6,
yzshen1 2012/04/11 07:26:53 If M19 and M20 have different enum values, plugins
42
40 /** 43 /**
41 * Note: This field is unimplemented and will return 44 * Note: This field is unimplemented and will return
42 * <code>PP_VARTYPE_NULL</code>. 45 * <code>PP_VARTYPE_NULL</code>.
43 */ 46 */
44 PP_X509CERTIFICATE_PRIVATE_ISSUER_UNIQUE_ID = 6, 47 PP_X509CERTIFICATE_PRIVATE_ISSUER_UNIQUE_ID = 7,
45 48
46 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 49 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
47 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COMMON_NAME = 7, 50 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COMMON_NAME = 8,
48 51
49 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 52 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
50 PP_X509CERTIFICATE_PRIVATE_SUBJECT_LOCALITY_NAME = 8, 53 PP_X509CERTIFICATE_PRIVATE_SUBJECT_LOCALITY_NAME = 9,
51 54
52 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 55 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
53 PP_X509CERTIFICATE_PRIVATE_SUBJECT_STATE_OR_PROVINCE_NAME = 9, 56 PP_X509CERTIFICATE_PRIVATE_SUBJECT_STATE_OR_PROVINCE_NAME = 10,
54 57
55 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 58 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
56 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COUNTRY_NAME = 10, 59 PP_X509CERTIFICATE_PRIVATE_SUBJECT_COUNTRY_NAME = 11,
57 60
58 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 61 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
59 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_NAME = 11, 62 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_NAME = 12,
60 63
61 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 64 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
62 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_UNIT_NAME = 12, 65 PP_X509CERTIFICATE_PRIVATE_SUBJECT_ORGANIZATION_UNIT_NAME = 13,
66
67 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
68 PP_X509CERTIFICATE_PRIVATE_SUBJECT_DISTINGUISHED_NAME = 14,
63 69
64 /** 70 /**
65 * Note: This field is unimplemented and will return 71 * Note: This field is unimplemented and will return
66 * <code>PP_VARTYPE_NULL</code>. 72 * <code>PP_VARTYPE_NULL</code>.
67 */ 73 */
68 PP_X509CERTIFICATE_PRIVATE_SUBJECT_UNIQUE_ID = 13, 74 PP_X509CERTIFICATE_PRIVATE_SUBJECT_UNIQUE_ID = 15,
69 75
70 /** 76 /**
71 * Note: This field is unimplemented and will return 77 * Note: This field is unimplemented and will return
72 * <code>PP_VARTYPE_NULL</code>. 78 * <code>PP_VARTYPE_NULL</code>.
73 */ 79 */
74 PP_X509CERTIFICATE_PRIVATE_VERSION = 14, 80 PP_X509CERTIFICATE_PRIVATE_VERSION = 16,
75 81
76 /** 82 /**
77 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). 83 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>).
78 * The serial number may include a leading 0. 84 * The serial number may include a leading 0.
79 */ 85 */
80 PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER = 15, 86 PP_X509CERTIFICATE_PRIVATE_SERIAL_NUMBER = 17,
81 87
82 /** 88 /**
83 * Note: This field is unimplemented and will return 89 * Note: This field is unimplemented and will return
84 * <code>PP_VARTYPE_NULL</code>. 90 * <code>PP_VARTYPE_NULL</code>.
85 */ 91 */
86 PP_X509CERTIFICATE_PRIVATE_ALGORITHM_OID = 16, 92 PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_OID = 18,
87 93
88 /** 94 /**
89 * Note: This field is unimplemented and will return 95 * Note: This field is unimplemented and will return
90 * <code>PP_VARTYPE_NULL</code>. 96 * <code>PP_VARTYPE_NULL</code>.
91 */ 97 */
92 PP_X509CERTIFICATE_PRIVATE_ALGORITHM_PARAMATERS_RAW = 17, 98 PP_X509CERTIFICATE_PRIVATE_SIGNATURE_ALGORITHM_PARAMATERS_RAW = 19,
93 99
94 /** 100 /**
95 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which 101 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which
96 * can be cast to a <code>PP_TIME</code>. 102 * can be cast to a <code>PP_TIME</code>.
97 */ 103 */
98 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE = 18, 104 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_BEFORE = 20,
99 105
100 /** 106 /**
101 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which 107 * This corresponds to a double (<code>PP_VARTYPE_DOUBLE</code>) which
102 * can be cast to a <code>PP_TIME</code>. 108 * can be cast to a <code>PP_TIME</code>.
103 */ 109 */
104 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER = 19, 110 PP_X509CERTIFICATE_PRIVATE_VALIDITY_NOT_AFTER = 21,
105 111
106 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */ 112 /** This corresponds to a string (<code>PP_VARTYPE_STRING</code>). */
107 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID = 20, 113 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY_ALGORITHM_OID = 22,
108 114
109 /** 115 /**
110 * Note: This field is unimplemented and will return 116 * Note: This field is unimplemented and will return
111 * <code>PP_VARTYPE_NULL</code>. 117 * <code>PP_VARTYPE_NULL</code>.
112 */ 118 */
113 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY = 21, 119 PP_X509CERTIFICATE_PRIVATE_SUBJECT_PUBLIC_KEY = 23,
114 120
115 /** 121 /**
116 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>). 122 * This corresponds to a byte array (<code>PP_VARTYPE_ARRAY_BUFFER</code>).
117 * This is the DER-encoded representation of the certificate. 123 * This is the DER-encoded representation of the certificate.
118 */ 124 */
119 PP_X509CERTIFICATE_PRIVATE_RAW = 22 125 PP_X509CERTIFICATE_PRIVATE_RAW = 24
120 }; 126 };
121 127
122 /** 128 /**
123 * This enumeration defines the different possible values for X5O9 certificate 129 * This enumeration defines the different possible values for X5O9 certificate
124 * versions as returned by: 130 * versions as returned by:
125 * <code>GetField(resource, PP_X509CERTIFICATE_PRIVATE_VERSION)</code>. 131 * <code>GetField(resource, PP_X509CERTIFICATE_PRIVATE_VERSION)</code>.
126 */ 132 */
127 [assert_size(4)] 133 [assert_size(4)]
128 enum PPB_X509Certificate_Private_Version { 134 enum PPB_X509Certificate_Private_Version {
129 PP_X509CERTIFICATE_PRIVATE_V1 = 0, 135 PP_X509CERTIFICATE_PRIVATE_V1 = 0,
(...skipping 28 matching lines...) Expand all
158 [in] str_t bytes, 164 [in] str_t bytes,
159 [in] uint32_t length); 165 [in] uint32_t length);
160 166
161 /** 167 /**
162 * Get a field of the X509Certificate as a <code>PP_Var</code>. A null 168 * Get a field of the X509Certificate as a <code>PP_Var</code>. A null
163 * <code>PP_Var</code> is returned if the field is unavailable. 169 * <code>PP_Var</code> is returned if the field is unavailable.
164 */ 170 */
165 PP_Var GetField([in] PP_Resource resource, 171 PP_Var GetField([in] PP_Resource resource,
166 [in] PP_X509Certificate_Private_Field field); 172 [in] PP_X509Certificate_Private_Field field);
167 }; 173 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/private/ppb_x509_certificate_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698