summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* kfree.c (krb5_free_sam_challenge, krb5_free_sam_challenge_contents,Theodore Tso1999-04-104-23/+154
| | | | | | | | | | | | | | | | | krb5_free_sam_response, krb5_free_sam_response_contents, krb5_free_predicted_sam_response, krb5_free_predicted_sam_response_contents, krb5_free_enc_sam_response_enc, krb5_free_enc_sam_response_enc_contents, krb5_free_pa_enc_ts): Added new functions. Part of patches from [krb5-kdc/662] gic_pwd.c (krb5_get_init_creds_password): Add new argument to calls to the prompter function. Part of patches from [krb5-kdc/662]. preauth2.c (pa_enc_timestamp, pa_sam): Update calls to new prompter function. [krb5-kdc/662]. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11349 dc483132-0cff-0310-8789-dd5450dbe970
* prompter.c (krb5_prompter_posix): Update to use new prompter prototypeTheodore Tso1999-04-102-4/+17
| | | | | | | which takes an extra argument for the window titlebar name. (From Frank Cusack) [krb5-kdc/662] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11348 dc483132-0cff-0310-8789-dd5450dbe970
* Workaround the fact that Windows has really poor emulation of POSIXTheodore Tso1999-04-062-10/+38
| | | | | | | | functions such as rename. (In fact, it has completely different semantics for this call!) Fix supplied by Tom Sanfilippo (txn# 2184 in krb5dev) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11341 dc483132-0cff-0310-8789-dd5450dbe970
* typo in a commentDan Winship1999-04-031-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11340 dc483132-0cff-0310-8789-dd5450dbe970
* * rpc_commondata.c: Add initializers to prevent lossage on systemsTom Yu1999-04-022-5/+13
| | | | | | that don't deal with common blocks in libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11339 dc483132-0cff-0310-8789-dd5450dbe970
* Fix silly typoTheodore Tso1999-03-311-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11335 dc483132-0cff-0310-8789-dd5450dbe970
* ccdefops.c: Change the default ccache type under windows to beTheodore Tso1999-03-312-2/+13
| | | | | | | original FILE ccache type; this will get set to ccapi if the krbcc32.dll can be found. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11334 dc483132-0cff-0310-8789-dd5450dbe970
* init_ctx.c (krb5_init_context): Call krb5_win_ccdll_load() to load theTheodore Tso1999-03-312-0/+7
| | | | | | krbcc32.dll under windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11333 dc483132-0cff-0310-8789-dd5450dbe970
* win_glue.c (control): Call krb5_stdcc_shutdown when detaching the krb5Theodore Tso1999-03-313-5/+14
| | | | | | | | | library. Makefile.in: Remove reference to the windows Krbcc32.dll library, since this is now dynamically loaded. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11332 dc483132-0cff-0310-8789-dd5450dbe970
* winccld.c, winccld.h, stdcc.c: Add files to dynamically loadTheodore Tso1999-03-315-3/+251
| | | | | | | krbcc32.dll, so that we can fall back and use the built-in file ccache type if krbcc32.dll doesn't exist. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11331 dc483132-0cff-0310-8789-dd5450dbe970
* acquire_cred.c (krb5_gss_acquire_cred): Don't use strcmp to compareTheodore Tso1999-03-272-6/+21
| | | | | | against principal components (they aren't null terminated!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11320 dc483132-0cff-0310-8789-dd5450dbe970
* gssapi_krb5.c: Rearrange OID's so that the V1V2 mechanism set returnsTheodore Tso1999-03-267-19/+51
| | | | | | | | | | | | | | | | | | | | | | | | all three mechanism ID's recognized by this implementation, with the RFC1964 OID first (and thus preferred). import_sec_context.c (krb5_gss_convert_static_mech_oid): Make the old convert_static_oid() function globally accessible with a namespace compliant name, since init_sec_context() needs to be able to use this function. indicate_mechs.c (krb5_gss_indicate_mechs): Return the v1v2 mechanism set OID, since we should return all the mechanisms that we support. init_sec_context.c (krb5_gss_init_sec_context): Make ctx->mech_used use a static OID, since it is returned by gss_inquire_context which must return a static OID. wrap_size_limit.c (krb5_gss_wrap_size_limit): Fix bug where we would overestimate the size of the allowable input message by one byte, because we weren't passing the right estimate of the wrapped data to g_token_size(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11315 dc483132-0cff-0310-8789-dd5450dbe970
* disp_major_status.c (display_unknown): Fix the length of the buffer toTheodore Tso1999-03-262-1/+7
| | | | | | | be the size of the returned string, instead of something bigger than the returned string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11314 dc483132-0cff-0310-8789-dd5450dbe970
* * promptusr.c (krb5_os_get_tty_uio): getchar() returns int, notTom Yu1999-03-252-1/+6
| | | | | | char. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11312 dc483132-0cff-0310-8789-dd5450dbe970
* Don't use cc_uint4 since the Windows include file apparently doesn'tTheodore Tso1999-03-231-2/+2
| | | | | | include it. unsigned int will work just fine here for now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11302 dc483132-0cff-0310-8789-dd5450dbe970
* Fix window's get_from_os() call so that gets the default cache name ifTheodore Tso1999-03-231-1/+1
| | | | | | | the strategy of getting the information from the registry fails (which it normally will, since this is used only for PC-DCE compatibility). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11301 dc483132-0cff-0310-8789-dd5450dbe970
* Fix up makefile so that it correctly builds the DLL's under windowsTheodore Tso1999-03-231-6/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11300 dc483132-0cff-0310-8789-dd5450dbe970
* Added extern "C" to gssapi_krb5.hMiro Jurisic1999-03-152-0/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11289 dc483132-0cff-0310-8789-dd5450dbe970
* Now actually compilesMiro Jurisic1999-03-152-3/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11286 dc483132-0cff-0310-8789-dd5450dbe970
* Fix = vs == bug in krb5_stdcc_next_credTheodore Tso1999-03-141-3/+16
| | | | | | | | check the return value from cc_create. Remove use of C++ comments. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11285 dc483132-0cff-0310-8789-dd5450dbe970
* Commit updated changelogTheodore Tso1999-03-141-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11284 dc483132-0cff-0310-8789-dd5450dbe970
* Fix obviously missing variable declarationTheodore Tso1999-03-141-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11283 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to allow building the profile routines as their own separate DLLTheodore Tso1999-03-144-6/+81
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11282 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (DLL_FILE_DEF): Tell the Makefile template that we areTheodore Tso1999-03-142-0/+7
| | | | | | building object files for the GSSAPI DLL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11281 dc483132-0cff-0310-8789-dd5450dbe970
* Check in prototype for gss_krb5_ccache_name()Theodore Tso1999-03-141-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11280 dc483132-0cff-0310-8789-dd5450dbe970
* Check to make sure the context is valid and return an error if itTheodore Tso1999-03-121-1/+9
| | | | | | isn't. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11273 dc483132-0cff-0310-8789-dd5450dbe970
* Sample the ccdefault name at the time when we create the context.Theodore Tso1999-03-122-0/+22
| | | | | | Free the ccdefault name when we free the os context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11272 dc483132-0cff-0310-8789-dd5450dbe970
* set_ccache.c (gss_krb5_ccache_name): Added new Krb5 specific interfaceTheodore Tso1999-03-123-0/+32
| | | | | | to set the default credentials cache name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11266 dc483132-0cff-0310-8789-dd5450dbe970
* Change K5_OUTPUT_FILES to be K5_AC_OUTPUTTheodore Tso1999-03-121-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11265 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (DLL_FILE_DEF): Tell the Makefile template that we areTheodore Tso1999-03-125-54/+65
| | | | | | | | building object files for the GSSAPI DLL. gssapi.hin, gssapi_generic.c: Change use of KRB5_DLLIMP to be GSS_DLLIMP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11262 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (DLL_FILE_DEF): Tell the Makefile template that we areTheodore Tso1999-03-123-40/+49
| | | | | | | | building object files for the GSSAPI DLL. krb5_gss_glue.c: Change use of KRB5_DLLIMP to be GSS_DLLIMP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11261 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (DLL_FILE_DEF): Tell the Makefile template that we areTheodore Tso1999-03-114-8/+18
| | | | | | | | | building object files for the GSSAPI DLL. g_acquire_cred.c, g_oid_ops.c: Change use of KRB5_DLLIMP to be GSS_DLLIMP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11260 dc483132-0cff-0310-8789-dd5450dbe970
* Added function krb5_free_cc_cred_union(), a local version of cc_free_creds() ↵Scott McGuire1999-03-103-48/+97
| | | | | | to free cred_unions allocated by Kerb5 library. Removed mac-only sys_alloc() stuff and go back to malloc() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11256 dc483132-0cff-0310-8789-dd5450dbe970
* * sendauth.c (krb5_sendauth): Set credspout to NULL if it'sTom Yu1999-03-092-2/+11
| | | | | | | | | destined to be returned to avoid freeing it. Also, unconditionally free credspout if it's non-NULL so that if someone doesn't pass in a ticket and doesn't give us a non-NULL out_creds, we don't leak it. [krb5-libs/699] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11249 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed missing Mac#includeMiro Jurisic1999-02-261-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11227 dc483132-0cff-0310-8789-dd5450dbe970
* * ccdefname.c (get_from_os): Add missing close-paren; also replaceTom Yu1999-02-202-2/+8
| | | | | | #elif just in case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11200 dc483132-0cff-0310-8789-dd5450dbe970
* Added get_from_os for MacOSMiro Jurisic1999-02-201-13/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11192 dc483132-0cff-0310-8789-dd5450dbe970
* Now compiles on the Mac against CC API v2Miro Jurisic1999-02-201-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11191 dc483132-0cff-0310-8789-dd5450dbe970
* Added debugging hooks to stdcc.cTheodore Tso1999-02-182-77/+222
| | | | | | | | | | | | Added broadcast event notification of the krb5 cache changing, for backwards compatibility with krb5.exe. Added support for the V2 Ccache API. In stdcc_util.c, replace the old matching algorithm with one that's closer to the original stdcc and file algorithm, and so is provably correct. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11181 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Link in the ccapi import library under windowsTheodore Tso1999-02-094-3/+38
| | | | | | | krb5_16.def, krb5_32.def: Added a number of miscellaneous functions to the DLL exports list so that things build under Windows again. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11159 dc483132-0cff-0310-8789-dd5450dbe970
* rd_req.c (krb_rd_req): Add appropriate #ifdef so that this codeTheodore Tso1999-02-091-0/+2
| | | | | | compiles cleanly when KRB4_USE_KEYTAB is not defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11158 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bad comment terminator in stdcc_util.c which was stopping it from compilingTheodore Tso1999-02-091-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11157 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Enable the ccapi directory for windows buildsTheodore Tso1999-02-093-31/+35
| | | | | | ccdefops.c: Make the ccapi the default ccache type for Windows machines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11156 dc483132-0cff-0310-8789-dd5450dbe970
* ccdefname.c (get_from_os): On the Windows platform, automaticallyTheodore Tso1999-02-093-4/+21
| | | | | | | | | | generate the correct default cache name based on what krb5_cc_dfl_ops is set to. realm_dom.c (krb5_get_realm_domain): Add modifiers so that this function can get exported in a Windows DLL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11154 dc483132-0cff-0310-8789-dd5450dbe970
* Initial rototilling of these functions to make them more krb5 libraryTheodore Tso1999-02-053-250/+318
| | | | | | API compliant. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11149 dc483132-0cff-0310-8789-dd5450dbe970
* Initial commit of massively modified stdcc functions to make them somewhatTheodore Tso1999-02-042-269/+394
| | | | | | closer to correct. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11148 dc483132-0cff-0310-8789-dd5450dbe970
* * read_pwd.c: Remove reference to CPP symbol "unix"Tom Yu1999-02-022-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11141 dc483132-0cff-0310-8789-dd5450dbe970
* ccdefname.c: Add a new function krb5_cc_set_default_name(), which isTheodore Tso1999-02-023-119/+166
| | | | | | | | | | | | | | | used set the default ccname stored in the krb5_context. All of the OS-specific functions to determine the default ccname is moved to this function. The krb5_cc_default_name() function now just reads the default ccname from the os_context, and will call krb5_cc_set_default_name() to set the default ccname if necessary. t_std_conf: Added functions to test krb5_cc_default_name and krb5_cc_set_default_name(). Fixed the call to krb5_locate_kdc to support the new variables added by the Cygnus initial ticket API merge. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11140 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in, configure.in: Move the responsibility for generatingTheodore Tso1999-01-273-14/+11
| | | | | | | Makefile files for the following subdirectories to the top-level: util, util/send-pr, util/dyn, lib, config-files, and gen-manpages. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11132 dc483132-0cff-0310-8789-dd5450dbe970
* localaddr.c: On the macintosh, check to see if getmyipaddr returnsTheodore Tso1999-01-272-0/+13
| | | | | | NULL, and return an error in that case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11129 dc483132-0cff-0310-8789-dd5450dbe970