diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ext.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_ext.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/lib/libcrypto/x509/x509_ext.c b/src/lib/libcrypto/x509/x509_ext.c index e7fdacb5e4..bdc489f367 100644 --- a/src/lib/libcrypto/x509/x509_ext.c +++ b/src/lib/libcrypto/x509/x509_ext.c | |||
@@ -67,34 +67,34 @@ | |||
67 | 67 | ||
68 | 68 | ||
69 | int X509_CRL_get_ext_count(X509_CRL *x) | 69 | int X509_CRL_get_ext_count(X509_CRL *x) |
70 | { | 70 | { |
71 | return(X509v3_get_ext_count(x->crl->extensions)); | 71 | return(X509v3_get_ext_count(x->crl->extensions)); |
72 | } | 72 | } |
73 | 73 | ||
74 | int X509_CRL_get_ext_by_NID(X509_CRL *x, int nid, int lastpos) | 74 | int X509_CRL_get_ext_by_NID(X509_CRL *x, int nid, int lastpos) |
75 | { | 75 | { |
76 | return(X509v3_get_ext_by_NID(x->crl->extensions,nid,lastpos)); | 76 | return(X509v3_get_ext_by_NID(x->crl->extensions,nid,lastpos)); |
77 | } | 77 | } |
78 | 78 | ||
79 | int X509_CRL_get_ext_by_OBJ(X509_CRL *x, ASN1_OBJECT *obj, int lastpos) | 79 | int X509_CRL_get_ext_by_OBJ(X509_CRL *x, ASN1_OBJECT *obj, int lastpos) |
80 | { | 80 | { |
81 | return(X509v3_get_ext_by_OBJ(x->crl->extensions,obj,lastpos)); | 81 | return(X509v3_get_ext_by_OBJ(x->crl->extensions,obj,lastpos)); |
82 | } | 82 | } |
83 | 83 | ||
84 | int X509_CRL_get_ext_by_critical(X509_CRL *x, int crit, int lastpos) | 84 | int X509_CRL_get_ext_by_critical(X509_CRL *x, int crit, int lastpos) |
85 | { | 85 | { |
86 | return(X509v3_get_ext_by_critical(x->crl->extensions,crit,lastpos)); | 86 | return(X509v3_get_ext_by_critical(x->crl->extensions,crit,lastpos)); |
87 | } | 87 | } |
88 | 88 | ||
89 | X509_EXTENSION *X509_CRL_get_ext(X509_CRL *x, int loc) | 89 | X509_EXTENSION *X509_CRL_get_ext(X509_CRL *x, int loc) |
90 | { | 90 | { |
91 | return(X509v3_get_ext(x->crl->extensions,loc)); | 91 | return(X509v3_get_ext(x->crl->extensions,loc)); |
92 | } | 92 | } |
93 | 93 | ||
94 | X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc) | 94 | X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc) |
95 | { | 95 | { |
96 | return(X509v3_delete_ext(x->crl->extensions,loc)); | 96 | return(X509v3_delete_ext(x->crl->extensions,loc)); |
97 | } | 97 | } |
98 | 98 | ||
99 | void *X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx) | 99 | void *X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx) |
100 | { | 100 | { |
@@ -108,44 +108,44 @@ int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit, | |||
108 | } | 108 | } |
109 | 109 | ||
110 | int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) | 110 | int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) |
111 | { | 111 | { |
112 | return(X509v3_add_ext(&(x->crl->extensions),ex,loc) != NULL); | 112 | return(X509v3_add_ext(&(x->crl->extensions),ex,loc) != NULL); |
113 | } | 113 | } |
114 | 114 | ||
115 | int X509_get_ext_count(X509 *x) | 115 | int X509_get_ext_count(X509 *x) |
116 | { | 116 | { |
117 | return(X509v3_get_ext_count(x->cert_info->extensions)); | 117 | return(X509v3_get_ext_count(x->cert_info->extensions)); |
118 | } | 118 | } |
119 | 119 | ||
120 | int X509_get_ext_by_NID(X509 *x, int nid, int lastpos) | 120 | int X509_get_ext_by_NID(X509 *x, int nid, int lastpos) |
121 | { | 121 | { |
122 | return(X509v3_get_ext_by_NID(x->cert_info->extensions,nid,lastpos)); | 122 | return(X509v3_get_ext_by_NID(x->cert_info->extensions,nid,lastpos)); |
123 | } | 123 | } |
124 | 124 | ||
125 | int X509_get_ext_by_OBJ(X509 *x, ASN1_OBJECT *obj, int lastpos) | 125 | int X509_get_ext_by_OBJ(X509 *x, ASN1_OBJECT *obj, int lastpos) |
126 | { | 126 | { |
127 | return(X509v3_get_ext_by_OBJ(x->cert_info->extensions,obj,lastpos)); | 127 | return(X509v3_get_ext_by_OBJ(x->cert_info->extensions,obj,lastpos)); |
128 | } | 128 | } |
129 | 129 | ||
130 | int X509_get_ext_by_critical(X509 *x, int crit, int lastpos) | 130 | int X509_get_ext_by_critical(X509 *x, int crit, int lastpos) |
131 | { | 131 | { |
132 | return(X509v3_get_ext_by_critical(x->cert_info->extensions,crit,lastpos)); | 132 | return(X509v3_get_ext_by_critical(x->cert_info->extensions,crit,lastpos)); |
133 | } | 133 | } |
134 | 134 | ||
135 | X509_EXTENSION *X509_get_ext(X509 *x, int loc) | 135 | X509_EXTENSION *X509_get_ext(X509 *x, int loc) |
136 | { | 136 | { |
137 | return(X509v3_get_ext(x->cert_info->extensions,loc)); | 137 | return(X509v3_get_ext(x->cert_info->extensions,loc)); |
138 | } | 138 | } |
139 | 139 | ||
140 | X509_EXTENSION *X509_delete_ext(X509 *x, int loc) | 140 | X509_EXTENSION *X509_delete_ext(X509 *x, int loc) |
141 | { | 141 | { |
142 | return(X509v3_delete_ext(x->cert_info->extensions,loc)); | 142 | return(X509v3_delete_ext(x->cert_info->extensions,loc)); |
143 | } | 143 | } |
144 | 144 | ||
145 | int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) | 145 | int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) |
146 | { | 146 | { |
147 | return(X509v3_add_ext(&(x->cert_info->extensions),ex,loc) != NULL); | 147 | return(X509v3_add_ext(&(x->cert_info->extensions),ex,loc) != NULL); |
148 | } | 148 | } |
149 | 149 | ||
150 | void *X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) | 150 | void *X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) |
151 | { | 151 | { |
@@ -160,40 +160,40 @@ int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, | |||
160 | } | 160 | } |
161 | 161 | ||
162 | int X509_REVOKED_get_ext_count(X509_REVOKED *x) | 162 | int X509_REVOKED_get_ext_count(X509_REVOKED *x) |
163 | { | 163 | { |
164 | return(X509v3_get_ext_count(x->extensions)); | 164 | return(X509v3_get_ext_count(x->extensions)); |
165 | } | 165 | } |
166 | 166 | ||
167 | int X509_REVOKED_get_ext_by_NID(X509_REVOKED *x, int nid, int lastpos) | 167 | int X509_REVOKED_get_ext_by_NID(X509_REVOKED *x, int nid, int lastpos) |
168 | { | 168 | { |
169 | return(X509v3_get_ext_by_NID(x->extensions,nid,lastpos)); | 169 | return(X509v3_get_ext_by_NID(x->extensions,nid,lastpos)); |
170 | } | 170 | } |
171 | 171 | ||
172 | int X509_REVOKED_get_ext_by_OBJ(X509_REVOKED *x, ASN1_OBJECT *obj, | 172 | int X509_REVOKED_get_ext_by_OBJ(X509_REVOKED *x, ASN1_OBJECT *obj, |
173 | int lastpos) | 173 | int lastpos) |
174 | { | 174 | { |
175 | return(X509v3_get_ext_by_OBJ(x->extensions,obj,lastpos)); | 175 | return(X509v3_get_ext_by_OBJ(x->extensions,obj,lastpos)); |
176 | } | 176 | } |
177 | 177 | ||
178 | int X509_REVOKED_get_ext_by_critical(X509_REVOKED *x, int crit, int lastpos) | 178 | int X509_REVOKED_get_ext_by_critical(X509_REVOKED *x, int crit, int lastpos) |
179 | { | 179 | { |
180 | return(X509v3_get_ext_by_critical(x->extensions,crit,lastpos)); | 180 | return(X509v3_get_ext_by_critical(x->extensions,crit,lastpos)); |
181 | } | 181 | } |
182 | 182 | ||
183 | X509_EXTENSION *X509_REVOKED_get_ext(X509_REVOKED *x, int loc) | 183 | X509_EXTENSION *X509_REVOKED_get_ext(X509_REVOKED *x, int loc) |
184 | { | 184 | { |
185 | return(X509v3_get_ext(x->extensions,loc)); | 185 | return(X509v3_get_ext(x->extensions,loc)); |
186 | } | 186 | } |
187 | 187 | ||
188 | X509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x, int loc) | 188 | X509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x, int loc) |
189 | { | 189 | { |
190 | return(X509v3_delete_ext(x->extensions,loc)); | 190 | return(X509v3_delete_ext(x->extensions,loc)); |
191 | } | 191 | } |
192 | 192 | ||
193 | int X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc) | 193 | int X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc) |
194 | { | 194 | { |
195 | return(X509v3_add_ext(&(x->extensions),ex,loc) != NULL); | 195 | return(X509v3_add_ext(&(x->extensions),ex,loc) != NULL); |
196 | } | 196 | } |
197 | 197 | ||
198 | void *X509_REVOKED_get_ext_d2i(X509_REVOKED *x, int nid, int *crit, int *idx) | 198 | void *X509_REVOKED_get_ext_d2i(X509_REVOKED *x, int nid, int *crit, int *idx) |
199 | { | 199 | { |