Changeset 2c14f40
- Timestamp:
- Aug 8, 2009, 12:36:05 AM (15 years ago)
- 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)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r07ae8ed r2c14f40 1490 1490 owl_fmtext_append_normal(&fm, "\n"); 1491 1491 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)); 1493 1493 1494 1494 /* 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)); 1496 1496 owl_fmtext_appendf_normal(&fm, " Multi notc: %s\n", n->z_multinotice); 1497 1497 owl_fmtext_appendf_normal(&fm, " Num other : %i\n", n->z_num_other_fields); -
perlconfig.c
r4d86e06 r2c14f40 58 58 59 59 (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); 61 61 } 62 62 -
zephyr.c
r5603d72 r2c14f40 1076 1076 /* return auth string */ 1077 1077 #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) { 1078 char *owl_zephyr_get_authstr(int a) 1079 { 1080 1081 if (a == ZAUTH_FAILED) { 1084 1082 return ("FAILED"); 1085 } else if ( n->z_auth== ZAUTH_NO) {1083 } else if (a == ZAUTH_NO) { 1086 1084 return ("NO"); 1087 } else if ( n->z_auth== ZAUTH_YES) {1085 } else if (a == ZAUTH_YES) { 1088 1086 return ("YES"); 1089 1087 } else { 1090 1088 return ("UNKNOWN"); 1091 } 1089 } 1092 1090 } 1093 1091 #else
Note: See TracChangeset
for help on using the changeset viewer.