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

@@ -2074,7 +2074,7 @@ match_tree(const GeneralSubtrees *t, const Certificate *c, int *match)
memset(&certname, 0, sizeof(certname));
certname.element = choice_GeneralName_directoryName;
certname.u.directoryName.element = (enum GeneralName_directoryName_enum)
certname.u.directoryName.element = (enum Name_enum)
c->tbsCertificate.subject.element;
certname.u.directoryName.u.rdnSequence =
c->tbsCertificate.subject.u.rdnSequence;