Lines Matching defs:info
25 const struct auth_request_info *info)
31 str_append_tabescaped(str, info->mech);
33 str_append_tabescaped(str, info->service);
35 if ((info->flags & AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP) != 0)
37 if ((info->flags & AUTH_REQUEST_FLAG_SECURED) != 0) {
39 if ((info->flags & AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS) != 0)
42 i_assert((info->flags & AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS) == 0);
44 if ((info->flags & AUTH_REQUEST_FLAG_NO_PENALTY) != 0)
46 if ((info->flags & AUTH_REQUEST_FLAG_VALID_CLIENT_CERT) != 0)
48 if ((info->flags & AUTH_REQUEST_FLAG_DEBUG) != 0)
51 if (info->session_id != NULL) {
53 str_append_tabescaped(str, info->session_id);
55 if (info->cert_username != NULL) {
57 str_append_tabescaped(str, info->cert_username);
59 if (info->local_ip.family != 0)
60 str_printfa(str, "\tlip=%s", net_ip2addr(&info->local_ip));
61 if (info->remote_ip.family != 0)
62 str_printfa(str, "\trip=%s", net_ip2addr(&info->remote_ip));
63 if (info->local_port != 0)
64 str_printfa(str, "\tlport=%u", info->local_port);
65 if (info->remote_port != 0)
66 str_printfa(str, "\trport=%u", info->remote_port);
70 if (info->real_local_ip.family != 0 &&
71 !net_ip_compare(&info->real_local_ip, &info->local_ip)) {
73 net_ip2addr(&info->real_local_ip));
75 if (info->real_remote_ip.family != 0 &&
76 !net_ip_compare(&info->real_remote_ip, &info->remote_ip)) {
78 net_ip2addr(&info->real_remote_ip));
80 if (info->real_local_port != 0 &&
81 info->real_local_port != info->local_port)
82 str_printfa(str, "\treal_lport=%u", info->real_local_port);
83 if (info->real_remote_port != 0 &&
84 info->real_remote_port != info->remote_port)
85 str_printfa(str, "\treal_rport=%u", info->real_remote_port);
86 if (info->local_name != NULL &&
87 *info->local_name != '\0') {
89 str_append_tabescaped(str, info->local_name);
91 if (info->ssl_cipher_bits != 0 && info->ssl_cipher != NULL) {
93 str_append_tabescaped(str, info->ssl_cipher);
94 str_printfa(str, "\tssl_cipher_bits=%u", info->ssl_cipher_bits);
95 if (info->ssl_pfs != NULL) {
97 str_append_tabescaped(str, info->ssl_pfs);
100 if (info->ssl_protocol != NULL) {
102 str_append_tabescaped(str, info->ssl_protocol);
104 if (info->client_id != NULL &&
105 *info->client_id != '\0') {
107 str_append_tabescaped(str, info->client_id);
109 if (info->forward_fields != NULL &&
110 *info->forward_fields != '\0') {
112 str_append_tabescaped(str, info->forward_fields);
114 if (info->initial_resp_base64 != NULL) {
116 str_append_tabescaped(str, info->initial_resp_base64);