head	1.4;
access;
symbols
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	ssh_1_2_33:1.3
	ssh_1_2_32:1.2
	ssh_1_2_31:1.2
	ssh_1_2_30:1.2
	ssh_1_2_29:1.1
	ssh_1_2_28:1.1
	ssh_1_2_27:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1
	RELEASE_4_1_0:1.1
	RELEASE_3_5_0:1.1
	RELEASE_4_0_0:1.1;
locks; strict;
comment	@# @;


1.4
date	2011.05.01.20.14.19;	author bapt;	state dead;
branches;
next	1.3;

1.3
date	2002.06.30.03.57.57;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	2002.06.29.21.28.23;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	2000.01.14.19.37.37;	author torstenb;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Remove unmaintained expired ports from security

2011-05-01 security/aafid2: Upstream disapear and distfile is no more available
2011-05-01 security/bjorb: Upstream disapear and distfile is no more available
2011-05-01 security/borzoi: Upstream disapear and distfile is no more available
2011-05-01 security/cmd5checkpw: Upstream disapear and distfile is no more available
2011-05-01 security/cops: Upstream disapear and distfile is no more available
2011-05-01 security/find_ddos: Upstream disapear and distfile is no more available
2011-05-01 security/ftpmap: Upstream disapear and distfile is no more available
2011-05-01 security/hafiye: Upstream disapear and distfile is no more available
2011-05-01 security/ident2: Upstream disapear and distfile is no more available
2011-05-01 security/liedentd: Upstream disapear and distfile is no more available
2011-05-01 security/pam_pop3: Upstream disapear and distfile is no more available
2011-05-01 security/poc: Upstream disapear and distfile is no more available
2011-05-01 security/portscanner: Upstream disapear and distfile is no more available
2011-05-01 security/ppgen: Upstream disapear and distfile is no more available
2011-05-01 security/qident: Upstream disapear and distfile is no more available
2011-05-01 security/quintuple-agent: Upstream disapear and distfile is no more available
2011-05-01 security/rc5pipe: Upstream disapear and distfile is no more available
2011-05-01 security/rid: Upstream disapear and distfile is no more available
2011-05-01 security/ssh: Upstream disapear and distfile is no more available
2011-05-01 security/tea-total: Upstream disapear and distfile is no more available
2011-05-01 security/uberkey: Upstream disapear and distfile is no more available
@
text
@--- log-server.c.orig	Thu Jan 17 05:35:33 2002
+++ log-server.c	Sat Jun 29 14:50:00 2002
@@@@ -163,6 +163,27 @@@@
   closelog();
 }
 
+#ifdef ENABLE_LOG_AUTH
+void log_auth(const char *fmt, ...)
+{
+  char buf[1024];
+  va_list args;
+  extern int log_auth_flag;
+  if (!log_auth_flag)
+    return;
+  if (log_quiet)
+    return;
+  va_start(args, fmt);
+  vsprintf(buf, fmt, args);
+  va_end(args);
+  if (log_on_stderr)
+    fprintf(stderr, "log: %s\n", buf);
+  syslog(LOG_INFO|LOG_AUTH, "%.500s", buf);
+}
+
+extern char *unauthenticated_user;
+#endif /* ENABLE_LOG_AUTH */
+
 /* Converts portable syslog severity to machine-specific syslog severity. */
 
 static int syslog_severity(int severity)
@@@@ -336,6 +357,11 @@@@
     fprintf(stderr, "fatal: %s\n", buf);
   openlog(prg_name, LOG_PID, log_facility);
   syslog(LOG_ERR, "fatal: %.500s", buf);
+#ifdef ENABLE_LOG_AUTH
+  if (unauthenticated_user)
+    log_auth("LOGIN FAILED %.100s from %.200s",
+	     unauthenticated_user, get_canonical_hostname());
+#endif /* ENABLE_LOG_AUTH */
   closelog();
 
   do_fatal_cleanups();
@@@@ -357,6 +383,11 @@@@
     fprintf(stderr, "fatal: %s\n", buf);
   openlog(prg_name, LOG_PID, log_facility);
   syslog(syslog_severity(severity), "fatal: %.500s", buf);
+#ifdef ENABLE_LOG_AUTH
+  if (unauthenticated_user)
+    log_auth("LOGIN FAILED %.100s from %.200s",
+	     unauthenticated_user, get_canonical_hostname());
+#endif /* ENABLE_LOG_AUTH */
   closelog();
 
   do_fatal_cleanups();
@


1.3
log
@Update to version 1.2.33.
@
text
@@


1.2
log
@Update to version 1.2.30.
@
text
@d1 3
a3 3
--- log-server.c.orig	Wed Jul  5 08:26:48 2000
+++ log-server.c	Sat Jun 29 14:25:37 2002
@@@@ -160,6 +160,25 @@@@
d24 2
d31 4
a34 4
@@@@ -344,6 +363,9 @@@@
 {
   char buf[1024];
   va_list args;
d36 3
a38 1
+  extern char *unauthenticated_user;
d40 1
d42 2
a43 3
   if (log_quiet)
     exit(1);
@@@@ -354,6 +376,11 @@@@
@


1.1
log
@Add IPv6 support to ssh.
The IPv6 patch was obtained from the kame repository and has been
been writen by KIKUCHI Takahiro <kick@@kyoto.wide.ad.jp>

Due to the whole mess with different patches it was necessary to include
both the IPv6 patch and patch-ssh-1.2.27-bsd.tty.chown in ${PATCHDIR}.
Since both patches modify the configure script it was also necessary
to rebuild it via autoconf from configure.in. I've decided to use
USE_AUTOCONF instead of including the re-build configure script in
${FILESDIR}

Obtained from:	KAME/WIDE
@
text
@d1 50
a50 56
*** log-server.c.orig	Wed May 12 13:19:26 1999
--- log-server.c	Mon Jan 10 22:56:13 2000
***************
*** 146,151 ****
--- 146,170 ----
    syslog(LOG_INFO, "log: %.500s", buf);
  }
  
+ #ifdef ENABLE_LOG_AUTH
+ void log_auth(const char *fmt, ...)
+ {
+   char buf[1024];
+   va_list args;
+   extern int log_auth_flag;
+   if (!log_auth_flag)
+     return;
+   if (log_quiet)
+     return;
+   va_start(args, fmt);
+   vsprintf(buf, fmt, args);
+   va_end(args);
+   if (log_on_stderr)
+     fprintf(stderr, "log: %s\n", buf);
+   syslog(LOG_INFO|LOG_AUTH, "%.500s", buf);
+ }
+ #endif /* ENABLE_LOG_AUTH */
+ 
  /* Converts portable syslog severity to machine-specific syslog severity. */
  
  static int syslog_severity(int severity)
***************
*** 322,327 ****
--- 341,349 ----
  {
    char buf[1024];
    va_list args;
+ #ifdef ENABLE_LOG_AUTH
+   extern char *unauthenticated_user;
+ #endif /* ENABLE_LOG_AUTH */
  
    if (log_quiet)
      exit(1);
***************
*** 331,336 ****
--- 353,363 ----
    if (log_on_stderr)
      fprintf(stderr, "fatal: %s\n", buf);
    syslog(syslog_severity(severity), "fatal: %.500s", buf);
+ #ifdef ENABLE_LOG_AUTH
+   if (unauthenticated_user)
+     log_auth("LOGIN FAILED %.100s from %.200s",
+ 	     unauthenticated_user, get_canonical_hostname());
+ #endif /* ENABLE_LOG_AUTH */
  
    do_fatal_cleanups();
  
@

