From 692435d36e54f609f83d901e5ca7594038ea6adc Mon Sep 17 00:00:00 2001 From: "relyea%netscape.com" Date: Wed, 28 Feb 2001 01:57:08 +0000 Subject: [PATCH] Finish WinNT changes. --- security/nss/cmd/pk12util/pk12util.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/security/nss/cmd/pk12util/pk12util.c b/security/nss/cmd/pk12util/pk12util.c index 6916627b787..bf2375d91e8 100644 --- a/security/nss/cmd/pk12util/pk12util.c +++ b/security/nss/cmd/pk12util/pk12util.c @@ -138,10 +138,16 @@ p12u_InitFile(PRBool fileImport, char *filename) return p12cxt; } +#define TEMPFILE "Pk12uTemp" + static p12uContext * p12u_CreateTemporaryDigestFile(void) { p12uContext *p12cxt; +#if defined(_WIN32) || defined(_WINDOWS) || defined(XP_OS2) + char *tmpdir,*filename,*last; + int len; +#endif p12cxt = (p12uContext *)PR_CALLOC(sizeof(p12uContext)); if(!p12cxt) { @@ -170,8 +176,9 @@ p12u_CreateTemporaryDigestFile(void) strcat(filename,"\\"); } strcat(filename,TEMPFILE); + p12cxt->filename = filename; #else - p12cxt->filename = strdup("/tmp/Pk12uTemp"); + p12cxt->filename = strdup("/tmp/"TEMPFILE); #endif if (!p12cxt->filename) {