OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 /* | 5 /* |
6 * X.509 Extension Encoding | 6 * X.509 Extension Encoding |
7 */ | 7 */ |
8 | 8 |
9 #include "prtypes.h" | 9 #include "prtypes.h" |
10 #include "seccomon.h" | 10 #include "seccomon.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 CERTNameConstraints * | 219 CERTNameConstraints * |
220 CERT_DecodeNameConstraintsExtension(PLArenaPool *arena, | 220 CERT_DecodeNameConstraintsExtension(PLArenaPool *arena, |
221 const SECItem *encodedConstraints) | 221 const SECItem *encodedConstraints) |
222 { | 222 { |
223 return cert_DecodeNameConstraints(arena, encodedConstraints); | 223 return cert_DecodeNameConstraints(arena, encodedConstraints); |
224 } | 224 } |
225 | 225 |
226 | 226 |
227 CERTAuthInfoAccess ** | 227 CERTAuthInfoAccess ** |
228 CERT_DecodeAuthInfoAccessExtension(PLArenaPool *reqArena, | 228 CERT_DecodeAuthInfoAccessExtension(PLArenaPool *reqArena, |
229 » » » » SECItem *encodedExtension) | 229 » » » » const SECItem *encodedExtension) |
230 { | 230 { |
231 CERTAuthInfoAccess **info = NULL; | 231 CERTAuthInfoAccess **info = NULL; |
232 SECStatus rv; | 232 SECStatus rv; |
233 int i; | 233 int i; |
234 SECItem* newEncodedExtension; | 234 SECItem* newEncodedExtension; |
235 | 235 |
236 if (!reqArena) { | 236 if (!reqArena) { |
237 PORT_SetError(SEC_ERROR_INVALID_ARGS); | 237 PORT_SetError(SEC_ERROR_INVALID_ARGS); |
238 return NULL; | 238 return NULL; |
239 } | 239 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 /* Note that this may leave some of the locations filled in. */ | 277 /* Note that this may leave some of the locations filled in. */ |
278 return SECFailure; | 278 return SECFailure; |
279 } | 279 } |
280 dummy = SEC_ASN1EncodeItem(arena, dest, &info, | 280 dummy = SEC_ASN1EncodeItem(arena, dest, &info, |
281 CERTAuthInfoAccessTemplate); | 281 CERTAuthInfoAccessTemplate); |
282 if (dummy == NULL) { | 282 if (dummy == NULL) { |
283 return SECFailure; | 283 return SECFailure; |
284 } | 284 } |
285 return SECSuccess; | 285 return SECSuccess; |
286 } | 286 } |
OLD | NEW |