зеркало из https://github.com/mozilla/gecko-dev.git
Remove unneeded references to the KeyDB data structure.
fix compilier warnings.
This commit is contained in:
Родитель
ad3b9d7e36
Коммит
42419ae0ca
|
@ -1038,7 +1038,7 @@ TagTypeToString(TAG_TYPE type)
|
|||
case STYLE_TAG:
|
||||
return "STYLE";
|
||||
default:
|
||||
return "unknown";
|
||||
break;
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
|
|
@ -643,8 +643,8 @@ SignFile (FILE *outFile, FILE *inFile, CERTCertificate *cert)
|
|||
}
|
||||
|
||||
if(password) {
|
||||
rv = SEC_PKCS7Encode(cinfo, SignOut, outFile, NULL, password_hardcode,
|
||||
NULL);
|
||||
rv = SEC_PKCS7Encode(cinfo, SignOut, outFile, NULL,
|
||||
(SECKEYGetPasswordKey) password_hardcode, NULL);
|
||||
} else {
|
||||
rv = SEC_PKCS7Encode(cinfo, SignOut, outFile, NULL, NULL,
|
||||
NULL);
|
||||
|
|
|
@ -112,7 +112,7 @@ char* chop(char*);
|
|||
void out_of_memory(void);
|
||||
void FatalError(char *msg);
|
||||
char* get_default_cert_dir(void);
|
||||
SECItem *password_hardcode(void *arg, SECKEYKeyDBHandle *handle);
|
||||
SECItem *password_hardcode(void *arg, void *handle);
|
||||
char* pk11_password_hardcode(PK11SlotInfo *slot, PRBool retry, void *arg);
|
||||
int rm_dash_r(char *path);
|
||||
char* pr_fgets(char *buf, int size, PRFileDesc *file);
|
||||
|
|
|
@ -445,12 +445,12 @@ static int is_dir (char *filename)
|
|||
*
|
||||
*/
|
||||
SECItem *
|
||||
password_hardcode(void *arg, SECKEYKeyDBHandle *handle)
|
||||
password_hardcode(void *arg, void *handle)
|
||||
{
|
||||
SECItem *pw = NULL;
|
||||
if (password) {
|
||||
pw = SECITEM_AllocItem(NULL, NULL, PL_strlen(password));
|
||||
pw->data = PL_strdup(password);
|
||||
pw->data = (unsigned char *)PL_strdup(password);
|
||||
password = NULL;
|
||||
}
|
||||
return pw;
|
||||
|
|
Загрузка…
Ссылка в новой задаче