summaryrefslogtreecommitdiffstats
path: root/src/lib/krb4
Commit message (Collapse)AuthorAgeFilesLines
...
* * kparse.c (strutol): Cast argument to isupper()/tolower() to intEzra Peisach2001-06-182-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13368 dc483132-0cff-0310-8789-dd5450dbe970
* * g_pw_in_tkt.c: Include krb5.h so that des_read_password()Ezra Peisach2001-06-188-1/+27
| | | | | | | | | | | | | prototype is present in des.h. Cast argument to des_read_password. * getst.c, put_svc_key.c, rd_svc_key.c, save_creds.c, tf_util.c: Include krb4int.h for prototypes. * krb4int.h: New file containing private prototypes for krb4 functions not used outside the library. Contains getst() and tf_save_cred(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13358 dc483132-0cff-0310-8789-dd5450dbe970
* * sendauth.c (krb_sendauth): Add KRB5_DLLIMP/KRB5_CALLCONV definitionsEzra Peisach2001-06-112-5/+12
| | | | | | for function with exported prototype in krb.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13331 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_tkt.c (krb_create_ticket): Get rid of last argument (k5key)Ezra Peisach2001-06-082-1/+6
| | | | | | which was added erroneously and is not how code is used in tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13319 dc483132-0cff-0310-8789-dd5450dbe970
* * ad_print.c (ad_print): Cast arguments to printf() to longs toEzra Peisach2001-06-083-1/+7
| | | | | | match format string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13310 dc483132-0cff-0310-8789-dd5450dbe970
* * g_krbrlm.c: Remove unused static variable krb_confEzra Peisach2001-06-0119-23/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * g_svc_in_tkt.c (krb_svc_init, krb_svc_init_preauth): Declare as returning int. * gethostname.c: Include unistd.h for gethostname() prototype. * getst.c: Include unistd.h for read() prototype. * in_tkt.c (in_tkt): Cast arguments to debugging printf to int from uid_t to match format statement. * kname_parse.c: Declare k_isname() and k_isinst() as returning int. Cleanup assigments in conditionals. * kuserok.c (kuserok): Cleanup assignment in conditional. * log.c (krb_set_logfile): Declare function as void. * klog.c (kset_logfile): Likewise. * pkt_clen.c (pkt_clen): Declare as returning int. * kntoln.c (krb_kntoln): Likewise. * fgetst.c (fgetst): Likewise. * rd_req.c: Declare local variable only if KRB_CRYPT_DEBUG defined. * recvauth.c: Include stdlib.h and unistd.h for read() and atoi() prototypes. * send_to_kdc.c: Include unistd.h for close() prototype. * sendauth.c (krb_sendauth): Clean up assignment in conditional. * tkt_string.c (tkt_string): Likewise git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13256 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (EHDRDIR): Install into kerberosIV subdirectoryKen Raeburn2001-04-142-2/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13181 dc483132-0cff-0310-8789-dd5450dbe970
* * ad_print.c (ad_print): Pass address of session key to des_cblock_print_file,Ken Raeburn2001-04-142-1/+4
| | | | | | not the session key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13180 dc483132-0cff-0310-8789-dd5450dbe970
* * g_tkt_svc.c (CredIsExpired): Don't use a variable named "time"Ken Raeburn2001-04-142-9/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13179 dc483132-0cff-0310-8789-dd5450dbe970
* * memcache.h: Don't use macro PROTOTYPEDanilo Almeida2001-04-132-31/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13176 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_err_repl.c (req_act_vno): Delete commented-out declarationKen Raeburn2001-04-102-9/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13163 dc483132-0cff-0310-8789-dd5450dbe970
* * kparse.c, send_to_kdc.c: Don't use macro PROTOTYPEKen Raeburn2001-04-103-3/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13160 dc483132-0cff-0310-8789-dd5450dbe970
* * lifetime.c: Remove support for "magic" lifetime value of 255Tom Yu2001-01-302-11/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12965 dc483132-0cff-0310-8789-dd5450dbe970
* * dest_tkt.c: Clean up uid handling. Fix stat checksTom Yu2001-01-274-75/+266
| | | | | | | | * in_tkt.c: Clean up uid handling. Fix stat checks. * tf_util.c: Clean up uid handling. Fix stat checks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12954 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (OBJS, SRCS): Add prot_client.o, prot_client.cTom Yu2001-01-262-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12950 dc483132-0cff-0310-8789-dd5450dbe970
* * prot_client.c: New file; client-side protocol supportTom Yu2001-01-263-0/+393
| | | | | | | * prot_common.c (krb4prot_decode_header): Decode the first two bytes of a krb4 packet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12949 dc483132-0cff-0310-8789-dd5450dbe970
* * prot_common.c: Fix up some error returnsTom Yu2001-01-243-37/+120
| | | | | | | * prot_kdc.c: Fix up some error returns. Add decode_kdc_request(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12941 dc483132-0cff-0310-8789-dd5450dbe970
* document recent large number of changesTom Yu2001-01-231-0/+48
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12934 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_ciph.c: Include prot.h. KRB4_PUT32 -> KRB4_PUT32BE.Tom Yu2001-01-231-1/+2
| | | | | | [missed one] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12933 dc483132-0cff-0310-8789-dd5450dbe970
* * prot_common.c: New file; contains functions to encode/decodeTom Yu2001-01-2318-67/+636
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string triples for principals. * prot_kdc.c: New file; contains encoders and decoders (eventually) for the KDC's use. * Makefile.in (OBJS, SRCS): Add prot_common.o, prot_kdc.o. * cr_auth_repl.c: KRB4_PUT{16,32} -> KRB4_PUT{16,32}BE. * cr_ciph.c: Include prot.h. KRB4_PUT32 -> KRB4_PUT32BE. * cr_err_repl.c: KRB4_PUT32 -> KRB4_PUT32BE. * cr_tkt.c: KRB4_PUT32 -> KRB4_PUT32BE. * decomp_tkt.c: krb_strnlen -> krb4int_strnlen. * g_ad_tkt.c: krb_strnlen -> krb4int_strnlen. KRB4_PUT32 -> KRB4_PUT32BE. Properly skip date while parsing error. * g_in_tkt.c: krb_strnlen -> krb4int_strnlen. KRB4_PUT32 -> KRB4_PUT32BE. Properly skip date while parsing error. * g_phost.c: Changes from audit. Actually bail out instead of failing silently if h->h_name is too long. * kname_parse.c: Changes from audit. Check overrun per character processed. * mk_auth.c: krb_strnlen -> krb4int_strnlen. KRB4_PUT32 -> KRB4_PUT32BE. Include prot.h. * mk_err.c: KRB4_PUT32 -> KRB4_PUT32BE. * mk_priv.c: KRB4_PUT32 -> KRB4_PUT32BE. * mk_req.c: KRB4_PUT32 -> KRB4_PUT32BE. * mk_safe.c: KRB4_PUT32 -> KRB4_PUT32BE. * rd_req.c: krb_strnlen -> krb4int_strnlen. * strnlen.c: Rename to krb4int_strnlen. Also include prot.h, which is where strnlen is declared now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12932 dc483132-0cff-0310-8789-dd5450dbe970
* * g_ad_tkt.c: Fix error packet parsingTom Yu2001-01-193-34/+49
| | | | | | | * g_in_tkt.c: Fix error packet parsing. Also, declare some internal functions as static and add prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12914 dc483132-0cff-0310-8789-dd5450dbe970
* * strnlen.c (krb_strnlen): Put The return type before the callingDanilo Almeida2000-11-092-1/+6
| | | | | | convention. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12865 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (OBJS, SRCS): Add strnlen.o, strnlen.cTom Yu2000-11-0823-1021/+1555
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cr_auth_repl.c: Audit. Fix up copyright. Use new KRB4_PUT* macros for encoding so output is always big-endian. Precompute string lengths for better length-checking. * cr_ciph.c: Audit. Fix up copyright. Use new KRB4_PUT* macros for encoding so that output is always big-endian. Precompute string lengths for better length-checking. Zero out the key schedule after encrypting. * cr_death_pkt.c: Audit. Fix up copyright. Precompute string lengths for better length-checking. * cr_err_repl.c: Audit. Fix up copyright. Use moving pointer to do encoding. Precompute string lengths for better length-checking. Use KRB4_PUT* macros so that output is always big-endian. * cr_tkt.c: Audit. Fix up copyright. Use KRB4_PUT* macros for encoding so that output is always big-endian. Zero out the key schedule after encrypting. * decomp_tkt.c: Audit. Fix up copyright. Use krb_strnlen() for actually detecting string length errors. Use a struct in_addr to retrieve the IP address and assign it to paddress for return. Use KRB4_GET* macros for decoding to avoid byteswapping problems. Zero out session key and decrypted ticket on error. * g_ad_tkt.c: Audit. Fix up copyright. Break out parsing of decrypted KDC reply packet into a separate function to simplify error handling somewhat. Precompute string lengths for better length-checking. Use KRB4_PUT* macros for encoding so that output is always big-endian. Use KRB4_GET* macros for decoding to avoid byteswapping problems. Stomp on session key on error conditions. * g_in_tkt.c: Audit. Fix up copyright. Precompute string lengths for better length-checking. Use KRB4_PUT* macros for encoding so output is always big-endian. Use KRB4_GET* macros for decoding to avoid byteswapping problems. Use krb_strnlen() to actually detect string length errors. Zero out session key and decrypted KDC reply once they're no longer useful. * mk_auth.c: Audit. Fix up copyright. Use moving pointer for encoding. Use KRB4_PUT* macros for encoding to avoid alignment issues with using memcpy(). Use KRB4_GET* macros for decoding to avoid alignment issues with using memcpy(). * mk_err.c: Audit. Fix up copyright. Precompute string length. Use KRB4_PUT* macros to always encode as big-endian. * mk_preauth.c: Audit. Zero out key schedule after encryption. * mk_priv.c: Audit. Fix up copyright. Use KRB4_PUT* macros for encoding so output is always big-endian. * mk_req.c: Audit. Fix up copyright. Use moving pointer for encoding. Precompute string lengths for better length-checking. Use KRB4_PUT* macros for encoding so output is always big-endian. Zero out session key after encryption. * mk_safe.c: Audit. Fix up copyright. Use KRB4_PUT* macros for encoding so output is always big-endian. * rd_err.c: Audit. Fix up copyright. Use KRB4_GET* macros to avoid alignment issues. * rd_preauth.c: Audit. Zero key schedule after decrypting. * rd_priv.c: Audit. Fix up copyright. Use KRB4_GET* macros to avoid alignment issues. * rd_req.c: Audit. Fix up copyright. * send_to_kdc.c (send_recv): Actually set rpkt->length, since some callers actually use it now to do length-checking. * strnlen.c: New file; compute string length, bounded by a maximum. If the maximum number of characters has been read without encountering a NUL character, return -1. This makes overflow checking of strings in buffers much easier. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12859 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST and AC_CHECK_FUNCS instead ofEzra Peisach2000-11-012-2/+7
| | | | | | AC_CONST and AC_HAVE_FUNCS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12834 dc483132-0cff-0310-8789-dd5450dbe970
* * mk_auth.c (krb_check_auth): Modify call to rd_priv() by kludgingTom Yu2000-10-247-10/+27
| | | | | | | | | | | | | | | | | | a cast of session key to C_Block *, since CNS is inconsistent in this area as well. * mk_priv.c (krb_mk_priv): Align with CNS by taking C_Block *. * mk_safe.c (krb_mk_safe): Align with CNS by taking C_Block *. * rd_priv.c (krb_rd_priv): Align with CNS by taking C_Block *. * rd_safe.c (krb_rd_safe): Align with CNS by taking C_Block *. * recvauth.c (krb_recvauth): Update call to mk_priv() to have the correct type. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12805 dc483132-0cff-0310-8789-dd5450dbe970
* * kparse.c: Provide prototype for static struol(). Do not defineEzra Peisach2000-10-102-3/+8
| | | | | | void as int (autoconf can handle that). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12750 dc483132-0cff-0310-8789-dd5450dbe970
* * g_tkt_svc.c (CredIsExpired): Fix logic bugTom Yu2000-10-082-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12734 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_req.c (krb_rd_req): Call life_to_fime()Tom Yu2000-10-074-25/+67
| | | | | | | | | | * g_tkt_svc.c (CredIsExpired): Call life_to_time(). * lifetime.c: Add comments for lifetimes[]. Add provisions for compile-time switching of short lifetimes. Fix sign bug in time_to_life(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12727 dc483132-0cff-0310-8789-dd5450dbe970
* My error - add test for mode_t (AC_TYPE_MODE_T) and use that as argumentEzra Peisach2000-10-053-3/+5
| | | | | | to umask. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12724 dc483132-0cff-0310-8789-dd5450dbe970
* * netread.c, netwrite.c: Include unistd.h if present on machineEzra Peisach2000-10-055-1/+19
| | | | | | | | | | for read/write prototypes. * in_tkt.c: Argument to umask should be of type uid_t. * configure.in: Test for uid_t (AC_TYPE_UID_T). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12723 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in(OBJS, SRCS): Add lifetime.{o,c}Tom Yu2000-09-013-0/+138
| | | | | | | | | | * lifetime.c: New file. For the purposes of CMU and AFS compatibility, this implements the exponential krb4 ticket lifetimes for lifetime values above 127, in the krb_life_to_time() and krb_time_to_life() functions. Values 127 and below are still treated normally. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12644 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_svc_key.c (krb54_get_service_keyblock): If the keytabEzra Peisach2000-08-222-1/+19
| | | | | | | encryption type is a non-raw des3 key, bash its enctype. This matches kdc/kerberos_v4.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12624 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_tkt.c (krb_cr_tkt_int): When prototypes were changed to notEzra Peisach2000-08-141-3/+4
| | | | | | | include a narrow prototype, the flags were being sent OTW as four bytes instead of one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12621 dc483132-0cff-0310-8789-dd5450dbe970
* * tf_util.c (tf_init): Add KRB5_DLLIMP/KRB5_CALLCONV definitionsEzra Peisach2000-08-022-7/+12
| | | | | | for functions exported prototypes in krb.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12599 dc483132-0cff-0310-8789-dd5450dbe970
* * g_pw_tkt.c, unix_time.c: Add KRB5_DLLIMP/KRB5_CALLCONV defintionEzra Peisach2000-07-213-1/+20
| | | | | | To be compatible with krb.h changes for windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12579 dc483132-0cff-0310-8789-dd5450dbe970
* * memcache.c: Add krb_in_tkt() function to initialize ticket for aDanilo Almeida2000-07-202-0/+16
| | | | | | | | given principal. It is like in_tkt() but it is public and also takes a realm for credentials caches that require a full principal name (e.g., CCAPI). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12574 dc483132-0cff-0310-8789-dd5450dbe970
* * in_tkt.c: Add krb_in_tkt() function to initialize ticket for aDanilo Almeida2000-07-192-0/+16
| | | | | | | | given principal. It is like in_tkt() but it is public and also takes a realm for credentials caches that require a full principal name (e.g., CCAPI). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12557 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_tkt.c: Frob prototypes so they don't involve narrow typesTom Yu2000-07-042-8/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12529 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_tkt.c: Provide prototype for static krb_cr_tkt_int functionEzra Peisach2000-06-293-1/+16
| | | | | | | | before being used. * getst.c: Remove unused variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12459 dc483132-0cff-0310-8789-dd5450dbe970
* pullup from 1.2 branchKen Raeburn2000-06-2729-91/+356
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12442 dc483132-0cff-0310-8789-dd5450dbe970
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-011-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_tkt.c (krb_cr_tkt_int): Add static prototype.Ezra Peisach2000-03-163-0/+18
| | | | | | * decomp_tkt.c: (dcmp_tkt_int): Add static prototype git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12125 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-261-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1999-10-261-3/+2
| | | | | | | that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
* ghudson patch for resource leak krb5-libs/769Ken Raeburn1999-10-072-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11858 dc483132-0cff-0310-8789-dd5450dbe970
* Danilo's SendMessage->PostMessage change from 1.1 branchKen Raeburn1999-09-012-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11770 dc483132-0cff-0310-8789-dd5450dbe970
* Initializes some variables so that they do not end up in the common blockBrad Thompson1999-08-131-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11655 dc483132-0cff-0310-8789-dd5450dbe970
* Initialize __krb_sendauth_hidden_tkt_len so it doesn't end up in theBrad Thompson1999-08-131-1/+1
| | | | | | common block. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11654 dc483132-0cff-0310-8789-dd5450dbe970
* Initialize swap_bytes so that it doesn't end up in the common blockBrad Thompson1999-08-131-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11653 dc483132-0cff-0310-8789-dd5450dbe970
* Do win32 build in subdirDanilo Almeida1999-05-102-50/+54
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11432 dc483132-0cff-0310-8789-dd5450dbe970