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 * This file defines the types in the libpkix API. | 5 * This file defines the types in the libpkix API. |
6 * XXX Maybe we should specify the API version number in all API header files | 6 * XXX Maybe we should specify the API version number in all API header files |
7 * | 7 * |
8 */ | 8 */ |
9 | 9 |
10 #ifndef _PKIXT_H | 10 #ifndef _PKIXT_H |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 PKIX_NUMERRORCLASSES /* This gets PKIX_NUMERRORCLASSES defined as the total
number */ | 332 PKIX_NUMERRORCLASSES /* This gets PKIX_NUMERRORCLASSES defined as the total
number */ |
333 } PKIX_ERRORCLASS; | 333 } PKIX_ERRORCLASS; |
334 | 334 |
335 /* Now define error strings (for internationalization) */ | 335 /* Now define error strings (for internationalization) */ |
336 | 336 |
337 #define PKIX_ERRORENTRY(name,desc,plerr) PKIX_ ## name | 337 #define PKIX_ERRORENTRY(name,desc,plerr) PKIX_ ## name |
338 | 338 |
339 /* Define all the error numbers */ | 339 /* Define all the error numbers */ |
340 typedef enum { | 340 typedef enum { |
341 #include "pkix_errorstrings.h" | 341 #include "pkix_errorstrings.h" |
| 342 , PKIX_NUMERRORCODES |
342 } PKIX_ERRORCODE; | 343 } PKIX_ERRORCODE; |
343 | 344 |
344 extern const char * const PKIX_ErrorText[]; | 345 extern const char * const PKIX_ErrorText[]; |
345 | 346 |
346 /* String Formats | 347 /* String Formats |
347 * | 348 * |
348 * These formats specify supported encoding formats for Strings. | 349 * These formats specify supported encoding formats for Strings. |
349 */ | 350 */ |
350 | 351 |
351 #define PKIX_ESCASCII 0 | 352 #define PKIX_ESCASCII 0 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 PKIX_RevStatus_Revoked, | 476 PKIX_RevStatus_Revoked, |
476 PKIX_RevStatus_Success | 477 PKIX_RevStatus_Success |
477 } PKIX_RevocationStatus; | 478 } PKIX_RevocationStatus; |
478 | 479 |
479 | 480 |
480 #ifdef __cplusplus | 481 #ifdef __cplusplus |
481 } | 482 } |
482 #endif | 483 #endif |
483 | 484 |
484 #endif /* _PKIXT_H */ | 485 #endif /* _PKIXT_H */ |
OLD | NEW |