]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Comment out some previously-missed debugging output
authorAndrew Boardman <amb@mit.edu>
Mon, 11 Sep 2006 04:02:38 +0000 (04:02 +0000)
committerAndrew Boardman <amb@mit.edu>
Mon, 11 Sep 2006 04:02:38 +0000 (04:02 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/referrals@18580 dc483132-0cff-0310-8789-dd5450dbe970

ptest.c
src/lib/krb5/os/hst_realm.c

diff --git a/ptest.c b/ptest.c
index 9295cc0144a3ce2c83fa85a6a552dbab2a1c41bf..092af5c63b51e1e0bc4798155c757c78c25b3624 100644 (file)
--- a/ptest.c
+++ b/ptest.c
@@ -218,7 +218,7 @@ static void do_v5_kvno (int count, char *names[],
            errors++;
            continue;
        }
-       printf("princ returned was %s\n",princ);
+       printf("ptest: princ returned was %s\n",princ);
        in_creds.keyblock.enctype = etype;
 
        ret = krb5_get_credentials(context, 0, ccache, &in_creds, &out_creds);
index 26ef440684f1c410f965745bc3dfdffcecc6a264..9d6dfd70d521d455808dbc6a8285311ca0df8338 100644 (file)
@@ -200,7 +200,9 @@ krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp)
     krb5_error_code retval;
     char local_host[MAXDNAME+1];
 
+#ifdef DEBUG_REFERRALS
     printf("get_host_realm(host:%s) called\n",host);
+#endif
 
     krb5_clean_hostname(context, host, local_host, sizeof local_host);
 
@@ -217,11 +219,15 @@ krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp)
      */
 
     cp = local_host;
+#ifdef DEBUG_REFERRALS
     printf("  local_host: %s\n",local_host);
+#endif
     realm = (char *)NULL;
     temp_realm = 0;
     while (cp) {
+#ifdef DEBUG_REFERRALS
         printf("  trying to look up %s in the domain_realm map\n",cp);
+#endif
        retval = profile_get_string(context->profile, "domain_realm", cp,
                                    0, (char *)NULL, &temp_realm);
        if (retval)
@@ -236,9 +242,13 @@ krb5_get_host_realm(krb5_context context, const char *host, char ***realmsp)
            cp = strchr(cp, '.');
        }
     }
+#ifdef DEBUG_REFERRALS
     printf("  done searching the domain_realm map\n");
+#endif
     if (temp_realm) {
+#ifdef DEBUG_REFERRALS
     printf("  temp_realm is %s\n",temp_realm);
+#endif
         realm = malloc(strlen(temp_realm) + 1);
         if (!realm) {
             profile_release_string(temp_realm);
@@ -330,7 +340,7 @@ krb5_get_fallback_host_realm(krb5_context context, krb5_data *hdata, char ***rea
     memcpy(host, hdata->data, hdata->length);
     host[hdata->length]=0;
 
-#ifdef DEBUG_REFERRALS    
+#ifdef DEBUG_REFERRALS
     printf("get_fallback_host_realm(host >%s<) called\n",host);
 #endif
 
@@ -339,7 +349,7 @@ krb5_get_fallback_host_realm(krb5_context context, krb5_data *hdata, char ***rea
     /* Scan hostname for DNS realm, and save as last-ditch realm
        assumption. */
     cp = local_host;
-#ifdef DEBUG_REFERRALS    
+#ifdef DEBUG_REFERRALS
     printf("  local_host: %s\n",local_host);
 #endif
     realm = default_realm = (char *)NULL;