зеркало из https://github.com/mozilla/pjs.git
Fix 157998: unable to importCertToPerm
This commit is contained in:
Родитель
b059277104
Коммит
2800b9ee96
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче