diff --git a/lib/hx509/print.c b/lib/hx509/print.c index ef09bb9e8..7fb2a00b0 100644 --- a/lib/hx509/print.c +++ b/lib/hx509/print.c @@ -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;