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

@@ -2194,8 +2194,7 @@ get_AuthorityKeyIdentifier(hx509_context context,
memset(&gn, 0, sizeof(gn));
gn.element = choice_GeneralName_directoryName;
gn.u.directoryName.element =
choice_GeneralName_directoryName_rdnSequence;
gn.u.directoryName.element = choice_GeneralName_directoryName;
gn.u.directoryName.u.rdnSequence = name.u.rdnSequence;
ret = add_GeneralNames(&gns, &gn);