Lines Matching defs:tab

729 get_var_expand_users(struct var_expand_table *tab, const char *user)
733 tab[0].value = user;
734 tab[1].value = t_strcut(user, '@');
735 tab[2].value = i_strchr_to_next(user, '@');
738 tab[i].value = str_sanitize(tab[i].value, 80);
744 struct var_expand_table *tab;
746 tab = t_malloc_no0(sizeof(login_var_expand_empty_tab));
747 memcpy(tab, login_var_expand_empty_tab,
751 get_var_expand_users(tab, client->virtual_user);
752 tab[3].value = login_binary->protocol;
753 tab[4].value = getenv("HOME");
754 tab[5].value = net_ip2addr(&client->local_ip);
755 tab[6].value = net_ip2addr(&client->ip);
756 tab[7].value = my_pid;
757 tab[8].value = client->auth_mech_name == NULL ? NULL :
759 tab[9].value = dec2str(client->local_port);
760 tab[10].value = dec2str(client->remote_port);
762 tab[11].value = client->secured ? "secured" : NULL;
763 tab[12].value = "";
765 tab[11].value = "TLS";
766 tab[12].value = "(proxied)";
774 tab[11].value = ssl_error == NULL ? ssl_state :
776 tab[12].value =
779 tab[13].value = client->mail_pid == 0 ? "" :
781 tab[14].value = client_get_session_id(client);
782 tab[15].value = net_ip2addr(&client->real_local_ip);
783 tab[16].value = net_ip2addr(&client->real_remote_ip);
784 tab[17].value = dec2str(client->real_local_port);
785 tab[18].value = dec2str(client->real_remote_port);
787 get_var_expand_users(tab+19, client->virtual_user_orig);
789 tab[19].value = tab[0].value;
790 tab[20].value = tab[1].value;
791 tab[21].value = tab[2].value;
794 get_var_expand_users(tab+22, client->virtual_auth_user);
796 tab[22].value = tab[19].value;
797 tab[23].value = tab[20].value;
798 tab[24].value = tab[21].value;
800 tab[25].value = client->listener_name;
801 tab[26].value = str_sanitize(client->local_name, 256);
802 return tab;
897 const struct var_expand_table tab[3] = {
904 if (var_expand(str, client->set->login_log_format, tab, &error) <= 0) {