|
|
105ad9 |
From 3fd578c3ccea681efd14aea07a0364b3baa3cca7 Mon Sep 17 00:00:00 2001
|
|
|
105ad9 |
From: Filip Navara <filip.navara@gmail.com>
|
|
|
105ad9 |
Date: Mon, 9 Jul 2018 19:08:50 +0200
|
|
|
105ad9 |
Subject: [PATCH 2/7] Drop pal_asn1_print in favor of the managed code
|
|
|
105ad9 |
|
|
|
105ad9 |
* Drop pal_asn1_print in favor of the managed code that is already used on macOS.
|
|
|
105ad9 |
|
|
|
105ad9 |
* Add handling of T61 strings to ManagedCertificateFinder.DerStringToManagedString.
|
|
|
105ad9 |
---
|
|
|
105ad9 |
.../Interop.ASN1.Print.cs | 144 ------------------
|
|
|
105ad9 |
.../Win32/SafeHandles/Asn1SafeHandles.Unix.cs | 28 ----
|
|
|
105ad9 |
.../pal_asn1_print.cpp | 5 +
|
|
|
105ad9 |
.../pal_asn1_print.h | 5 +
|
|
|
105ad9 |
.../Internal/Cryptography/Pal.OSX/FindPal.cs | 28 ----
|
|
|
105ad9 |
.../Pal.Unix/ManagedCertificateFinder.cs | 31 +++-
|
|
|
105ad9 |
.../Pal.Unix/OpenSslCertificateFinder.cs | 5 -
|
|
|
105ad9 |
...urity.Cryptography.X509Certificates.csproj | 3 -
|
|
|
105ad9 |
8 files changed, 40 insertions(+), 209 deletions(-)
|
|
|
105ad9 |
delete mode 100644 src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.ASN1.Print.cs
|
|
|
105ad9 |
|
|
|
105ad9 |
diff --git a/src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.ASN1.Print.cs b/src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.ASN1.Print.cs
|
|
|
105ad9 |
deleted file mode 100644
|
|
|
105ad9 |
index 12199563c8..0000000000
|
|
|
105ad9 |
--- a/src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.ASN1.Print.cs
|
|
|
105ad9 |
+++ /dev/null
|
|
|
105ad9 |
@@ -1,144 +0,0 @@
|
|
|
105ad9 |
-// Licensed to the .NET Foundation under one or more agreements.
|
|
|
105ad9 |
-// The .NET Foundation licenses this file to you under the MIT license.
|
|
|
105ad9 |
-// See the LICENSE file in the project root for more information.
|
|
|
105ad9 |
-
|
|
|
105ad9 |
-using System;
|
|
|
105ad9 |
-using System.Runtime.InteropServices;
|
|
|
105ad9 |
-using System.Text;
|
|
|
105ad9 |
-using Microsoft.Win32.SafeHandles;
|
|
|
105ad9 |
-
|
|
|
105ad9 |
-internal static partial class Interop
|
|
|
105ad9 |
-{
|
|
|
105ad9 |
- internal static partial class Crypto
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- [DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_DecodeAsn1TypeBytes")]
|
|
|
105ad9 |
- private static extern SafeAsn1StringHandle DecodeAsn1TypeBytes(byte[] buf, int len, Asn1StringTypeFlags flags);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- [DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_Asn1StringPrintEx")]
|
|
|
105ad9 |
- private static extern int Asn1StringPrintEx(SafeBioHandle bio, SafeAsn1StringHandle str, Asn1StringPrintFlags flags);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- [DllImport(Libraries.CryptoNative, EntryPoint = "CryptoNative_Asn1StringPrintEx")]
|
|
|
105ad9 |
- private static extern int Asn1StringPrintEx(SafeBioHandle bio, SafeSharedAsn1StringHandle str, Asn1StringPrintFlags flags);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- internal static string DerStringToManagedString(byte[] derString)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- SafeAsn1StringHandle asn1String = DecodeAsn1TypeBytes(derString, derString.Length, AnyTextStringType);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- if (asn1String.IsInvalid)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- Interop.Crypto.ErrClearError();
|
|
|
105ad9 |
- return null;
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- using (asn1String)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- return Asn1StringToManagedString(
|
|
|
105ad9 |
- asn1String,
|
|
|
105ad9 |
- (bio, str, flags) => Asn1StringPrintEx(bio, str, flags));
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- internal static string Asn1StringToManagedString(SafeSharedAsn1StringHandle asn1String)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- CheckValidOpenSslHandle(asn1String);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- return Asn1StringToManagedString(
|
|
|
105ad9 |
- asn1String,
|
|
|
105ad9 |
- (bio, str, flags) => Asn1StringPrintEx(bio, str, flags));
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- private static string Asn1StringToManagedString<THandle>(
|
|
|
105ad9 |
- THandle asn1String,
|
|
|
105ad9 |
- Func<SafeBioHandle, THandle, Asn1StringPrintFlags, int> asn1StringPrintEx)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- byte[] utf8Bytes;
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- using (SafeBioHandle bio = CreateMemoryBio())
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- CheckValidOpenSslHandle(bio);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- int len = asn1StringPrintEx(bio, asn1String, Asn1StringPrintFlags.ASN1_STRFLGS_UTF8_CONVERT);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- if (len < 0)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- throw CreateOpenSslCryptographicException();
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- if (len == 0)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- return "";
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- int bioSize = GetMemoryBioSize(bio);
|
|
|
105ad9 |
- utf8Bytes = new byte[bioSize + 1];
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- int read = BioRead(bio, utf8Bytes, utf8Bytes.Length);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- if (read < 0)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- throw CreateOpenSslCryptographicException();
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- int nonNullCount = utf8Bytes.Length;
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- if (utf8Bytes[utf8Bytes.Length - 1] == 0)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- for (int i = utf8Bytes.Length - 1; i >= 0; i--)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- if (utf8Bytes[i] != 0)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- break;
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- nonNullCount = i;
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- return Encoding.UTF8.GetString(utf8Bytes, 0, nonNullCount);
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- [Flags]
|
|
|
105ad9 |
- private enum Asn1StringPrintFlags : ulong
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- ASN1_STRFLGS_UTF8_CONVERT = 0x10,
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- [Flags]
|
|
|
105ad9 |
- private enum Asn1StringTypeFlags
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- B_ASN1_NUMERICSTRING = 0x0001,
|
|
|
105ad9 |
- B_ASN1_PRINTABLESTRING = 0x0002,
|
|
|
105ad9 |
- B_ASN1_T61STRING = 0x0004,
|
|
|
105ad9 |
- B_ASN1_VIDEOTEXSTRING = 0x0008,
|
|
|
105ad9 |
- B_ASN1_IA5STRING = 0x0010,
|
|
|
105ad9 |
- B_ASN1_GRAPHICSTRING = 0x0020,
|
|
|
105ad9 |
- B_ASN1_VISIBLESTRING = 0x0040,
|
|
|
105ad9 |
- B_ASN1_GENERALSTRING = 0x0080,
|
|
|
105ad9 |
- B_ASN1_UNIVERSALSTRING = 0x0100,
|
|
|
105ad9 |
- B_ASN1_OCTET_STRING = 0x0200,
|
|
|
105ad9 |
- B_ASN1_BIT_STRING = 0x0400,
|
|
|
105ad9 |
- B_ASN1_BMPSTRING = 0x0800,
|
|
|
105ad9 |
- B_ASN1_UNKNOWN = 0x1000,
|
|
|
105ad9 |
- B_ASN1_UTF8STRING = 0x2000,
|
|
|
105ad9 |
- B_ASN1_UTCTIME = 0x4000,
|
|
|
105ad9 |
- B_ASN1_GENERALIZEDTIME = 0x8000,
|
|
|
105ad9 |
- B_ASN1_SEQUENCE = 0x10000,
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- private const Asn1StringTypeFlags AnyTextStringType =
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_NUMERICSTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_PRINTABLESTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_T61STRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_VIDEOTEXSTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_IA5STRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_GRAPHICSTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_VISIBLESTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_GENERALSTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_UNIVERSALSTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_BMPSTRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_UTF8STRING |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_UTCTIME |
|
|
|
105ad9 |
- Asn1StringTypeFlags.B_ASN1_GENERALIZEDTIME;
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-}
|
|
|
105ad9 |
diff --git a/src/Common/src/Microsoft/Win32/SafeHandles/Asn1SafeHandles.Unix.cs b/src/Common/src/Microsoft/Win32/SafeHandles/Asn1SafeHandles.Unix.cs
|
|
|
105ad9 |
index 3fdde3f602..ddf413110c 100644
|
|
|
105ad9 |
--- a/src/Common/src/Microsoft/Win32/SafeHandles/Asn1SafeHandles.Unix.cs
|
|
|
105ad9 |
+++ b/src/Common/src/Microsoft/Win32/SafeHandles/Asn1SafeHandles.Unix.cs
|
|
|
105ad9 |
@@ -68,34 +68,6 @@ namespace Microsoft.Win32.SafeHandles
|
|
|
105ad9 |
}
|
|
|
105ad9 |
}
|
|
|
105ad9 |
|
|
|
105ad9 |
- internal sealed class SafeAsn1StringHandle : SafeHandle
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- private SafeAsn1StringHandle() :
|
|
|
105ad9 |
- base(IntPtr.Zero, ownsHandle: true)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- protected override bool ReleaseHandle()
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- Interop.Crypto.Asn1StringFree(handle);
|
|
|
105ad9 |
- SetHandle(IntPtr.Zero);
|
|
|
105ad9 |
- return true;
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- public override bool IsInvalid
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- get { return handle == IntPtr.Zero; }
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- internal sealed class SafeSharedAsn1StringHandle : SafeInteriorHandle
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- private SafeSharedAsn1StringHandle() :
|
|
|
105ad9 |
- base(IntPtr.Zero, ownsHandle: true)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
internal sealed class SafeSharedAsn1IntegerHandle : SafeInteriorHandle
|
|
|
105ad9 |
{
|
|
|
105ad9 |
private SafeSharedAsn1IntegerHandle() :
|
|
|
105ad9 |
diff --git a/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.cpp b/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.cpp
|
|
|
105ad9 |
index ffbfef980d..01a544f5e9 100644
|
|
|
105ad9 |
--- a/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.cpp
|
|
|
105ad9 |
+++ b/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.cpp
|
|
|
105ad9 |
@@ -4,6 +4,11 @@
|
|
|
105ad9 |
|
|
|
105ad9 |
#include "pal_asn1_print.h"
|
|
|
105ad9 |
|
|
|
105ad9 |
+/*
|
|
|
105ad9 |
+ * This file is completely unused. It's kept around for compatiblity between
|
|
|
105ad9 |
+ * servicing updates.
|
|
|
105ad9 |
+ */
|
|
|
105ad9 |
+
|
|
|
105ad9 |
static_assert(PAL_B_ASN1_NUMERICSTRING == B_ASN1_NUMERICSTRING, "");
|
|
|
105ad9 |
static_assert(PAL_B_ASN1_PRINTABLESTRING == B_ASN1_PRINTABLESTRING, "");
|
|
|
105ad9 |
static_assert(PAL_B_ASN1_T61STRING == B_ASN1_T61STRING, "");
|
|
|
105ad9 |
diff --git a/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.h b/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.h
|
|
|
105ad9 |
index 982506e420..71205cc13c 100644
|
|
|
105ad9 |
--- a/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.h
|
|
|
105ad9 |
+++ b/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1_print.h
|
|
|
105ad9 |
@@ -5,6 +5,11 @@
|
|
|
105ad9 |
#include "pal_types.h"
|
|
|
105ad9 |
#include "opensslshim.h"
|
|
|
105ad9 |
|
|
|
105ad9 |
+/*
|
|
|
105ad9 |
+ * This file is completely unused. It's kept around for compatiblity between
|
|
|
105ad9 |
+ * servicing updates.
|
|
|
105ad9 |
+ */
|
|
|
105ad9 |
+
|
|
|
105ad9 |
/*
|
|
|
105ad9 |
Flags for the 'type' parameter of CryptoNative_DecodeAsn1TypeBytes.
|
|
|
105ad9 |
*/
|
|
|
105ad9 |
diff --git a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/FindPal.cs b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/FindPal.cs
|
|
|
105ad9 |
index b2d2846c1a..e66bad7e76 100644
|
|
|
105ad9 |
--- a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/FindPal.cs
|
|
|
105ad9 |
+++ b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/FindPal.cs
|
|
|
105ad9 |
@@ -22,34 +22,6 @@ namespace Internal.Cryptography.Pal
|
|
|
105ad9 |
{
|
|
|
105ad9 |
}
|
|
|
105ad9 |
|
|
|
105ad9 |
- protected override string DerStringToManagedString(byte[] anyString)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- DerSequenceReader reader = DerSequenceReader.CreateForPayload(anyString);
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- var tag = (DerSequenceReader.DerTag)reader.PeekTag();
|
|
|
105ad9 |
- string value = null;
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- switch (tag)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- case DerSequenceReader.DerTag.BMPString:
|
|
|
105ad9 |
- value = reader.ReadBMPString();
|
|
|
105ad9 |
- break;
|
|
|
105ad9 |
- case DerSequenceReader.DerTag.IA5String:
|
|
|
105ad9 |
- value = reader.ReadIA5String();
|
|
|
105ad9 |
- break;
|
|
|
105ad9 |
- case DerSequenceReader.DerTag.PrintableString:
|
|
|
105ad9 |
- value = reader.ReadPrintableString();
|
|
|
105ad9 |
- break;
|
|
|
105ad9 |
- case DerSequenceReader.DerTag.UTF8String:
|
|
|
105ad9 |
- value = reader.ReadUtf8String();
|
|
|
105ad9 |
- break;
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- // Ignore anything we don't know how to read.
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
- return value;
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
protected override byte[] GetSubjectPublicKeyInfo(X509Certificate2 cert)
|
|
|
105ad9 |
{
|
|
|
105ad9 |
AppleCertificatePal pal = (AppleCertificatePal)cert.Pal;
|
|
|
105ad9 |
diff --git a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/ManagedCertificateFinder.cs b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/ManagedCertificateFinder.cs
|
|
|
105ad9 |
index ebc5ee48d1..a70bf1488d 100644
|
|
|
105ad9 |
--- a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/ManagedCertificateFinder.cs
|
|
|
105ad9 |
+++ b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/ManagedCertificateFinder.cs
|
|
|
105ad9 |
@@ -123,7 +123,36 @@ namespace Internal.Cryptography.Pal
|
|
|
105ad9 |
FindCore(cert => cert.NotAfter < normalized);
|
|
|
105ad9 |
}
|
|
|
105ad9 |
|
|
|
105ad9 |
- protected abstract string DerStringToManagedString(byte[] anyString);
|
|
|
105ad9 |
+ private string DerStringToManagedString(byte[] anyString)
|
|
|
105ad9 |
+ {
|
|
|
105ad9 |
+ DerSequenceReader reader = DerSequenceReader.CreateForPayload(anyString);
|
|
|
105ad9 |
+
|
|
|
105ad9 |
+ var tag = (DerSequenceReader.DerTag)reader.PeekTag();
|
|
|
105ad9 |
+ string value = null;
|
|
|
105ad9 |
+
|
|
|
105ad9 |
+ switch (tag)
|
|
|
105ad9 |
+ {
|
|
|
105ad9 |
+ case DerSequenceReader.DerTag.BMPString:
|
|
|
105ad9 |
+ value = reader.ReadBMPString();
|
|
|
105ad9 |
+ break;
|
|
|
105ad9 |
+ case DerSequenceReader.DerTag.IA5String:
|
|
|
105ad9 |
+ value = reader.ReadIA5String();
|
|
|
105ad9 |
+ break;
|
|
|
105ad9 |
+ case DerSequenceReader.DerTag.PrintableString:
|
|
|
105ad9 |
+ value = reader.ReadPrintableString();
|
|
|
105ad9 |
+ break;
|
|
|
105ad9 |
+ case DerSequenceReader.DerTag.UTF8String:
|
|
|
105ad9 |
+ value = reader.ReadUtf8String();
|
|
|
105ad9 |
+ break;
|
|
|
105ad9 |
+ case DerSequenceReader.DerTag.T61String:
|
|
|
105ad9 |
+ value = reader.ReadT61String();
|
|
|
105ad9 |
+ break;
|
|
|
105ad9 |
+
|
|
|
105ad9 |
+ // Ignore anything we don't know how to read.
|
|
|
105ad9 |
+ }
|
|
|
105ad9 |
+
|
|
|
105ad9 |
+ return value;
|
|
|
105ad9 |
+ }
|
|
|
105ad9 |
|
|
|
105ad9 |
public void FindByTemplateName(string templateName)
|
|
|
105ad9 |
{
|
|
|
105ad9 |
diff --git a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/OpenSslCertificateFinder.cs b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/OpenSslCertificateFinder.cs
|
|
|
105ad9 |
index 720c298994..717ee3753b 100644
|
|
|
105ad9 |
--- a/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/OpenSslCertificateFinder.cs
|
|
|
105ad9 |
+++ b/src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/OpenSslCertificateFinder.cs
|
|
|
105ad9 |
@@ -13,11 +13,6 @@ namespace Internal.Cryptography.Pal
|
|
|
105ad9 |
{
|
|
|
105ad9 |
}
|
|
|
105ad9 |
|
|
|
105ad9 |
- protected override string DerStringToManagedString(byte[] anyString)
|
|
|
105ad9 |
- {
|
|
|
105ad9 |
- return Interop.Crypto.DerStringToManagedString(anyString);
|
|
|
105ad9 |
- }
|
|
|
105ad9 |
-
|
|
|
105ad9 |
protected override byte[] GetSubjectPublicKeyInfo(X509Certificate2 cert)
|
|
|
105ad9 |
{
|
|
|
105ad9 |
OpenSslX509CertificateReader certPal = (OpenSslX509CertificateReader)cert.Pal;
|
|
|
105ad9 |
diff --git a/src/System.Security.Cryptography.X509Certificates/src/System.Security.Cryptography.X509Certificates.csproj b/src/System.Security.Cryptography.X509Certificates/src/System.Security.Cryptography.X509Certificates.csproj
|
|
|
105ad9 |
index 3bdef009b9..5d9e22a7f3 100644
|
|
|
105ad9 |
--- a/src/System.Security.Cryptography.X509Certificates/src/System.Security.Cryptography.X509Certificates.csproj
|
|
|
105ad9 |
+++ b/src/System.Security.Cryptography.X509Certificates/src/System.Security.Cryptography.X509Certificates.csproj
|
|
|
105ad9 |
@@ -186,9 +186,6 @@
|
|
|
105ad9 |
<Compile Include="$(CommonPath)\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs">
|
|
|
105ad9 |
<Link>Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.GetIntegerBytes.cs</Link>
|
|
|
105ad9 |
</Compile>
|
|
|
105ad9 |
- <Compile Include="$(CommonPath)\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Print.cs">
|
|
|
105ad9 |
- <Link>Common\Interop\Unix\System.Security.Cryptography.Native\Interop.ASN1.Print.cs</Link>
|
|
|
105ad9 |
- </Compile>
|
|
|
105ad9 |
<Compile Include="$(CommonPath)\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs">
|
|
|
105ad9 |
<Link>Common\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs</Link>
|
|
|
105ad9 |
</Compile>
|
|
|
105ad9 |
--
|
|
|
105ad9 |
2.20.1
|
|
|
105ad9 |
|