summaryrefslogtreecommitdiffstats
path: root/src/appl/telnet/libtelnet/auth.c
Commit message (Collapse)AuthorAgeFilesLines
* Unbundle applications into separate repositoryGreg Hudson2009-11-221-650/+0
| | | | | | | | | | | | | | | Remove libpty, gssftp, telnet, and the bsd applications from the source tree, build system, and tests. Docs still need to be updated to remove mentions of the applications. The build system should be simplified now that we're down to one configure script and don't need some of the functionality currently in aclocal.m4. ticket: 6583 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23305 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-4/+4
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unnecessary pointer casts in args to free,memcpy,memset,memchr except ↵Ken Raeburn2009-02-021-3/+2
| | | | | | unicode, windows code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21875 dc483132-0cff-0310-8789-dd5450dbe970
* Remove krb4 support in gssftp and telnetGreg Hudson2008-12-151-18/+0
| | | | | | | ticket: 6303 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21451 dc483132-0cff-0310-8789-dd5450dbe970
* Convert many uses of sprintf to snprintf or asprintfGreg Hudson2008-12-011-1/+1
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21258 dc483132-0cff-0310-8789-dd5450dbe970
* Merge Athena changes for requiring encrypted connectionsTom Yu2004-11-151-7/+26
| | | | | | | ticket: 841 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16866 dc483132-0cff-0310-8789-dd5450dbe970
* * enc-proto.h, enc_des.c, encrypt.c: Unsigned/signed cleanupsEzra Peisach2002-11-151-3/+5
| | | | | | | | | | | | | | | | | | | * forward.c: Include unistd.h if present on machine. * misc-proto.h misc.c (auth_encrypt_user): Declare argument as const. * auth.c: Cast argument auth_encrypt_user. auth_gen_printsub() and auth_printsub() take unsigned int as buffer length. * auth.h, auth-proto.h, kerberos.c, kerberos5.c, spx.c: auth_gen_printsub(), auth_printsub(), kerberos4_printsub(), kerberos5_printsub(), spx_printsub() take unsigned int as length argument. * configure.in: Check for unistd.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15010 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos.c (Data): Third argument now constEzra Peisach2001-07-091-2/+3
| | | | | | | | | | | * misc.c (printd): First argument now const. * misc-proto.h: Modify printd prototype to take const first argument. * auth.c: Cast argument to memcpy to unsigned. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13593 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for need to provide setenv prototype ifEzra Peisach2001-07-061-1/+1
| | | | | | | | | | | setenv is in the C library. * forward.c: Provide setenv prototype if needed. * auth.c (auth_name): Cast result of sizeof() to int to match printf format specification. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13580 dc483132-0cff-0310-8789-dd5450dbe970
* * auth-proto.h: Add prototypes for getauthmask(), auth_enable,Ezra Peisach2001-06-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auth_disable(), auth_onoff(), auth_togdebug(), auth_status(), auth_name(), auth_sendname(), auth_debug(), and auth_printsub(). * auth.c: Include unistd.h and cleanup some assignments in conditionals. * auth.h: Explicitly declare auth_debug mode as an int. * enc-proto.h: Add prototypes for EncryptDisable(), EncryptType(), EncryptStart(), EncryptStartInput(), EncryptStartOutput(), EncryptStop(), EncryptStopInput(), EncryptStopOutput(), EncryptStatus(), encrypt_gen_printsub(), printsub(). * enc_des.c: Declare encrypt_debug_mode as int. Cleanup unused variables and assignments in conditionals. * encrypt.c: Include stdio.h for sprintf prototype. Cleanup assignments in conditionals. * getent.c: Conditionalize definition of some variables. * kerberos5.c: Explicitly declare auth_debug_mode an int. * misc-proto.h: Add prototype for auth_encrypt_user(). * misc.c: Include auth.h and encrypt.h for prototypes. * misc.h: Add prototypes for isprfix(), genget(), Ambiguous(). * parsetos.c: Include stdlib.h for strtol() prototype. * forward.c, kerberos.c, setenv.c: Assignment in conditional cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13280 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-241-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* Remove rsaencpwd and krb4encpwd authentication. Bugs were beingSam Hartman1996-10-141-34/+0
| | | | | | | | | reported and the code is old and wouldn't compile if you tried. Also, I don't think the libraries on which it depends are available. Besides, there is no excuse for read_password.c using setjmp and longjmp. [50] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9162 dc483132-0cff-0310-8789-dd5450dbe970
* Mon Mar 18 20:56:37 1996 Theodore Y. Ts'o <tytso@dcl>Theodore Tso1996-03-191-60/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * kerberos5.c (kerberos5_send): Send in as input the authentication type pair (ap->type, ap->way) to be checksumed in the authenticator. (kerberos5_is): If the checksum is present in the authenticator, then validate the authentication type pair against the checksum. (kerberos5_reply): If we didn't do mutual authentication, and we receive a KRB_ACCEPT, then stash away the session key anyway. This way we have a chance of doing encryption even if mutual authentication wasn't done. * encrypt.c (EncryptStartInput, EncryptStartOutput): Added conditional around printf so that these two functions can be called by the server. (encrypt_is_encrypting): New function which returns true only if both sides of the telnet stream is encrypted. Fri Mar 15 18:19:44 1996 Theodore Y. Ts'o <tytso@dcl> * auth.c: Added new authentication scheme for Krb5 mutual authentication with mandatory encryption. (auth_send, auth_send_retry): Split auth_send() so that the functionality done by auth_send_retry() is separate. This avoids a really dodgy pointer comparison which was caused by auth_send() being used for two purposes. If the client has not requested encryption, then don't use the authentication systems which require encryption. (auth_must_encrypt): New function which returns whether or not encryption must be negotiated. * auth-proto.h: Added prototype for new option auth_must_encrypt(). * Makefile.in (ENCRYPTION, DES_ENCRYPTION): Added defines to turn on encryption and des encryption. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7661 dc483132-0cff-0310-8789-dd5450dbe970
* * strrchr.c: NO_STRING_H -> HAVE_STRING_HTom Yu1995-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * strftime.c: NO_STRING_H -> HAVE_STRING_H * strerror.c: NO_STRING_H -> HAVE_STRING_H * strdup.c: NO_STRING_H -> HAVE_STRING_H * strchr.c: NO_STRING_H -> HAVE_STRING_H * strcasecmp.c: NO_STRING_H -> HAVE_STRING_H * spx.c: NO_STRING_H -> HAVE_STRING_H * rsaencpwd: NO_STRING_H -> HAVE_STRING_H * read_password.c: NO_STRING_H -> HAVE_STRING_H * mem.c: NO_STRING_H -> HAVE_STRING_H * krb4encpwd.c: NO_STRING_H -> HAVE_STRING_H * kerberos5.c: NO_STRING_H -> HAVE_STRING_H * kerberos.c: NO_STRING_H -> HAVE_STRING_H * encrypt.c: NO_STRING_H -> HAVE_STRING_H * auth.c: NO_STRING_H -> HAVE_STRING_H for consistency * configure.in: added missing tests for string.h, stdlib.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6101 dc483132-0cff-0310-8789-dd5450dbe970
* Allow mutual authentication even if the ENCRYPTION option is notTheodore Tso1995-03-291-2/+0
| | | | | | turned on. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5311 dc483132-0cff-0310-8789-dd5450dbe970
* Only print each possible authentication type once in the auth statusTheodore Tso1994-11-081-5/+15
| | | | | | | | | | | | report. Remove excess call to getauthmask() in auth_onoff() which stomped the mask field. Only print each possible authentication type once in the help message. Fix reversed sense of strcasecmp comparison in getauthmask(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4642 dc483132-0cff-0310-8789-dd5450dbe970
* Change the input type to be a char *, which is what auth_onoff wants anywayTheodore Tso1994-11-081-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4637 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-3/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4188 dc483132-0cff-0310-8789-dd5450dbe970
* punt unused varsMark Eichin1994-08-141-1/+0
| | | | | | | use stdio.h commands.c: use stdio, string, unistd; fix return values git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4132 dc483132-0cff-0310-8789-dd5450dbe970
* step 3: bcopy->memcpy or memmove (chose by hand), twiddle argsMark Eichin1994-06-151-2/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3814 dc483132-0cff-0310-8789-dd5450dbe970
* Updated telnet to be the 94.02.07 version, with some bugfixesTheodore Tso1994-06-101-6/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3704 dc483132-0cff-0310-8789-dd5450dbe970
* Change export warning notice from "is assumed to require an export license"Theodore Tso1993-09-011-2/+2
| | | | | | to "may require..." git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2638 dc483132-0cff-0310-8789-dd5450dbe970
* Initial VersionTheodore Tso1993-03-091-0/+658
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2524 dc483132-0cff-0310-8789-dd5450dbe970