summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * kprop.c: Call krb5_sname_to_principal rather than doing the OS calls.Richard Basch1996-03-053-60/+51
| | | | | | | | | | | | Removed a trailing ; that caused a spurious message to be printed even upon success. * kpropd.c: Call krb5_sname_to_principal rather than doing the OS calls. Open the lock file read-write, as required by POSIX. Downgrade the lock to a shared lock prior to the execution of kdb5_edit (it also tries to place a shared lock on the dump file). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7595 dc483132-0cff-0310-8789-dd5450dbe970
* kdb5_edit has been moved to PREFIX/sbinRichard Basch1996-03-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7594 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c: new command line option -f stashfile.Mark Eichin1996-03-053-15/+33
| | | | | | | | * kdb5_edit.M: document stashfile option. (also fixed some indentation, diff -w shows no difference.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7593 dc483132-0cff-0310-8789-dd5450dbe970
* now the keys actually *work* when you load an old dump (a real one,Mark Eichin1996-03-052-3/+15
| | | | | | | | | | | not the fake one the test case creates.) * dump.c (process_k5beta_record): since V4 salt type has no data either, only set key_data_ver to 1 for data_type 0 with 0-length salt. Also, don't include alternate key if akey has all-zero type and length in both fields. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7592 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Log krb5kdc to stderr so that test can detectEzra Peisach1996-03-052-1/+20
| | | | | | | | | | | properly when server has started. Change start_kerberos_daemons to take advantage of this. Before, every time the server was started, the test would have to wait for the standard timeout (100 sec) before continuing with the test. The standalone tests used to take 15.5 min and now take 4. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7591 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to start up kshd (not krshd) with new argumentsEzra Peisach1996-03-033-8/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7590 dc483132-0cff-0310-8789-dd5450dbe970
* Change to execute with new program name and argumentsEzra Peisach1996-03-032-4/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7589 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode_test.c (main): In krb5_enc_tkt_part (optionals NULL)Ezra Peisach1996-03-032-1/+7
| | | | | | | test, set starttime to authtime. Matches change to lib/krb5/asn.1/krb5_decode.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7588 dc483132-0cff-0310-8789-dd5450dbe970
* * srv_main.c: Move inclusion of k5-int.h before testing ifEzra Peisach1996-03-032-1/+6
| | | | | | | | HAVE_STDARG_H is defined. This is because configure.in does not test for stdarg.h, but autoconf.h does have it defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7587 dc483132-0cff-0310-8789-dd5450dbe970
* * g_imp_sec_context.c, g_exp_sec_context.c: Include string.hEzra Peisach1996-03-033-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7586 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-server.c (test_import_export_context): Add second argumentEzra Peisach1996-03-032-3/+8
| | | | | | to gettimeofday. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7585 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Change WITH_DB to WITH_KDB_DBEzra Peisach1996-03-032-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7584 dc483132-0cff-0310-8789-dd5450dbe970
* gss-server.c (sign_server): Do better import/export security checking.Theodore Tso1996-03-024-38/+219
| | | | | | | | | | | | | | | If the received message to be signed is not printable (at least the first two characters are not), display the message in hex. Print the hex values of the incoming and outcoming packets, for your information. gss-misc.c (print_token, display_buffer): Two new tokens for displaying GSSAPI buffers, either has hex or as a printable string. gss-client.c (call_server): Add option to support reading in the message to be signed from a file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7583 dc483132-0cff-0310-8789-dd5450dbe970
* k5mech.c (krb5_gss_get_context): Initialize the serializers here,Theodore Tso1996-03-024-125/+119
| | | | | | | | | | | | | | instead of in export and import security context. This will speed things up a little. export_sec_context.c (krb5_gss_export_sec_context): import_sec_context.c (krb5_gss_import_sec_context): Don't create a serialization context just for importing/exporting credentials. Use the passed-in gssapi context. This speeds things up significantly. Assume the serializers are initialized in krb5_gss_get_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7582 dc483132-0cff-0310-8789-dd5450dbe970
* g_glue.c (__gss_get_mech_type): Fix code to properly parse tokenTheodore Tso1996-03-014-42/+72
| | | | | | | | | | headers. It was working only by serendipity.... g_accept_sec_context.c (gss_accept_sec_context): Add error checking and memory cleanup. Make gss_accept_sec_context work for mechanisms that use multiple token roundtrips. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7581 dc483132-0cff-0310-8789-dd5450dbe970
* Use NEED_SOCKETS instead of #including <netdb.h>Theodore Tso1996-03-012-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7580 dc483132-0cff-0310-8789-dd5450dbe970
* Add closeoscket() call so that program properly cleans up the socketTheodore Tso1996-03-012-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7579 dc483132-0cff-0310-8789-dd5450dbe970
* Added note: Note that calls to WSAStartup and WSACleanup must be inTheodore Tso1996-03-012-1/+12
| | | | | | | matched pairs. If there is a missing WSACleanup call when a program exits, under Lan Workplace, the name resolver will stop working. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7578 dc483132-0cff-0310-8789-dd5450dbe970
* Take out calls to SOCKET_INITIALIZE and SOCKET_CLEANUP. This getsTheodore Tso1996-03-012-1/+18
| | | | | | | done in win_glue.c, and we only need to do this once. (XXX What about Macintosh?) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7577 dc483132-0cff-0310-8789-dd5450dbe970
* Fix to work on 16-bit platforms (we don't allow greater than 64kTheodore Tso1996-03-012-0/+15
| | | | | | tokens on these platforms). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7576 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure WSACleanup() is called when the DLL exitsTheodore Tso1996-02-292-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7575 dc483132-0cff-0310-8789-dd5450dbe970
* mglueP.h: For MS-DOS, add #include of malloc.hTheodore Tso1996-02-295-62/+180
| | | | | | | | | | | g_acquire_cred.c (gss_acquire_cred): Fix so that the call works when desired_name is NULL (meaning use the default credentials). g_imp_sec_context.c (gss_import_sec_context): g_exp_sec_context.c (gss_export_sec_context): Fix to import/export the framing security context (so that this call actually works!). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7574 dc483132-0cff-0310-8789-dd5450dbe970
* Added support for users to enter the GSSAPI target name into theTheodore Tso1996-02-293-21/+43
| | | | | | combobox. The syntax is: "host port gssapi_target_name" git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7573 dc483132-0cff-0310-8789-dd5450dbe970
* Move com_err.h after k5-int.h include so that autoconf.h is includedEzra Peisach1996-02-282-1/+5
| | | | | | which handles the varargs issue. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7571 dc483132-0cff-0310-8789-dd5450dbe970
* Get the nametype OID from gss_display_name, print it, and then releaseTheodore Tso1996-02-282-2/+21
| | | | | | | the nametype OID. This tests gss_display_name()'s ability to return a valid nametype, which can then be freed successfully. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7570 dc483132-0cff-0310-8789-dd5450dbe970
* Update TODO listTheodore Tso1996-02-281-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7568 dc483132-0cff-0310-8789-dd5450dbe970
* Build the gssapi tests directoryTheodore Tso1996-02-282-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7567 dc483132-0cff-0310-8789-dd5450dbe970
* Fix memory leak; free enctypes after useTheodore Tso1996-02-282-7/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7566 dc483132-0cff-0310-8789-dd5450dbe970
* Windows has strerror()Theodore Tso1996-02-282-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7565 dc483132-0cff-0310-8789-dd5450dbe970
* Add Windows 95/NT time function. (Does this time function work underTheodore Tso1996-02-282-0/+44
| | | | | | Windows? We'll find out....) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7564 dc483132-0cff-0310-8789-dd5450dbe970
* We have implemented gss_inquire_names_for_mech, notTheodore Tso1996-02-282-1/+7
| | | | | | gss_inquire_mechs_for_name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7563 dc483132-0cff-0310-8789-dd5450dbe970
* Modify windows build procedure to include the gssapi/mechglueTheodore Tso1996-02-282-3/+11
| | | | | | directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7562 dc483132-0cff-0310-8789-dd5450dbe970
* g_initialize.c (gss_initialize): Don't fprintf to stderr onTheodore Tso1996-02-283-1/+14
| | | | | | | | Macintoshes and Windows. g_inq_context.c: Add INTERFACE keyword for Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7561 dc483132-0cff-0310-8789-dd5450dbe970
* Add mechglue to the list of directories which are recursively handledTheodore Tso1996-02-282-0/+12
| | | | | | for Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7560 dc483132-0cff-0310-8789-dd5450dbe970
* Fix stupid typoTheodore Tso1996-02-281-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7559 dc483132-0cff-0310-8789-dd5450dbe970
* If starttime is not set, then use authtime as a default. (This fixesTheodore Tso1996-02-282-0/+9
| | | | | | | the bug where if you try to immediately use a TGT to get a ticket, you get a time skew error.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7558 dc483132-0cff-0310-8789-dd5450dbe970
* Protect include of unistd.h with HAVE_UNISTD_HTheodore Tso1996-02-272-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7557 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure size_t and uid_t are defined under MS-DOSTheodore Tso1996-02-272-1/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7556 dc483132-0cff-0310-8789-dd5450dbe970
* accept_sec_context.c (krb5_gss_accept_sec_context): Remove dead codeTheodore Tso1996-02-275-7/+23
| | | | | | | | | | | | which used geteuid(). Makefile.in (gssapi_err_krb5.$(OBJEXT)): Add Windows production to add file to library. pname_to_uid.c: Don't try to compile pname_to_uid.c for MS-DOS or Macintosh. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7555 dc483132-0cff-0310-8789-dd5450dbe970
* Use #define NEED_SOCKETS instead of #including <netdb.h> (this breaksTheodore Tso1996-02-272-2/+6
| | | | | | under windows). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7554 dc483132-0cff-0310-8789-dd5450dbe970
* *main.c:Richard Basch1996-02-273-19/+31
| | | | | | | | | | | | | | Do not repeat random number generator initializations, as memory is allocated and never reclaimed. Also fixed the V4 random number generator initialization (a DES_CBC_CRC random number is generated and used as a seed for the V4 routine, but the generation function was being called with the wrong arguments). * do_as_req.c: Memory was occassionally being freed twice because the pointer was not re-initialized to NULL after it was freed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7553 dc483132-0cff-0310-8789-dd5450dbe970
* Add USE_ANAME for dbm library (if needed)Ezra Peisach1996-02-272-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7552 dc483132-0cff-0310-8789-dd5450dbe970
* Remoe static declaration of kg_context,Sam Hartman1996-02-262-5/+4
| | | | | | which is global elsewhere and extern in gssapiP_krb5.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7551 dc483132-0cff-0310-8789-dd5450dbe970
* Don't compile promptusr for Windows or MacintoshTheodore Tso1996-02-262-3/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7550 dc483132-0cff-0310-8789-dd5450dbe970
* Use MAXDNAME for the maximum length of a domain,Sam Hartman1996-02-263-6/+22
| | | | | | | | | | | *not* MAXHOSTNAMELEN, which is the maximum length of an argument to gethostname or sethostname. Look for arpa/nameser.h to find this constant, defining it to 256 inf not present in an included file. Call USE_ANAME in the configure.in, so db library is included. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7549 dc483132-0cff-0310-8789-dd5450dbe970
* Use MAXDNAME for the maximum length of a domain,Sam Hartman1996-02-263-4/+14
| | | | | | | | | *not* MAXHOSTNAMELEN, which is the maximum length of an argument to gethostname or sethostname. Look for arpa/nameser.h to find this constant, defining it to 256 inf not present in an included file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7548 dc483132-0cff-0310-8789-dd5450dbe970
* Call USE_ANAME so we get the rightSam Hartman1996-02-262-0/+6
| | | | | | | | db libraries under Linux. (I'm not quite sure I understand Richard's db changes, but if I do understand them, this is correct.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7547 dc483132-0cff-0310-8789-dd5450dbe970
* Remove space from #endif lineSam Hartman1996-02-261-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7546 dc483132-0cff-0310-8789-dd5450dbe970
* Fix the server side of the krlogin bug detecting eof in connection closeSam Hartman1996-02-266-6/+29
| | | | | | Also, import the ops changes to do with enable-athena. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7545 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c (initialize_realms): missing indirection for conf_val inMark Eichin1996-02-252-2/+7
| | | | | | | alternate profile code. (This should really be in a library...) (thanks ezra!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7544 dc483132-0cff-0310-8789-dd5450dbe970