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 * Types for encoding/decoding of ASN.1 using BER/DER (Basic/Distinguished | 6 * Types for encoding/decoding of ASN.1 using BER/DER (Basic/Distinguished |
7 * Encoding Rules). | 7 * Encoding Rules). |
8 * | |
9 * $Id$ | |
10 */ | 8 */ |
11 | 9 |
12 #ifndef _SECASN1T_H_ | 10 #ifndef _SECASN1T_H_ |
13 #define _SECASN1T_H_ | 11 #define _SECASN1T_H_ |
14 | 12 |
15 #include "utilrename.h" | 13 #include "utilrename.h" |
16 | 14 |
17 /* | 15 /* |
18 ** An array of these structures defines a BER/DER encoding for an object. | 16 ** An array of these structures defines a BER/DER encoding for an object. |
19 ** | 17 ** |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 * - "depth" is how deep in a nested encoding we are (it is not usually | 259 * - "depth" is how deep in a nested encoding we are (it is not usually |
262 * valuable, but can be useful sometimes so I included it) | 260 * valuable, but can be useful sometimes so I included it) |
263 * - "data_kind" tells you if these bytes are part of the ASN.1 encoded | 261 * - "data_kind" tells you if these bytes are part of the ASN.1 encoded |
264 * octets for identifier, length, contents, or end-of-contents | 262 * octets for identifier, length, contents, or end-of-contents |
265 */ | 263 */ |
266 typedef void (* SEC_ASN1WriteProc)(void *arg, | 264 typedef void (* SEC_ASN1WriteProc)(void *arg, |
267 const char *data, unsigned long len, | 265 const char *data, unsigned long len, |
268 int depth, SEC_ASN1EncodingPart data_kind); | 266 int depth, SEC_ASN1EncodingPart data_kind); |
269 | 267 |
270 #endif /* _SECASN1T_H_ */ | 268 #endif /* _SECASN1T_H_ */ |
OLD | NEW |