(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:
@@ -194,7 +194,7 @@ check_altName(hx509_validate_ctx ctx,
|
|||||||
{
|
{
|
||||||
GeneralNames gn;
|
GeneralNames gn;
|
||||||
size_t size;
|
size_t size;
|
||||||
int ret;
|
int ret, i;
|
||||||
|
|
||||||
check_Null(ctx, cf, e);
|
check_Null(ctx, cf, e);
|
||||||
|
|
||||||
@@ -213,6 +213,15 @@ check_altName(hx509_validate_ctx ctx,
|
|||||||
return 1;
|
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);
|
free_GeneralNames(&gn);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user