(check_altName): Print the othername oid.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16848 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-03-28 03:48:21 +00:00
parent 2832b00b67
commit 6f2f155e73

View File

@@ -194,7 +194,7 @@ check_altName(hx509_validate_ctx ctx,
{
GeneralNames gn;
size_t size;
int ret;
int ret, i;
check_Null(ctx, cf, e);
@@ -213,6 +213,15 @@ check_altName(hx509_validate_ctx ctx,
return 1;
}
for (i = 0; i < gn.len; i++) {
if (gn.val[i].element == choice_GeneralName_otherName) {
validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "other name oid: ");
hx509_oid_print(&gn.val[i].u.otherName.type_id,
validate_vprint, ctx);
validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "\n");
}
}
free_GeneralNames(&gn);
return 0;