From 972f9d9a57e141d3171e8714eb953ad4852ab780 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 25 Oct 2015 21:05:01 +0700 Subject: Add suffix check for test files --- crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crypto/test/src') diff --git a/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs b/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs index a41c99266..23639b112 100644 --- a/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs +++ b/crypto/test/src/pkcs/test/EncryptedPrivateKeyInfoTest.cs @@ -59,11 +59,14 @@ namespace Org.BouncyCastle.Pkcs.Tests doOpensslTestKeys(); } - private void doOpensslTestKeys() + private void doOpensslTestKeys() { string[] names = GetTestDataEntries("keys"); foreach (string name in names) { + if (!name.EndsWith(".key")) + continue; + // Console.Write(name + " => "); Stream data = GetTestDataAsStream(name); AsymmetricKeyParameter key = PrivateKeyFactory.DecryptKey("12345678a".ToCharArray(), data); -- cgit 1.4.1