Changeset 2c14f40


Ignore:
Timestamp:
Aug 8, 2009, 12:36:05 AM (15 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f12d199
Parents:
fdc0c47
git-author:
Geoffrey Thomas <geofft@mit.edu> (08/07/09 23:58:48)
git-committer:
Geoffrey Thomas <geofft@mit.edu> (08/08/09 00:36:05)
Message:
owl_function_info: Explain the auth status better.

Signed-off-by: Geoffrey Thomas <geofft@mit.edu>
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r07ae8ed r2c14f40  
    14901490        owl_fmtext_append_normal(&fm, "\n");
    14911491        owl_fmtext_appendf_normal(&fm, "  Port      : %i\n", ntohs(n->z_port));
    1492         owl_fmtext_appendf_normal(&fm, "  Auth      : %s\n", owl_zephyr_get_authstr(n));
     1492        owl_fmtext_appendf_normal(&fm, "  Auth Tried: %s\n", owl_zephyr_get_authstr(n->z_auth));
    14931493
    14941494        /* FIXME make these more descriptive */
    1495         owl_fmtext_appendf_normal(&fm, "  Checkd Ath: %i\n", n->z_checked_auth);
     1495        owl_fmtext_appendf_normal(&fm, "  Auth Check: %s\n", owl_zephyr_get_authstr(n->z_checked_auth));
    14961496        owl_fmtext_appendf_normal(&fm, "  Multi notc: %s\n", n->z_multinotice);
    14971497        owl_fmtext_appendf_normal(&fm, "  Num other : %i\n", n->z_num_other_fields);
  • perlconfig.c

    r4d86e06 r2c14f40  
    5858
    5959    (void)hv_store(h, "auth", strlen("auth"),
    60                    newSVpv(owl_zephyr_get_authstr(owl_message_get_notice(m)),0),0);
     60                   newSVpv(owl_zephyr_get_authstr(owl_message_get_notice(m)->z_checked_auth),0),0);
    6161  }
    6262
  • zephyr.c

    r5603d72 r2c14f40  
    10761076/* return auth string */
    10771077#ifdef HAVE_LIBZEPHYR
    1078 char *owl_zephyr_get_authstr(ZNotice_t *n)
    1079 {
    1080 
    1081   if (!n) return("UNKNOWN");
    1082 
    1083   if (n->z_auth == ZAUTH_FAILED) {
     1078char *owl_zephyr_get_authstr(int a)
     1079{
     1080
     1081  if (a == ZAUTH_FAILED) {
    10841082    return ("FAILED");
    1085   } else if (n->z_auth == ZAUTH_NO) {
     1083  } else if (a == ZAUTH_NO) {
    10861084    return ("NO");
    1087   } else if (n->z_auth == ZAUTH_YES) {
     1085  } else if (a == ZAUTH_YES) {
    10881086    return ("YES");
    10891087  } else {
    10901088    return ("UNKNOWN");
    1091   }           
     1089  }
    10921090}
    10931091#else
Note: See TracChangeset for help on using the changeset viewer.