Reset name before parsing it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20885 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -329,10 +329,16 @@ hx509_ca_tbs_add_crl_dp_uri(hx509_context context,
|
||||
"CRLDistributionPoints.name.issuername not yet supported");
|
||||
return EINVAL;
|
||||
#else
|
||||
GeneralNames crlissuer;
|
||||
GeneralNames *crlissuer;
|
||||
GeneralName gn;
|
||||
Name n;
|
||||
|
||||
crlissuer = calloc(1, sizeof(*crlissuer));
|
||||
if (crlissuer == NULL) {
|
||||
return ENOMEM;
|
||||
}
|
||||
memset(&gn, 0, sizeof(gn));
|
||||
|
||||
gn.element = choice_GeneralName_directoryName;
|
||||
ret = hx509_name_to_Name(issuername, &n);
|
||||
if (ret) {
|
||||
@@ -1111,6 +1117,7 @@ get_AuthorityKeyIdentifier(hx509_context context,
|
||||
goto out;
|
||||
}
|
||||
|
||||
memset(&gn, 0, sizeof(gn));
|
||||
gn.element = choice_GeneralName_directoryName;
|
||||
gn.u.directoryName.element =
|
||||
choice_GeneralName_directoryName_rdnSequence;
|
||||
|
Reference in New Issue
Block a user