mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix warnings on Linux, Solaris, AIX, HP.
This commit is contained in:
parent
41f89b6090
commit
f0a6a83eca
@ -34,7 +34,7 @@
|
||||
/*
|
||||
* certhtml.c --- convert a cert to html
|
||||
*
|
||||
* $Id: certhtml.c,v 1.1 2000/03/31 19:42:54 relyea%netscape.com Exp $
|
||||
* $Id: certhtml.c,v 1.2 2001/09/20 21:41:34 relyea%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "seccomon.h"
|
||||
@ -116,24 +116,6 @@ gatherStrings(char **strings)
|
||||
return( ret );
|
||||
}
|
||||
|
||||
static PRBool
|
||||
CERT_IsAVAInUnicode(CERTAVA *ava, SECOidTag type)
|
||||
{
|
||||
switch(type) {
|
||||
case SEC_OID_AVA_COUNTRY_NAME:
|
||||
case SEC_OID_PKCS9_EMAIL_ADDRESS:
|
||||
case SEC_OID_RFC1274_MAIL:
|
||||
return PR_FALSE;
|
||||
default:
|
||||
if(ava->value.data[0] == SEC_ASN1_UNIVERSAL_STRING) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
#define BREAK "<br>"
|
||||
#define BREAKLEN 4
|
||||
#define COMMA ", "
|
||||
|
@ -35,7 +35,7 @@
|
||||
* Implementation of OCSP services, for both client and server.
|
||||
* (XXX, really, mostly just for client right now, but intended to do both.)
|
||||
*
|
||||
* $Id: ocsp.c,v 1.2 2001/08/07 18:56:13 ddrinan%netscape.com Exp $
|
||||
* $Id: ocsp.c,v 1.3 2001/09/20 21:41:34 relyea%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "prerror.h"
|
||||
@ -3708,7 +3708,7 @@ CERT_SetOCSPDefaultResponder(CERTCertDBHandle *handle,
|
||||
/*
|
||||
* look for the cert on an external token.
|
||||
*/
|
||||
cert = PK11_FindCertFromNickname(name, NULL);
|
||||
cert = PK11_FindCertFromNickname((char *)name, NULL);
|
||||
}
|
||||
if (cert == NULL)
|
||||
return SECFailure;
|
||||
|
Loading…
Reference in New Issue
Block a user