Changed to use the krb5_425_conv_principal() function to map V4 principal
authorTheodore Tso <tytso@mit.edu>
Tue, 18 Aug 1992 23:07:31 +0000 (23:07 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 18 Aug 1992 23:07:31 +0000 (23:07 +0000)
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

index 460ebae678d458c84b6bfecdc881209ebfc4dc06..21bc50e7956e22d6fd66c5d50404b4307a052106 100644 (file)
@@ -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))