From d3e47824c3b1dcc42dbdda962618ead3b953647c Mon Sep 17 00:00:00 2001 From: Elio Maldonado Date: Wed, 1 Feb 2012 23:02:47 -0800 Subject: [PATCH] - Resolves: Bug 782142 - keyutil should use error string utilities provided by nss since 3.13 - actually commit the changes to keyutil to use PORT_ErrorToString --- secutil.c | 2 +- secutil.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/secutil.c b/secutil.c index f8874f0..0255c60 100755 --- a/secutil.c +++ b/secutil.c @@ -121,7 +121,7 @@ SECU_PrintErrMsg(FILE *out, int level, char *progName, char *msg, ...) { va_list args; PRErrorCode err = PORT_GetError(); - const char * errString = SECU_Strerror(err); + const char * errString = PORT_ErrorToString(err); va_start(args, msg); diff --git a/secutil.h b/secutil.h index aab71e3..3a416f2 100755 --- a/secutil.h +++ b/secutil.h @@ -94,9 +94,6 @@ extern void SECU_PrintError(char *progName, char *msg, ...); /* print out a system error message */ extern void SECU_PrintSystemError(char *progName, char *msg, ...); -/* Return informative error string */ -extern const char * SECU_Strerror(PRErrorCode errNum); - /* Read the contents of a file into a SECItem */ extern SECStatus SECU_FileToItem(SECItem *dst, PRFileDesc *src); extern SECStatus SECU_TextFileToItem(SECItem *dst, PRFileDesc *src);