Commit Graph

47 Commits

Author SHA1 Message Date
sevan 39bbc68a3b Drop main() prototype. 2016-09-05 00:40:28 +00:00
christos 6e28978d84 fix unused variable warnings 2013-10-18 20:47:06 +00:00
matt d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
christos 99db46311e fix time_t printf format. 2008-12-29 01:26:46 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
christos da88a5a499 Coverity CID 5011: #ifdef out unreachable code. 2008-05-24 19:26:14 +00:00
lukem 050e20c6d5 Be consistent about making USE_PAM!=no be exclusive to USE_SKEY!=no. 2008-04-06 09:54:37 +00:00
lukem 73d8c4238e Add support for PAM when using -p, via USE_PAM!=no.
Fix non-root S/key support with USE_SKEY!=no (which is exclusive to
USE_PAM!=no); discovered whilst testing the "old" behaviour.
2008-03-30 15:30:15 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
hubertf 4442954cb6 * Remove unused header ctype.h
* Remove __P

Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
2007-02-07 14:11:30 +00:00
liamjfoy 1ee9d337ea clear errno before using strtol
ok christos & joerg
2006-05-11 12:02:08 +00:00
wiz 8ff81120a3 Usage -> usage; add missing -n to usage. From Kouichirou Hiratsuka in PR 26221. 2004-07-13 11:55:02 +00:00
christos 3506cd1fa5 - KNF
- detect and print more errors
- use strtol() instead of atoi()
- use getprogname()
2004-03-17 17:54:25 +00:00
christos eee22dae1e PR/24796: Colin Percival: CPU-eating loop in lock(1); apply FreeBSD fix. 2004-03-17 17:01:31 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 5f2d0b666f error handling on strdup failure 2002-11-16 15:59:26 +00:00
wiz 44f2153f1e Ispell. Begin new sentences on a new line. 2002-09-26 01:09:46 +00:00
thorpej 9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
simonb 9b22175a26 Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile. 2000-10-18 00:24:18 +00:00
martin ce931ccccf Just another skey compile fix. 2000-07-29 08:40:38 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
tron 9a312a997e Add new option "-n" to disable lock timeout. Patch supplied by "The Man"
in PR bin/7816.
1999-06-27 10:00:36 +00:00
christos e2d09d7f42 portability in printf format, and support for svr4 timezone. 1998-12-19 19:30:57 +00:00
mycroft 55ac0c2da3 const poisoning. 1998-07-26 21:58:46 +00:00
mycroft 66427701ea const poisoning. 1998-07-26 15:23:39 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
mrg b4d921abdc KNF, and discard privs as soon as possible. ensure hostname is nul-terminated 1998-07-05 08:22:36 +00:00
kleink bed4261e5c Need <time.h> for localtime() and asctime() prototypes. 1998-04-02 10:25:09 +00:00
lukem 0c79788813 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-19 04:15:39 +00:00
mycroft 37d3b7eb77 Eliminate redundant library inclusion. 1997-10-12 12:56:51 +00:00
christos 5f3d5ce5cf Conditionalize SKEY support. CFLAGS->CPPFLAGS 1997-10-11 19:16:28 +00:00
pk f890b048ac NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:47:50 +00:00
jtc 273e6cc624 Include appropriate header files to bring prototypes into scope.
Removed explicit errno declarations.
1996-05-07 18:32:22 +00:00
jtc 4a241ea576 sys/signal.h -> signal.h 1995-06-27 00:16:17 +00:00
cgd ed7cdf533b can't assume that timeval.ts_sec is same type as time_t. grr. 1995-06-07 16:09:53 +00:00
mycroft bd23a1002f Use POSIX tty semantics and err*(3)/warn*(3). 1995-05-02 01:22:58 +00:00
jtc 31ac284a48 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-22 01:06:58 +00:00
deraadt 58732c3c77 skey support from <tsarna@endicor.com> 1994-06-30 03:49:43 +00:00
cgd 4b30c543a0 always use libcrypt 1993-10-07 02:16:39 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd 86677cb02a changed to use new libcrypt scheme. 1993-04-26 14:42:34 +00:00
cgd 649bd7ccc5 added support for using real crypt 1993-03-22 23:27:33 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00