29 |
auth_tunnel(void) |
auth_tunnel(void) |
30 |
{ |
{ |
31 |
info(NORMAL, _("Welcome user %s !"), session.client); |
info(NORMAL, _("Welcome user %s !"), session.client); |
32 |
open_rcfile(CLIENT); |
open_rcfile(CF_CLIENT); |
33 |
read_rcfile(CLIENT); |
process_rcfile(CF_CLIENT); |
|
read_rcfile_allsection(); |
|
|
#ifdef WITH_GUILE |
|
|
read_rcfile_guile(); |
|
|
#endif |
|
|
rule_position = get_position(BEGIN_RULE); |
|
|
if (rule_position) |
|
|
info(DEBUG, _("The %s section has been found. Processing..."), "RULE"); |
|
34 |
return; |
return; |
35 |
} |
} |
36 |
|
|
47 |
int sd = 0; |
int sd = 0; |
48 |
|
|
49 |
if ((sd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { |
if ((sd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { |
50 |
anubis_error(SOFT, _("IDENT: socket() failed: %s."), strerror(errno)); |
anubis_error(SOFT, _("IDENT: socket() failed: %s."), |
51 |
|
strerror(errno)); |
52 |
return 0; |
return 0; |
53 |
} |
} |
54 |
memcpy(&ident, addr, sizeof(ident)); |
memcpy(&ident, addr, sizeof(ident)); |