Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

OpenSSL: Drop pal_asn1_print in favor of the managed code #30868

Merged
merged 2 commits into from
Jul 9, 2018

Conversation

filipnavara
Copy link
Member

@filipnavara filipnavara commented Jul 6, 2018

Rationale: The d2i_ASN1_type_bytes API has been removed from OpenSSL 1.1 and BoringSSL. In another PR the X500NameEncoder.OpenSslDecode.cs implementation was recently dropped in favor of the managed implementation using DerSequenceReader. This change drops the OpenSSL ASN.1 string parsing in favor of the code that is already used on macOS and that is consistent with the rest of the CoreFX code in treatment of T61 strings.

Extracted from PR #30807.

@filipnavara
Copy link
Member Author

@dotnet-bot test Windows x64 Debug Build

Copy link
Member

@krwq krwq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@krwq krwq requested a review from bartonjs July 6, 2018 20:32
value = reader.ReadUtf8String();
break;

// Ignore anything we don't know how to read.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should T61 be in this switch now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, it should!

@bartonjs
Copy link
Member

bartonjs commented Jul 6, 2018

@dotnet-bot Test Linux arm Release Build please (the build timed out)

@stephentoub
Copy link
Member

@dotnet-bot test Linux arm Release Build please

@bartonjs bartonjs merged commit acb1850 into dotnet:master Jul 9, 2018
@karelz karelz added this to the 3.0 milestone Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants