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 * Base64 encoding (binary to ascii). | 6 * Base64 encoding (binary to ascii). |
7 * | |
8 * $Id$ | |
9 */ | 7 */ |
10 | 8 |
11 #include "nssb64.h" | 9 #include "nssb64.h" |
12 #include "nspr.h" | 10 #include "nspr.h" |
13 #include "secitem.h" | 11 #include "secitem.h" |
14 #include "secerr.h" | 12 #include "secerr.h" |
15 | 13 |
16 /* | 14 /* |
17 * XXX See the big comment at the top of nssb64d.c about moving the | 15 * XXX See the big comment at the top of nssb64d.c about moving the |
18 * bulk of this code over into NSPR (the PL part). It all applies | 16 * bulk of this code over into NSPR (the PL part). It all applies |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 } | 722 } |
725 | 723 |
726 /* | 724 /* |
727 ** Convert from binary encoding of an item to ascii. | 725 ** Convert from binary encoding of an item to ascii. |
728 */ | 726 */ |
729 char * | 727 char * |
730 BTOA_ConvertItemToAscii (SECItem *binary_item) | 728 BTOA_ConvertItemToAscii (SECItem *binary_item) |
731 { | 729 { |
732 return NSSBase64_EncodeItem (NULL, NULL, 0, binary_item); | 730 return NSSBase64_EncodeItem (NULL, NULL, 0, binary_item); |
733 } | 731 } |
OLD | NEW |