asn1/hx509: Undo workaround for fixed bug

Now that the ASN.1 compiler properly supports IMPLICIT tagging of named
CHOICE types (meaning: treat them as EXPLICIT tags), we can remove one
workaround for that.
This commit is contained in:
Nicolas Williams
2021-01-24 21:36:26 -06:00
parent 17b1e809ba
commit 35ad30b2b3
4 changed files with 4 additions and 8 deletions

View File

@@ -1360,8 +1360,7 @@ hx509_request_get_san(hx509_request req,
case HX509_SAN_TYPE_DN: {
Name name;
if (san->u.directoryName.element ==
choice_GeneralName_directoryName_rdnSequence) {
if (san->u.directoryName.element == choice_Name_rdnSequence) {
name.element = choice_Name_rdnSequence;
name.u.rdnSequence = san->u.directoryName.u.rdnSequence;
return _hx509_Name_to_string(&name, out);