8000 Merge pull request #22 from ffleischer/master · openssl-net/openssl-net@c9a577e · 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 c9a577e

Browse files
author
Frank Laub
committed
Merge pull request #22 from ffleischer/master
fix EVP_PKEY_get1_EC_KEY
2 parents 6d48d99 + e75ec01 commit c9a577e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ManagedOpenSsl/Core/Native.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ public extern static int PEM_write_bio_PrivateKey(
18121812
public extern static int EVP_PKEY_set1_EC_KEY(IntPtr pkey, IntPtr key);
18131813

18141814
[DllImport(DLLNAME, CallingConvention = CallingConvention.Cdecl)]
1815-
public extern static IntPtr EVP_PKEY_get1_EC(IntPtr pkey);
1815+
public extern static IntPtr EVP_PKEY_get1_EC_KEY(IntPtr pkey);
18161816

18171817
[DllImport(DLLNAME, CallingConvention = CallingConvention.Cdecl)]
18181818
public extern static int EVP_PKEY_set1_DH(IntPtr pkey, IntPtr key);

ManagedOpenSsl/Crypto/CryptoKey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public EC.Key GetEC()
323323
if (Type != KeyType.EC)
324324
throw new InvalidOperationException();
325325

326-
return new EC.Key(Native.ExpectNonNull(Native.EVP_PKEY_get1_EC(ptr)), false);
326+
return new EC.Key(Native.ExpectNonNull(Native.EVP_PKEY_get1_EC_KEY(ptr)), true);
327327
}
328328

329329

0 commit comments

Comments
 (0)
0