summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb
Commit message (Collapse)AuthorAgeFilesLines
...
* Added PC support for the new profile config fileKeith Vetter1995-04-272-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5554 dc483132-0cff-0310-8789-dd5450dbe970
* * gc_via_tgt.c, and gc_2tgt.c : Removed.Chris Provenzano1995-04-277-488/+49
| | | | | | | | * Makefile.in, gc_via_tkt.c, gc_frm_kdc.c, and, int-proto.h : Replaced get_cred_via_tgt() and get_cred_via_2tgt() with more general function get_cred_via_tkt(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5532 dc483132-0cff-0310-8789-dd5450dbe970
* Supply the time regardless of whether DO_TIME is set becausePaul Park1995-04-261-9/+8
| | | | | | decryption/deserialization fails if the time is bogus. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5527 dc483132-0cff-0310-8789-dd5450dbe970
* Add adm_rw.cPaul Park1995-04-261-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5522 dc483132-0cff-0310-8789-dd5450dbe970
* Add adm_rwPaul Park1995-04-261-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5505 dc483132-0cff-0310-8789-dd5450dbe970
* New admistrative protocol read/write routinesPaul Park1995-04-261-0/+523
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5504 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in : Added gc_via_tkt.c and removed get_fcreds.cChris Provenzano1995-04-2611-436/+994
| | | | | | | | | | | | | * auth_con.c (krb5_auth_con_setaddrs()) : Fixed so it allocates space and copies addresses, not just pointer. * mk_cred.c: Completely rewritten from sources donated by asriniva. * rd_cred.c: Completely rewritten from sources donated by asriniva. * mk_priv.c (krb5_mk_priv()), mk_safe.c (krb5_mk_safe()), rd_priv.c (krb5_rd_priv()), and rd_safe (krb5_rd_safe()) : Try using a subkey before using the session key for encryption. * recvauth.c (krb5_recvauth()): Don't close the rcache on success. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5489 dc483132-0cff-0310-8789-dd5450dbe970
* Add WITH_NETLIBS and $(LIBS), so that t_walk_rtree can compile underTheodore Tso1995-04-253-1/+7
| | | | | | solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5477 dc483132-0cff-0310-8789-dd5450dbe970
* * parse.c (krb5_parse_name): Add magic number to new structureEzra Peisach1995-04-258-8/+27
| | | | | | | | | | | | | | | | * get_creds.c: Fix comments describing operation * gc_frm_kdc.c: Fix comments describing operation * copy_cksum.c (krb5_copy_checksum): Fix comment in file * copy_addrs.c (krb5_append_addresses): ifdef out unused krb5_append_addresses function. (no API or prototype existed). * copy_data.c (krb5_copy_data): Initialize magic number git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5464 dc483132-0cff-0310-8789-dd5450dbe970
* Report return values to krb5_set_default_in_tkt_etypes andEzra Peisach1995-04-252-2/+8
| | | | | | krb5_os_init_context instead of random stack values. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5463 dc483132-0cff-0310-8789-dd5450dbe970
* t_walk_rtree needs libcrypto.a to link for make check.Ezra Peisach1995-04-223-2/+9
| | | | | | t_walk_rtree.c - was not checking number of arguments properly git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5455 dc483132-0cff-0310-8789-dd5450dbe970
* Unless HAVE_C_STRUCTURE_ASSIGNMENT is defined, use memcpy to copyTheodore Tso1995-04-2114-0/+69
| | | | | | | structures around, instead of using structure assignments. (Which aren't guaranteed to work on some broken compilers.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5423 dc483132-0cff-0310-8789-dd5450dbe970
* mk_req.c (krb5_mk_req): Use krb5_sname_to_principal() in orderTheodore Tso1995-04-203-40/+43
| | | | | | | | | | | | | to create the service principal from the service and hostname pair. This allows for the host cannoncialization to work correctly. mk_req_ext.c (krb5_mk_req_extended): Revamp checksum handling code so that no checksum is performed in in_data is NULL, and the special case handing of cksumtype == 0x8003 for the GSSAPI library is handled correctly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5406 dc483132-0cff-0310-8789-dd5450dbe970
* Initialize and free default realm in contextEzra Peisach1995-04-192-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5377 dc483132-0cff-0310-8789-dd5450dbe970
* * sendauth.c (krb5_sendauth): initialize error return parameterTheodore Tso1995-04-183-5/+21
| | | | | | | | | * copy_princ.c (krb5_copy_principal): Fix bug where krb5_copy_principal can fail if it is asked to copy a principal with a zero-length component on a system where malloc(0) returns null. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5366 dc483132-0cff-0310-8789-dd5450dbe970
* Add Cygnus's "Sanitize" system to the krb5 tree, to make it easier to doTheodore Tso1995-04-141-0/+103
| | | | | | releases.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5359 dc483132-0cff-0310-8789-dd5450dbe970
* Windows global stuff:Keith Vetter1995-04-1459-97/+101
| | | | | | | | | o removed INTERFACE from non-api functions o add FAR to pointers visible to the world o made the tests for __STDC__ also check for _WINDOWS o creates GSSAPI.DLL & GSSAPI.LIB as per spec. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5354 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_get_in_tkt returns proper error on clock skew mismatchesKeith Vetter1995-04-012-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5332 dc483132-0cff-0310-8789-dd5450dbe970
* Fix typo which caused new_keytab to not get freed, causing a memoryTheodore Tso1995-03-312-1/+6
| | | | | | leak. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5317 dc483132-0cff-0310-8789-dd5450dbe970
* Commit on the whole tree to make a checkpoint for a working windows worldKeith Vetter1995-03-312-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5315 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_req_sim.c: Really remove the fileJohn Gilmore1995-03-292-74/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5298 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Removed rd_req_sim.cChris Provenzano1995-03-2712-392/+462
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * auth_con.c: Default cksumtype is now CKSUMTYPE_RSA_MD4_DES. * auth_con.c: Added krb5_auth_con_setuseruserkey(), krb5_auth_con_getkey(), krb5_auth_con_getremotesubkey(), krb5_auth_con_getauthenticator(), krb5_auth_con_getremoteseqnumber(), krb5_auth_con_initivector(). * auth_con.c: Fixed krb5_auth_con_getlocalsubkey() to check for a valid local_subkey before calling krb5_copy_keyblock(). * auth_con.h: Fixed some comments. * mk_req_ext.c (krb5_mk_req_extended()): Always pass in a seed (the keyblock contents) to krb5_calculate_checksum() * rd_rep.c (krb5_rd_rep()): Use appropriate key to decode reply. * rd_safe.c (krb5_rd_safe()): Don't pass checksum to krb5_rd_safe_basic(), it's unnecessary. * compat_recv.c (krb5_compat_recvauth()): * mk_rep.c (krb5_mk_rep()): * rd_req.c (krb5_rd_req()): * rd_req_dec.c (krb5_rd_req_decode()): * recvauth.c (krb5_recvauth()): Added a krb5_auth_context argument and eliminated many of the other arguments because they are included in the krb5_auth_context structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5265 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed signed/unsigned assignment mismatchesKeith Vetter1995-03-224-4/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5183 dc483132-0cff-0310-8789-dd5450dbe970
* * bld_pr_ext.c, bld_princ.c: Replace STDARG_PROTOTYPES withJohn Gilmore1995-03-193-8/+13
| | | | | | HAVE_STDARG_H for consistency. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5172 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check-mac): Add.John Gilmore1995-03-188-39/+44
| | | | | | | | | | | | | * compat_recv.c, get_fcreds.c, recvauth.c: Eliminate Unix socket #includes, which are now handled by k5-int.h (via k5-config.h). * conv_princ.c: Rename variable "comp" to another name; "comp" apparently bothers the MPW compiler... * rd_cred.c: Avoid (void) casts of void functions, for MPW. * t_walk_rtree.c: Put com_err.h after k5_int for <sys/types> stuff. (main): Declare and initialize the krb5_context that's being passed to everything. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5164 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_con.h auth_con.c Added for krb5_auth_con definition andChris Provenzano1995-03-1013-604/+1024
| | | | | | | | | | | | | | | | | | | | | support routines. * mk_req.c (krb5_mk_req()) * mk_req_ext.c (krb5_mk_req_extended()) * rd_rep.c (krb5_rd_rep()) * sendauth.c (krb5_sendauth()) * mk_priv.c (krb5_mk_priv()) * mk_safe.c (krb5_mk_safe()) * rd_priv.c (krb5_rd_priv()) * rd_safe.c (krb5_rd_safe()) Added a krb5_auth_context argument and eliminated many of the other arguments because they are included in the krb5_auth_context structure. * send_tgs.c (krb5_send_tgs()) Eliminate call to krb5_mk_req_extended(), which does far more than krb5_send_tgs() needs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5099 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (UsePepsy, PepsyTarget): removed, not referencedMark Eichin1995-03-082-1/+4
| | | | | | | | | | | anywhere in the tree. (ISODE_INCLUDE, ISODE_DEFS): removed along with remaining references in the tree. --enable-isode is dead. * configure.in (most directories): removed last remaining ISODE_INCLUDE and ISODE_DEFS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5082 dc483132-0cff-0310-8789-dd5450dbe970
* Small changes in krb: 1 signed/unsigned, 1 disabling stderr, and changed LIB ↵Keith Vetter1995-03-074-3/+11
| | | | | | name git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5078 dc483132-0cff-0310-8789-dd5450dbe970
* Forgot to update log for previous change of NEED_WINSOCK_H to NEED_SOCKETSKeith Vetter1995-03-021-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5063 dc483132-0cff-0310-8789-dd5450dbe970
* Changed NEED_WINSOCK_H to NEED_SOCKETS for pulling in socket filesKeith Vetter1995-03-024-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5062 dc483132-0cff-0310-8789-dd5450dbe970
* A few small changes for 16 vs 32 bit, pulling in winsock for network byteKeith Vetter1995-03-0216-36/+47
| | | | | | ordering and removed some unused local variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5058 dc483132-0cff-0310-8789-dd5450dbe970
* * *.c: Avoid <krb5/...> includes.John Gilmore1995-02-2866-274/+76
| | | | | | * parse.c: Exdent #ifndef to left margin for old compilers. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5015 dc483132-0cff-0310-8789-dd5450dbe970
* Converted the krb5/krb directory to work under windows. Mostly added theKeith Vetter1995-02-2766-203/+217
| | | | | | windows INTERFACE keyword to functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5002 dc483132-0cff-0310-8789-dd5450dbe970
* All to change krb5_get_credentials() ..Chris Provenzano1995-02-2311-332/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * send_tgs.c (krb5_send_tgs()) Added check for a valid krb5_creds * arg. * mk_req_ext.c (krb5_mk_req_extended()) Require caller to pass in a valid krb5_creds * arg, and removed kdc_options krb5_flags and krb5_ccache from arg list. * send_tgs.c (krb5_send_tgs()) * sendauth.c (krb5_sendauth()) Fix calls to krb5_mk_req_extended() * gc_frm_kdc.c (krb5_get_cred_from_kdc()) Changed krb5_creds * in/out arg to be an in only arg and added krb5_creds ** out arg. * gc_via_tgt.c (krb5_get_cred_via_tgt()) Changed krb5_creds * in/out arg to be an in only arg and added krb5_creds ** out arg. * gc_2tgt.c (krb5_get_cred_via_2tgt()) Changed krb5_creds * in/out arg to be an in only arg and added krb5_creds ** out arg. * int-proto.h Updated prototypes for krb5_get_cred_via_tgt() and krb5_get_cred_via_2tgt(). * get_creds.c (krb5_get_credentials()) Changed krb5_creds * in/out arg to be an in only arg and added krb5_creds ** out arg. * sendauth.c (krb5_sendauth()) Routines that also require krb5_creds * in/out arg to be appropriately changed because krb5_get_credentials() changed. * gc_frm_kdc.c (krb5_get_cred_from_kdc()) * get_fcreds.c (krb5_get_for_creds()) * mk_req.c (krb5_mk_req()) Other routines that needed adjusting because krb5_get_credentials() changed but didn't need an API change. * int-proto.h Don't prototype krb5_get_cred_via_tgt() twice. Use the second to prototype krb5_get_cred_via_2tgt(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4993 dc483132-0cff-0310-8789-dd5450dbe970
* Fix argument type to krb5_free_cred_enc_part()Theodore Tso1995-02-222-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4971 dc483132-0cff-0310-8789-dd5450dbe970
* Fix memory leak --- the default encryption types was not being freedTheodore Tso1995-02-142-2/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4944 dc483132-0cff-0310-8789-dd5450dbe970
* Remove ISODE cruftTheodore Tso1995-02-102-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4936 dc483132-0cff-0310-8789-dd5450dbe970
* Set up the keyblock's etype field correctly (after copying theTheodore Tso1995-02-092-2/+7
| | | | | | keyblock, so it doesn't get overwritten!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4931 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c (krb5_get_in_tkt())Chris Provenzano1995-02-086-148/+250
| | | | | | | | | | | | | | | | | | * in_tkt_sky.c (krb5_get_in_tkt_with_skey()) * in_tkt_pwd.c (krb5_get_in_tkt_with_password()) Removed krb5_keytype, changed krb5_enctype to krb5_enctype *, changed krb5_preauthtype to krb5_preauthtype *. Changed the args to the key_proc arg of krb5_get_in_tkt() to be the following (krb5_context, const krb5_keytype, krb5_data *, krb5_const_pointer, krb5_keyblock **) * in_tkt_ktb.c (krb5_get_in_tkt_with_keytab()) Added this routine to replace krb5_get_in_tkt_with_skey() in kinit. * Makefile.in Added new source file in_tkt_ktb.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4922 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c (krb5_get_in_tkt): also check for the versionMark Eichin1995-02-042-2/+11
| | | | | | | | | number of the reply being whatever we had in the first byte of the request. tested with kinit. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4910 dc483132-0cff-0310-8789-dd5450dbe970
* Add .cvsignore file so that cvs ignores the autoconf-built configure fileTheodore Tso1995-02-031-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4904 dc483132-0cff-0310-8789-dd5450dbe970
* Use explicit 32 bit types so this will work on an AlphaTheodore Tso1995-02-032-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4902 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c (krb5_get_in_tkt): fix typoTom Yu1995-02-032-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4882 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c (krb5_get_in_tkt): if krb5_is_as_rep fails, checkMark Eichin1995-02-032-2/+25
| | | | | | | | | if the packet might be a V4 error packet. Use modified V4 check so that it compiles under SCO. simple, but untested. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4880 dc483132-0cff-0310-8789-dd5450dbe970
* * int-proto.h Update prototypes for krb5_get_cred_via_tgt(), andChris Provenzano1995-02-0210-62/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | krb5_get_cred_via_2tgt(). * get_fcreds.c (krb5_get_for_creds()) * gc_via_tgt.c (krb5_get_cred_via_tgt()) * gc_2tgt.c (krb5_get_cred_via_2tgt()) Removed krb5_enctype argument. Pass NULL list of encryption types to krb5_send_tgs to get default encryption types. * gc_frm_kdc.c Removed krb5_enctype argument passed to krb5_get_cred_via_tgt() * send_tgs.c (krb5_send_tgs()) Changed krb5_enctype arg to krb5_enctype *, a NULL terminated array of encryption types. If argument is NULL then krb5_send_tgs() will use defaul list of encryption types. * send_tgs.c (krb5_send_tgs()) To encrypt request ticket use usecred->keyblock.etype instead of (and now defunct) krb5_enctype arg. * init_ctx.c Added krb5_set_default_in_tkt_etypes() and krb5_get_default_in_tkt_etypes(). * rd_req.c, rd_req_decode.c Removed typedef for rdreq_key_proc and use krb5_rd_req_decoded in its place. * get_fcreds.c Really needs #include<krb5/asn1.h> for definition of krb5_is_krb_error() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4875 dc483132-0cff-0310-8789-dd5450dbe970
* in_tkt_sky.c (skey_keyproc()), rd_req_dec.c (krb5_rd_req_decoded())Chris Provenzano1995-01-284-5/+21
| | | | | | | | use new API for krb5_kt_get_entry. get_fcreds.c Removed #include<krb5/crc-32.h> and #include<krb5/asn1.h> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4868 dc483132-0cff-0310-8789-dd5450dbe970
* * Removed all narrow types and references to wide.h and narrow.hChris Provenzano1995-01-257-22/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4837 dc483132-0cff-0310-8789-dd5450dbe970
* Oops in previous memory freeing fixes; was a bit too agressive freeing thingsTheodore Tso1995-01-191-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4823 dc483132-0cff-0310-8789-dd5450dbe970
* Removed all references to DECLARG and OLDDECLARG.Chris Provenzano1995-01-1364-1023/+1033
| | | | | | Added krb5_context to all krb5_routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4810 dc483132-0cff-0310-8789-dd5450dbe970
* fix typoMark Eichin1995-01-131-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4807 dc483132-0cff-0310-8789-dd5450dbe970