Changeset f12d199
- Timestamp:
- Aug 8, 2009, 3:12:04 AM (16 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:
- fea7992
- Parents:
- 2c14f40
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r2c14f40 rf12d199 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 Tried: %s\n", owl_zephyr_get_authstr(n->z_auth));1492 owl_fmtext_appendf_normal(&fm, " Auth : %s\n", owl_zephyr_get_authstr(n)); 1493 1493 1494 1494 /* FIXME make these more descriptive */ 1495 owl_fmtext_appendf_normal(&fm, " Auth Check: %s\n", owl_zephyr_get_authstr(n->z_checked_auth));1495 owl_fmtext_appendf_normal(&fm, " Checkd Ath: %i\n", 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
r2c14f40 rf12d199 58 58 59 59 (void)hv_store(h, "auth", strlen("auth"), 60 newSVpv(owl_zephyr_get_authstr(owl_message_get_notice(m) ->z_checked_auth),0),0);60 newSVpv(owl_zephyr_get_authstr(owl_message_get_notice(m)),0),0); 61 61 } 62 62 -
zephyr.c
r2c14f40 rf12d199 1076 1076 /* return auth string */ 1077 1077 #ifdef HAVE_LIBZEPHYR 1078 char *owl_zephyr_get_authstr(int a) 1079 { 1080 1081 if (a == ZAUTH_FAILED) { 1078 char *owl_zephyr_get_authstr(ZNotice_t *n) 1079 { 1080 1081 if (!n) return("UNKNOWN"); 1082 1083 if (n->z_auth == ZAUTH_FAILED) { 1082 1084 return ("FAILED"); 1083 } else if ( a== ZAUTH_NO) {1085 } else if (n->z_auth == ZAUTH_NO) { 1084 1086 return ("NO"); 1085 } else if ( a== ZAUTH_YES) {1087 } else if (n->z_auth == ZAUTH_YES) { 1086 1088 return ("YES"); 1087 1089 } else { 1088 1090 return ("UNKNOWN"); 1089 } 1091 } 1090 1092 } 1091 1093 #else
Note: See TracChangeset
for help on using the changeset viewer.