From 6f2f155e7393054a6ece78368f9a23d6cb34b89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 28 Mar 2006 03:48:21 +0000 Subject: [PATCH] (check_altName): Print the othername oid. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16848 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/print.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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;