Fix 157998: unable to importCertToPerm

This commit is contained in:
nicolson%netscape.com 2002-07-19 00:20:24 +00:00
Родитель b059277104
Коммит 2800b9ee96
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -52,7 +52,7 @@ import org.mozilla.jss.provider.java.security.JSSMessageDigestSpi;
* Initialization is done with static methods, and must be done before
* an instance can be created. All other operations are done with instance
* methods.
* @version $Revision: 1.9 $ $Date: 2002-07-04 00:36:51 $
* @version $Revision: 1.10 $ $Date: 2002-07-19 00:20:21 $
*/
public final class CryptoManager implements TokenSupplier
{
@ -1047,9 +1047,6 @@ public final class CryptoManager implements TokenSupplier
throw new InvalidNicknameException("Nickname must be non-null");
}
if (cert instanceof InternalCertificate) {
return (InternalCertificate) cert;
}
else {
return importCertToPermNative(cert,nickname);
}

Просмотреть файл

@ -438,8 +438,8 @@ Java_org_mozilla_jss_pkcs11_PK11Cert_setTrust
}
if( CERT_GetCertTrust( cert, &trust ) != SECSuccess) {
PR_ASSERT(PR_FALSE);
return;
/* cert doesn't have any trust yet, so initialize to 0 */
memset(&trust, 0, sizeof(trust));
}
switch(type) {