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 for ENcoding ASN.1 data based on BER/DER (Basic/Distinguished | 6 * Support for ENcoding ASN.1 data based on BER/DER (Basic/Distinguished |
7 * Encoding Rules). | 7 * Encoding Rules). |
8 * | |
9 * $Id$ | |
10 */ | 8 */ |
11 | 9 |
12 #include "secasn1.h" | 10 #include "secasn1.h" |
13 | 11 |
14 typedef enum { | 12 typedef enum { |
15 beforeHeader, | 13 beforeHeader, |
16 duringContents, | 14 duringContents, |
17 duringGroup, | 15 duringGroup, |
18 duringSequence, | 16 duringSequence, |
19 afterContents, | 17 afterContents, |
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 return sec_asn1e_integer (poolp, dest, (unsigned long) value, PR_FALSE); | 1604 return sec_asn1e_integer (poolp, dest, (unsigned long) value, PR_FALSE); |
1607 } | 1605 } |
1608 | 1606 |
1609 | 1607 |
1610 SECItem * | 1608 SECItem * |
1611 SEC_ASN1EncodeUnsignedInteger(PRArenaPool *poolp, | 1609 SEC_ASN1EncodeUnsignedInteger(PRArenaPool *poolp, |
1612 SECItem *dest, unsigned long value) | 1610 SECItem *dest, unsigned long value) |
1613 { | 1611 { |
1614 return sec_asn1e_integer (poolp, dest, value, PR_TRUE); | 1612 return sec_asn1e_integer (poolp, dest, value, PR_TRUE); |
1615 } | 1613 } |
OLD | NEW |