summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* an_to_ln.c (dbm_an_to_ln): Don't compile dbm_an_to_ln() ifTheodore Tso1995-04-183-5/+22
| | | | | | | | | | | | USE_DBM_LNAME isn't defined. hst_realm.c (krb5_get_host_realm): Eliminate memory leak in the unlikely case that gethostname fails. If the krb.realms file isn't available, use the default realm of the host. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5367 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
* Forgot a makefile change for the Windows gssapi dllKeith Vetter1995-04-182-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5362 dc483132-0cff-0310-8789-dd5450dbe970
* Add Cygnus's "Sanitize" system to the krb5 tree, to make it easier to doTheodore Tso1995-04-1428-0/+1443
| | | | | | releases.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5359 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in, configure.in: Move dependency for all-$WHAT backTheodore Tso1995-04-142-3/+11
| | | | | | | | | | into Makefile.in so that the Windows port can pick up the line (since it doesn't use configure). Instead, change the name of target which causes the subdirectories to be built under Unix, and make that a dependency for all-unix. Gross, but this should fix things for both DOS and Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5356 dc483132-0cff-0310-8789-dd5450dbe970
* Removed 'unreferenced local variable' problemKeith Vetter1995-04-142-1/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5355 dc483132-0cff-0310-8789-dd5450dbe970
* Windows global stuff:Keith Vetter1995-04-14274-1036/+1162
| | | | | | | | | 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
* asn1_k_decode.c (setup, next_tag, apptag, get_field_body,Theodore Tso1995-04-135-13/+64
| | | | | | | | | | | | | | | | | | | | | | get_lenfield_body, asn1_decode_ticket): Use the taglength to determine whether or not the indefinite encoding was used, and if so skip over the termination flag bytes in the ASN.1 stream. asn1buf.c (asn1buf_imbed, asn1buf_remains): Make changes to allow for indefinite encodings. asn1buf_remains() is now only used for decoding structures and arrays (i.e., asn.1 constructs which terminate indefinite encodings with two zero octets. [ Note these fixes to support indefinite encoding aren't terribly clean; some invalid encodings may be accepted when they should not be. This should be looked at in more detail later.] asn1_get.c (asn1_get_tag): Inline original asn1buf_remains() code, since asn1_get_tag doesn't use asn1buf_remains in the context of a structure or an array. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5353 dc483132-0cff-0310-8789-dd5450dbe970
* Changed syntax for windows on the stored ccache file nameKeith Vetter1995-04-072-7/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5345 dc483132-0cff-0310-8789-dd5450dbe970
* Bug fixes or better error handling for the following 4 Windows bugsKeith Vetter1995-04-068-32/+66
| | | | | | | | | | | | | | | | | | | | | | (note, these changes haven't yet been tested on the PC which were failing so no guarantee that they fully work): a) GUI to cns improved so that you don't need a resize for the widgets to align properly, and so the interaction of typing: "username cr password cr" is all you need to do to get you a ticket. b) cns uses krb5_us_gettimeofday instead of krb5_timeofday because the former is more accurate and handles timezones. Probably should make the latter just call the former. c) Added SOCKET_INIT and SOCKET_DESTROY around krb5_sendto_kdc to prevent some tcp/ip stacks from locking up after 8 uses. d) Added a new error message and better error handling to give more precision as to why one PC was getting the error 'Cannot find KDC for requested realm.' git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5342 dc483132-0cff-0310-8789-dd5450dbe970
* Move the dependency which causes all-$(WHAT) to be built so that itTheodore Tso1995-04-013-1/+8
| | | | | | occurs after the "make all" subdirectories rule. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5333 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
* * rc_dfl.c (krb5_rc_dfl_expunage): Close the old, temporary replyTheodore Tso1995-03-313-2/+16
| | | | | | | | | | | cache after we're done expunging it. * rc_io.c (krb5_rc_io_move): Make duplicate copies of the filename and the file descriptor (via malloc/strcpy and dup), so that the old rc_io object can be cleanly closed without affecting the new rc_io object. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5327 dc483132-0cff-0310-8789-dd5450dbe970
* * realm_dom.c (krb5_get_realm_domain): Don't indent #ifdef's!Theodore Tso1995-03-313-6/+12
| | | | | | * hst_realm.c (krb5_get_host_realm): Don't indent #ifdef's! git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5326 dc483132-0cff-0310-8789-dd5450dbe970
* Back out previous change so that it doesn't break people who are usingTheodore Tso1995-03-312-15/+32
| | | | | | | VPATH to have separate build directories. (See comments in the Makefile.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5324 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unused fileTheodore Tso1995-03-312-152/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5323 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-318-369/+31
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5315 dc483132-0cff-0310-8789-dd5450dbe970
* * ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now.John Gilmore1995-03-291-0/+4
| | | | | | | FIXME, this needs to find the Preferences folder and use that. FIXME, shouldn't be conditioned on HAVE_MACSOCK_H. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5308 dc483132-0cff-0310-8789-dd5450dbe970
* Added functionality for windows to read default file locations fromKeith Vetter1995-03-297-9/+73
| | | | | | windows ini files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5307 dc483132-0cff-0310-8789-dd5450dbe970
* Chasing an elusive nmake bugKeith Vetter1995-03-292-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5306 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in (AC_REPLACE_FUNCS): Add getuid to the list.John Gilmore1995-03-294-4/+14
| | | | | | | * getuid.c: Simple getuid() to fake out single-user systems. * strcasecmp.c: Remove duplicated <sys/types.h> and u_char. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5300 dc483132-0cff-0310-8789-dd5450dbe970
* * DNR.c: Add Apple MacTCP source file for domain name resolution.John Gilmore1995-03-2910-36/+542
| | | | | | | | | | | | | | | | | | | | | | | * macsock.c: Add fake socket support routines for MacTCP. * Makefile.in (OBJS, SRCS): Add DNR and macsock. * ccdefname.c: On Mac, default cred cache is "STDIO:krb5cc" for now. FIXME, this needs to find the Preferences folder and use that. FIXME, shouldn't be conditioned on HAVE_MACSOCK_H. * gmt_mktime.c: Use HAVE_SYS_TYPES_H. * krbfileio.c: Remove <sys/types.h>. * localaddr.c, sendto_kdc.c: Convert to more generic socket support. Use closesocket instead of close, SOCKET_ERRNO rather than errno, SOCKET rather than int, etc. * localaddr.c: Use getmyipaddr() from macsock.c, if on Mac. Add FIXME for multiple local addresses. * lock_file.c: Provide a dummy version for MacOS. * read_pwd.c (ECHO_PASSWORD): Add #ifdef's to avoid all the ioctls and other stuff that turn off echoing. This is useful for debugging on MacOS. FIXME: ECHO_PASSWORD needs to be added to configure.in. * ustime.c: Bring in Mac-specific time-and-timezone code. It probably isn't hooked up correctly, yet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5299 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 (BUILDTOP2, etc): Make it possibleJohn Gilmore1995-03-293-13/+45
| | | | | | | | | | | | | to build the error tables on Unix before a Mac build. (all-mac): Don't build $(HDRS) on Mac. (unixmac): Build `includes'. (clean-mac): Add. (includes, clean, .SUFFIXES, .et.h, .et.c): Add, to make it possible to run `make -f Makefile.in unixmac' successfully. * configure.in (ASN1_{HDRS,OBJS,SRCS, BOGUS): Remove, unused. (CopyHeader rules): Remove, they're now in Makefile.in. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5297 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (unixmac): Add to build header filesJohn Gilmore1995-03-292-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5296 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (clean-mac): Add.John Gilmore1995-03-293-6/+13
| | | | | | | | * configure.in (LinkFile's): Put `./' on libraries to ease Mac translation. (AppendRule all-unix): Rename from AppendRule all. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5295 dc483132-0cff-0310-8789-dd5450dbe970
* Bring in portability fixes from Cygnus K4 releaseJohn Gilmore1995-03-287-58/+93
| | | | | | | | | | | | | * f_cbc.c, f_cksum.c, f_pcbc.c: Replace individual casts with simpler solution. * f_tables.h: Insert debugging code, and circumvention for MPW compiler bug. * key_sched.c: Remove ancient (microvax??!) comments, and dup prototype. * verify.c: Small hack for MS-Windows scrolling. Fix spelling. "register x" -> "register int x". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5288 dc483132-0cff-0310-8789-dd5450dbe970
* * full_ipadr.c, gen_rname.c, port2ip.c, read_msg.c, write_msg.c:John Gilmore1995-03-277-26/+4
| | | | | | | Remove explicit includes of socket files. * locate_kdc.c: Remove <sys/types.h> and "os-proto.h". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5276 dc483132-0cff-0310-8789-dd5450dbe970
* * macsock.c (connect, send, recv): Add for K5 compatability.John Gilmore1995-03-272-1/+103
| | | | | | (getmyipaddr): Add for use in K5. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5275 dc483132-0cff-0310-8789-dd5450dbe970
* * macsock.c: Add Mac socket support file, verbatim from K4 releaseJohn Gilmore1995-03-272-0/+488
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5274 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
* * accept_sec_context.c: Use new calling convention for krb5_rd_req()Chris Provenzano1995-03-272-135/+47
| | | | | | and krb5_mk_rep(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5264 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (memmove.c): memmove.c is in krb5/posix, not krb5/osMark Eichin1995-03-252-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5249 dc483132-0cff-0310-8789-dd5450dbe970
* * scc_maybe.c (krb5_scc_open_file): fixed typo (extra & inTom Yu1995-03-252-1/+4
| | | | | | reference to fvno_bytes) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5248 dc483132-0cff-0310-8789-dd5450dbe970
* * scc_gennew.c: Ultrix cc (and K&R compilers) doesn't deal withTom Yu1995-03-252-3/+9
| | | | | | automatic aggregate initialization, so fixed scc_fvno usage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5247 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_decode.c: move declaration of gmt_mktime() outside ofTom Yu1995-03-252-1/+8
| | | | | | | asn1_decode_generaltime() so that compilers like Ultrix cc that don't support prototypes within function bodies don't break git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5246 dc483132-0cff-0310-8789-dd5450dbe970