Provide WIN32 function to return the address of PKIX_ERRORNAMES array,

since we are unable to reference it directly from the test directory.


git-svn-id: svn://10.0.0.236/branches/NSS_LIBPKIX_BRANCH@197961 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
richard.freedman%sun.com
2006-05-18 21:46:34 +00:00
parent 042eecb19a
commit 6f2f019571
4 changed files with 18 additions and 1 deletions

View File

@@ -158,7 +158,11 @@ PKIX_Error *loggerCallback(
PR_snprintf(result, resultSize,
"Logging %s (%s): %s",
levels[logLevel],
PKIX_ERRORNAMES[logComponent],
#if defined(_WIN32)
PKIX_Error_GetErrorString(logComponent),
#else
PKIX_ERRORNAMES[logComponent],
#endif
msg);
subTest(result);

View File

@@ -548,3 +548,11 @@ PKIX_Error_GetDescription(
PKIX_RETURN(ERROR);
}
#if defined(_WIN32)
const char *
PKIX_Error_GetErrorString(PKIX_ERRORNUM error)
{
return PKIX_ERRORNAMES[error];
}
#endif

View File

@@ -61,6 +61,10 @@ struct PKIX_ErrorStruct {
PKIX_Error * pkix_Error_RegisterSelf(void *plContext);
#if defined(_WIN32)
const char *PKIX_Error_GetErrorString(PKIX_ERRORNUM error);
#endif
#ifdef __cplusplus
}
#endif

View File

@@ -954,6 +954,7 @@ PKIX_Error_GetCause;
PKIX_Error_GetDescription;
PKIX_Error_GetErrorCode;
PKIX_Error_GetSupplementaryInfo;
PKIX_Error_GetErrorString;
PKIX_ERRORNAMES;
PKIX_Initialize;
PKIX_Initialize_SetConfigDir;