From d5be3432c3923886233f8648e3df738ed20ca628 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 18 Aug 1992 23:07:31 +0000 Subject: [PATCH] Changed to use the krb5_425_conv_principal() function to map V4 principal names to V5 principal names. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2320 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/convert/kdb5_convert.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/admin/convert/kdb5_convert.c b/src/admin/convert/kdb5_convert.c index 460ebae67..21bc50e79 100644 --- a/src/admin/convert/kdb5_convert.c +++ b/src/admin/convert/kdb5_convert.c @@ -499,10 +499,8 @@ Principal *princ; printf("\nignoring '%s.%s' ...", princ->name, princ->instance); return 0; } - if (retval = krb5_build_principal(&entry.principal, strlen(realm), - realm, princ->name, - princ->instance[0] ? princ->instance : 0, - 0)) + if (retval = krb5_425_conv_principal(princ->name, princ->instance, + realm, &entry.principal)) return retval; if (verbose) { if (retval = krb5_unparse_name(entry.principal, &name)) -- 2.26.2