summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Clear replaydata block before calling mk_safe_basicPaul Park1995-04-271-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5571 dc483132-0cff-0310-8789-dd5450dbe970
* Back out previous changes here, replace them with more correct changePaul Park1995-04-271-8/+12
| | | | | | of clearing the replaydata block before calling mk_priv_basic. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5570 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: make links for libkrb4 and libkdb4Mark Eichin1995-04-273-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5565 dc483132-0cff-0310-8789-dd5450dbe970
* Added PC support for the new profile config fileKeith Vetter1995-04-277-7/+46
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5554 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed PC makefile bug with passing wrong macro on recursive makesKeith Vetter1995-04-272-3/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5553 dc483132-0cff-0310-8789-dd5450dbe970
* Make clean should remove t_std_conf.oEzra Peisach1995-04-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5547 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: add kdb4 directoryMark Eichin1995-04-273-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5545 dc483132-0cff-0310-8789-dd5450dbe970
* V4 kdb libraryMark Eichin1995-04-2711-0/+1647
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5544 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: add krb4 directory (still needs to beMark Eichin1995-04-272-1/+6
| | | | | | conditionalized on unix) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5539 dc483132-0cff-0310-8789-dd5450dbe970
* normal .Sanitize and .cvsignoreMark Eichin1995-04-273-546/+132
| | | | | | fix accidental inclusion of TAGS git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5538 dc483132-0cff-0310-8789-dd5450dbe970
* add CNS V4 library to tree for compatibility use. Installs as libkrb4.aMark Eichin1995-04-27100-0/+16292
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5537 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_conn.cPaul Park1995-04-261-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5523 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 pwd.h check for adm_connPaul Park1995-04-261-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5508 dc483132-0cff-0310-8789-dd5450dbe970
* Add adm_connPaul Park1995-04-261-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5507 dc483132-0cff-0310-8789-dd5450dbe970
* New module to connect to administrative serverPaul Park1995-04-261-0/+509
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5506 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
* Add declaration of optargTheodore Tso1995-04-262-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5499 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in : Added source files mk_faddr.c and genaddrs.c.Chris Provenzano1995-04-266-32/+217
| | | | | | | | | | | | | | * mk_faddr.c (krb5_mk_fulladdr()): Makes a full address from a struct sockaddr_in. * genaddrs.c (krb5_auth_con_genaddrs()) : Generate a full address from the active file descriptor and place it in the auth_context for the calls mk_safe(), mk_priv(), mk_safe(), rd_cred(), rd_priv(), and rd_safe(). * gen_rname.c (krb5_gen_replay_name()) : Fixed to take any type of krb5_address and generate a rcache name. * os-proto.h (krb5_make_full_ipaddr()) : Removed prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5490 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
* * krb5_err.et: Add new error KRB5_TKT_NOT_FORWARDABLEChris Provenzano1995-04-262-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5488 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_locate_kdc(): Pass a NUL terminated realm to profile_get_values()Chris Provenzano1995-04-252-1/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5478 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
* Modified .Sanitize file to pick up new filesTheodore Tso1995-04-251-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5472 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
* Don't deref NULL pointer if profile_get_values returns NULL.Ezra Peisach1995-04-252-1/+6
| | | | | | (i.e. when the profile file is missing) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5462 dc483132-0cff-0310-8789-dd5450dbe970
* Go into subdirs for make checkEzra Peisach1995-04-222-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5456 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
* Back out ASN.1 library changes (which were incorrect)Theodore Tso1995-04-224-223/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5453 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in, configure.in, t_std_conf.c: Add test program toTheodore Tso1995-04-2210-106/+382
| | | | | | | | | | | | | | | | test the standard configuration krb5 routines. osconfig.c: Don't define krb5_kdc_udp_portname and krb5_kdc_sec_portname any more. There's no real point... hst_realm.c (krb5_get_krbhst): Strip off the trailing dot from the hostname if present. locate_kdc.c (krb5_locate_kdc): Use the profile code to get the list of Kerberos servers (plus port numbers) for a particular realm from [realms]/<realm>/kdc git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5442 dc483132-0cff-0310-8789-dd5450dbe970
* Fix == vs = typoTheodore Tso1995-04-221-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5440 dc483132-0cff-0310-8789-dd5450dbe970
* def_realm.c (krb5_get_default_realm): Use the profile code toTheodore Tso1995-04-226-0/+193
| | | | | | | | | | | | | | | | | | | | | | | get the default realm from [libdefaults]/default_realm. get_krbhst.c (krb5_get_krbhst): Use the profile code to get the list of Kerberos servers for a particualar realm from [realms]/<realm>/kdc realm_dom.c (krb5_get_realm_domain): Use the profile code to get the default domain postfix for a realm (used only to convert V4 -> V5 principals) from [realms]/<realm>/default_domain hst_realm.c (krb5_get_host_realm): Use the profile code to get the default realm given a particular host from [domain_realm]/<host|domain> init_os_ctx.c (krb5_os_init_context): When the OS context is initialized, also initialize the profile file. This loads in the /etc/krb5.conf file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5438 dc483132-0cff-0310-8789-dd5450dbe970
* Added the profile directory for the profile routinesTheodore Tso1995-04-222-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5437 dc483132-0cff-0310-8789-dd5450dbe970
* Fix BACKWARD_BITMASK_COMPAT so that it doesn't break user-to-userTheodore Tso1995-04-222-9/+106
| | | | | | | | | | authentication. Unfortunately, this breaks proxy tickets (and renewable tickets continue to be broken if BACKWARD_BITMASK_COMPAT is defined; nothing can be done by this.) Sites should only define BACKWARD_BITMASK_COMPAT if they have an installed base of broken implementations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5431 dc483132-0cff-0310-8789-dd5450dbe970
* If STDC and WINDOWS is not defined, define PROTOTYPE properly.Ezra Peisach1995-04-212-0/+6
| | | | | | (the definition was missing entirely then) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5424 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
* Added parenthesis to fix precedence problem in ASN.1 backwards compatibilityTheodore Tso1995-04-211-1/+1
| | | | | | code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5422 dc483132-0cff-0310-8789-dd5450dbe970
* Move the define of BACKWARDS_BITMASK_COMPAT to asn1_k_decode.c, sinceTheodore Tso1995-04-203-8/+14
| | | | | | it doesn't #include krbasn1. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5409 dc483132-0cff-0310-8789-dd5450dbe970
* Some PC fix-ups due to the include structure changingKeith Vetter1995-04-202-1/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5407 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
* Changes for the PC due to tytso's changing the include structureKeith Vetter1995-04-202-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5405 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Add checking for SIZEOF_SHORT, SIZEOF_INT, andTheodore Tso1995-04-205-5/+61
| | | | | | | | | | | | | | | | | SIZEOF_LONG, so we don't need to depend on getting this information from include/krb5/autoconf.h gssapi.h: Removed dependence on krb5 include files. gssapiP_generic.h: We need to include k5-config in order to get Windows specific hackery. Somewhat of a wart, but this is a gssapi internal header file, so the rest of the world doesn't have to see this. util_token.c: Define VALID_INT, instead of relying on this being defined by krb5.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5388 dc483132-0cff-0310-8789-dd5450dbe970
* removed unneeded #include of wordsize.hTheodore Tso1995-04-202-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5387 dc483132-0cff-0310-8789-dd5450dbe970
* asn1_k_decode.c (asn1_decode_krb5_flags): Make the functionTheodore Tso1995-04-194-6/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | accept bit strings which are less 32 bits long. (RFC-1510 makes no guarantee that the length of the bit string must be 32 bits long; the old code required that the length of the bit string must be exactly 32 bits.) Flip the bits with respect to a 32-bit boundary, since that's what the old ASN.1 glue code did. (The values in fieldbits.h are encoded backwards, for no good reason.) If BACKWARDS_BITMASK_COMPAT is defined, then only flip the bits if the high 16 bits are clear and there are some bits set in the low 16 bits. This preserves interoperabilty with the old beta 4 distribution, which sent the bit string without flipping them around. asn1_k_encode.c (asn1_encode_krb5_flags): Flip the bits with respect to a 32-bit boundary, since that's what the old ASN.1 glue code did. (The values in fieldbits.h are encoded backwards, for no good reason.) krb_asn1.h: #define BACKWARDS_BITMASK_COMPAT. Add extern declaration for asn1_swbits, which is needed for the bit reversing code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5380 dc483132-0cff-0310-8789-dd5450dbe970
* Added storing of default realm in context. Global default realmEzra Peisach1995-04-192-19/+42
| | | | | | variable removed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5378 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