michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: /* michael@0: * dumpcert.c michael@0: * michael@0: * dump certificate sample application michael@0: * michael@0: */ michael@0: michael@0: #include michael@0: michael@0: #include "pkix.h" michael@0: #include "pkixt.h" michael@0: #include "pkix_error.h" michael@0: michael@0: #undef PKIX_ERRORENTRY michael@0: #define PKIX_ERRORENTRY(name,desc,plerr) #name michael@0: michael@0: const char * const PKIX_ErrorNames[] = michael@0: { michael@0: #include "pkix_errorstrings.h" michael@0: }; michael@0: michael@0: #undef PKIX_ERRORENTRY michael@0: michael@0: michael@0: int michael@0: main(int argc, char **argv) michael@0: { michael@0: int i = 0; michael@0: for (; i < PKIX_NUMERRORCODES; ++i) { michael@0: printf("code %d %s\n", i, PKIX_ErrorNames[i]); michael@0: } michael@0: return 0; michael@0: }