summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-02-08 21:52:47 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-02-08 21:52:47 +1100
commit2e0cf0dca20e56eb5d95a80ba0004769c5bc4ba7 (patch)
treed03f7560b26c36b6afd48ffb962775b6424fee72 /sshd.c
parentb4d3012d2e9a0eb53c56565108c8278e45cefc77 (diff)
- (dtucker) [audit.c audit.h auth.c auth1.c auth2.c loginrec.c monitor.c
monitor_wrap.c monitor_wrap.h session.c sshd.c]: Prepend all of the audit defines and enums with SSH_ to prevent namespace collisions on some platforms (eg AIX).
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sshd.c b/sshd.c
index e61870ea5..6b379521b 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1628,7 +1628,7 @@ main(int ac, char **av)
1628 remote_port = get_remote_port(); 1628 remote_port = get_remote_port();
1629 remote_ip = get_remote_ipaddr(); 1629 remote_ip = get_remote_ipaddr();
1630 1630
1631#ifdef AUDIT_EVENTS 1631#ifdef SSH_AUDIT_EVENTS
1632 audit_connection_from(remote_ip, remote_port); 1632 audit_connection_from(remote_ip, remote_port);
1633#endif 1633#endif
1634#ifdef LIBWRAP 1634#ifdef LIBWRAP
@@ -1700,8 +1700,8 @@ main(int ac, char **av)
1700 } 1700 }
1701 1701
1702 authenticated: 1702 authenticated:
1703#ifdef AUDIT_EVENTS 1703#ifdef SSH_AUDIT_EVENTS
1704 audit_event(AUTH_SUCCESS); 1704 audit_event(SSH_AUTH_SUCCESS);
1705#endif 1705#endif
1706 1706
1707 /* 1707 /*
@@ -2017,10 +2017,10 @@ cleanup_exit(int i)
2017{ 2017{
2018 if (the_authctxt) 2018 if (the_authctxt)
2019 do_cleanup(the_authctxt); 2019 do_cleanup(the_authctxt);
2020#ifdef AUDIT_EVENTS 2020#ifdef SSH_AUDIT_EVENTS
2021 /* done after do_cleanup so it can cancel the PAM auth 'thread' */ 2021 /* done after do_cleanup so it can cancel the PAM auth 'thread' */
2022 if (!use_privsep || mm_is_monitor()) 2022 if (!use_privsep || mm_is_monitor())
2023 audit_event(CONNECTION_ABANDON); 2023 audit_event(SSH_CONNECTION_ABANDON);
2024#endif 2024#endif
2025 _exit(i); 2025 _exit(i);
2026} 2026}