8000 chore(*): whitespace, cosmetics · openssl-net/openssl-net@e418349 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit e418349

Browse files
author
Frank Laub
committed
chore(*): whitespace, cosmetics
1 parent 48131de commit e418349

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

ManagedOpenSsl/Crypto/CryptoKey.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -314,17 +314,17 @@ public RSA GetRSA()
314314
return new RSA(Native.ExpectNonNull(Native.EVP_PKEY_get1_RSA(ptr)), false);
315315
}
316316

317-
/// <summary>
318-
/// Returns EVP_PKEY_get1_EC()
319-
/// </summary>
320-
/// <returns></returns>
321-
public EC.Key GetEC()
322-
{
323-
if (Type != KeyType.EC)
324-
throw new InvalidOperationException();
325-
326-
return new EC.Key(Native.ExpectNonNull(Native.EVP_PKEY_get1_EC(ptr)), false);
327-
}
317+
/// <summary>
318+
/// Returns EVP_PKEY_get1_EC()
319+
/// </summary>
320+
/// <returns></returns>
321+
public EC.Key GetEC()
322+
{
323+
if (Type != KeyType.EC)
324+
throw new InvalidOperationException();
325+
326+
return new EC.Key(Native.ExpectNonNull(Native.EVP_PKEY_get1_EC(ptr)), false);
327+
}
328328

329329

330330
/// <summary>

test/TestCryptoKey.cs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2222
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2323
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24-
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25-
26-
using System;
27-
using System.IO;
28-
using OpenSSL;
24+
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25+
2926
using NUnit.Framework;
3027
using OpenSSL.Core;
3128
using OpenSSL.Crypto;
@@ -37,13 +34,13 @@ namespace UnitTests
3734
public class TestCryptoKey : TestBase
3835
{
3936
[Test]
40-
public void CanCreateAndDispose()
41-
{
42-
using (CryptoKey key = new CryptoKey())
37+
public void CanCreateAndDispose()
38+
{
39+
using (new CryptoKey())
4340
{
44-
}
45-
}
46-
41+
}
42+
}
43+
4744
[Test]
4845
public void CanCompare()
4946
{

test/TestRandom.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public class TestRandom : TestBase
3434
public void TestCase()
3535
{
3636
Console.WriteLine("Testing random");
37-
int err = 0;
3837

3938
byte[] buf = OpenSSL.Core.Random.PseudoBytes(2500);
4039

0 commit comments

Comments
 (0)
0