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 * Support routines for SECItem data structure. | 6 * Support routines for SECItem data structure. |
7 * | |
8 * $Id$ | |
9 */ | 7 */ |
10 | 8 |
11 #include "seccomon.h" | 9 #include "seccomon.h" |
12 #include "secitem.h" | 10 #include "secitem.h" |
13 #include "base64.h" | 11 #include "base64.h" |
14 #include "secerr.h" | 12 #include "secerr.h" |
15 #include "secport.h" | 13 #include "secport.h" |
16 | 14 |
17 SECItem * | 15 SECItem * |
18 SECITEM_AllocItem(PRArenaPool *arena, SECItem *item, unsigned int len) | 16 SECITEM_AllocItem(PRArenaPool *arena, SECItem *item, unsigned int len) |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 SECStatus rv = SECITEM_CopyItem(arena, | 412 SECStatus rv = SECITEM_CopyItem(arena, |
415 &result->items[i], &from->items[i]); | 413 &result->items[i], &from->items[i]); |
416 if (rv != SECSuccess) { | 414 if (rv != SECSuccess) { |
417 SECITEM_ZfreeArray(result, PR_TRUE); | 415 SECITEM_ZfreeArray(result, PR_TRUE); |
418 return NULL; | 416 return NULL; |
419 } | 417 } |
420 } | 418 } |
421 | 419 |
422 return result; | 420 return result; |
423 } | 421 } |
OLD | NEW |