Репозиторий Sisyphus
Последнее обновление: 19 июля 2019 | Пакетов: 17691 | Посещений: 14362492
en ru br
Репозитории ALT
S:4.5.3-alt2
5.1: 4.2.5-alt1
4.1: 4.2.5-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: jss

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: jss-ECC-pop.patch
Скачать


diff -rupN jss-4.2.6/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java jss-4.2.6.cfu/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java
--- jss-4.2.6/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java	2004-04-25 08:02:26.000000000 -0700
+++ jss-4.2.6.cfu/mozilla/security/jss/org/mozilla/jss/pkix/crmf/CertReqMsg.java	2009-07-27 13:38:38.197422000 -0700
@@ -130,6 +130,16 @@ public class CertReqMsg implements ASN1V
     ///////////////////////////////////////////////////////////////////////
 
 	public void verify() throws SignatureException,
+        InvalidKeyFormatException, NoSuchAlgorithmException,
+        org.mozilla.jss.CryptoManager.NotInitializedException,
+        TokenException, java.security.InvalidKeyException, IOException{
+
+        CryptoToken token = CryptoManager.getInstance()
+                                .getInternalCryptoToken();
+        verify(token);
+    }
+
+    public void verify(CryptoToken token) throws SignatureException,
 		InvalidKeyFormatException, NoSuchAlgorithmException,
 		org.mozilla.jss.CryptoManager.NotInitializedException,
 		TokenException, java.security.InvalidKeyException, IOException{
@@ -149,8 +159,6 @@ public class CertReqMsg implements ASN1V
 				pubkey = (PublicKey) spi.toPublicKey();
 			}
 
-			CryptoToken token = CryptoManager.getInstance()
-                                .getInternalCryptoToken();
 			SignatureAlgorithm sigAlg =
 				SignatureAlgorithm.fromOID(alg.getOID());
 			Signature sig = token.getSignatureContext(sigAlg);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin