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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user