Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | /* |
michael@0 | 5 | * dumpcert.c |
michael@0 | 6 | * |
michael@0 | 7 | * dump certificate sample application |
michael@0 | 8 | * |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | #include <stdio.h> |
michael@0 | 12 | |
michael@0 | 13 | #include "pkix.h" |
michael@0 | 14 | #include "pkixt.h" |
michael@0 | 15 | #include "pkix_error.h" |
michael@0 | 16 | |
michael@0 | 17 | #undef PKIX_ERRORENTRY |
michael@0 | 18 | #define PKIX_ERRORENTRY(name,desc,plerr) #name |
michael@0 | 19 | |
michael@0 | 20 | const char * const PKIX_ErrorNames[] = |
michael@0 | 21 | { |
michael@0 | 22 | #include "pkix_errorstrings.h" |
michael@0 | 23 | }; |
michael@0 | 24 | |
michael@0 | 25 | #undef PKIX_ERRORENTRY |
michael@0 | 26 | |
michael@0 | 27 | |
michael@0 | 28 | int |
michael@0 | 29 | main(int argc, char **argv) |
michael@0 | 30 | { |
michael@0 | 31 | int i = 0; |
michael@0 | 32 | for (; i < PKIX_NUMERRORCODES; ++i) { |
michael@0 | 33 | printf("code %d %s\n", i, PKIX_ErrorNames[i]); |
michael@0 | 34 | } |
michael@0 | 35 | return 0; |
michael@0 | 36 | } |