Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 710ce8f

Browse files
committed
Removing unused DuplicateX509Name function
1 parent f73b3d2 commit 710ce8f

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.X509Name.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ internal static partial class Crypto
2525
[DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_NewX509NameStack")]
2626
internal static extern SafeX509NameStackHandle NewX509NameStack();
2727

28-
[DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_DuplicateX509Name")]
29-
internal static extern SafeX509NameHandle DuplicateX509Name(IntPtr x509Name);
30-
3128
[DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_GetX509NameStackField")]
3229
private static extern SafeSharedX509NameHandle GetX509NameStackField_private(SafeSharedX509NameStackHandle sk,
3330
int loc);

src/Native/Unix/System.Security.Cryptography.Native/pal_x509_name.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ extern "C" void CryptoNative_RecursiveFreeX509NameStack(STACK_OF(X509_NAME) * st
5252
sk_X509_NAME_pop_free(stack, X509_NAME_free);
5353
}
5454

55-
extern "C" X509_NAME* CryptoNative_DuplicateX509Name(X509_NAME* x509Name)
56-
{
57-
return X509_NAME_dup(x509Name);
58-
}
59-
6055
extern "C" int32_t CryptoNative_GetX509NameEntryCount(X509_NAME* x509Name)
6156
{
6257
return X509_NAME_entry_count(x509Name);

src/Native/Unix/System.Security.Cryptography.Native/pal_x509_name.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ Direct shim to sk_X509_NAME_pop_free
6161
*/
6262
extern "C" void CryptoNative_RecursiveFreeX509NameStack(STACK_OF(X509_NAME) * stack);
6363

64-
/*
65-
Function:
66-
DuplicateX509Name
67-
68-
Direct shim to X509_NAME_dup
69-
*/
70-
extern "C" X509_NAME* CryptoNative_DuplicateX509Name(X509_NAME* x509Name);
71-
7264
/*
7365
Direct shim to X509_NAME_entry_count
7466
*/

0 commit comments

Comments
 (0)