aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-02-17This commit was manufactured by cvs2svn to create tagkfw-2.6-beta7no author499-55531/+20262
'kfw-2_6-beta-7'. git-svn-id: svn://anonsvn.mit.edu/krb5/tags/kfw-2_6-beta-7@16092 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-12Rewrite asn1_get_tag interface to use a structure pointer rather than severalKen Raeburn7-203/+246
pointer variables for the returned data. Use the structure in the caller when straightforward; in cases where macros use different but overlapping sets of automatic scalar variables in one file, copy the values out of the structures for now, until they can be analyzed more carefully. * asn1_get.c (asn1_get_tag): Deleted. (asn1_get_tag_2): Renamed from asn1_get_tag_indef, now uses a pointer to taginfo rather than a bunch of pointer args. (asn1_get_id, asn1_get_length): Folded into asn1_get_tag_2. (asn1_get_sequence): Call asn1_get_tag_2. * asn1_get.h (taginfo): New structure. (asn1_get_tag_indef, asn1_get_tag, asn1_get_id, asn1_get_length): Declarations deleted. (asn1_get_tag_2): Declare. * asn1_decode.c (setup): Declare only a taginfo variable. (asn1class, construction, tagnum, length): New macros. (tag): Call asn1_get_tag_2. * asn1_k_decode.c (next_tag, get_eoc, apptag, end_sequence_of, end_sequence_of_no_tagvars, asn1_decode_krb5_flags): Call asn1_get_tag_2; if no error, copy out values into scalar variables. (asn1_decode_ticket): Call asn1_get_tag_2. * asn1buf.c (asn1buf_skiptail): Call asn1_get_tag_2. * krb5_decode.c (check_apptag, next_tag, get_eoc): Call asn1_get_tag_2; if no error, copy out values into scalar variables. (decode_krb5_enc_kdc_rep_part): Call asn1_get_tag_2. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15274 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-10Oops. Forgot the leading underscoreAlexandra Ellwood1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15272 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-09 * t_kerb.c: Only include krb.h if krb4 support compiled in,Ezra Peisach2-0/+12
otherwise define ANAME_SZ, INST_SZ and REALM_SZ. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15271 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-08Yet another attempt at cross-directory dependencies. Seems to fix the parallelKen Raeburn2-8/+46
build, and hasn't broken the out-of-date case so far as I can tell, so far... Added a bunch of comments describing the cases that need to be handled. * Makefile.in ($(BUILDTOP)/include/gssapi/gssapi.h, generic/gssapi.h, generic/gssapi_err_generic.h, krb5/gssapi_err_krb5.h): Comment out old rules and dependencies; depend on all-recurse and supply a no-op rule. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15270 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-07Added krb5_principal2saltAlexandra Ellwood1-0/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15269 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-07Added USE_BUNDLE_ERROR_STRINGS to turn off add_error_table calls in krb5 and ↵Alexandra Ellwood1-0/+1
gss initializers git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15268 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-07* krb5_libinit.c: Changed USE_HARDCODED_FALLBACK_ERROR_TABLES macro to ↵Alexandra Ellwood2-2/+8
!USE_BUNDLE_ERROR_STRINGS so Darwin based builds get com_err style error tables git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15267 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-07* gss_libinit.c: Changed USE_HARDCODED_FALLBACK_ERROR_TABLES macro to ↵Alexandra Ellwood2-2/+8
!USE_BUNDLE_ERROR_STRINGS so Darwin based builds get com_err style error tables git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15266 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-07 * ovsec_kadmd.c (REQUIRED_PARAMS): RemoveTom Yu2-3/+8
KADM5_CONFIG_ADMIN_KEYTAB. (do_schpw): Use kdb keytab. ticket: 1372 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15265 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06 * preauth2.c (pa_sam_2): Add intermediate size_t variable to holdTom Yu2-1/+8
output of krb5_c_encrypt_length(). ticket: 1373 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15264 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06Add missing parenSam Hartman1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15263 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06Added new AES filesAlexandra Ellwood1-7/+28
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15262 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06Avoid redefined macro warnings by defining it to the same thing in the first ↵Alexandra Ellwood1-1/+1
place git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15261 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06Added function for KEYFILE macroAlexandra Ellwood1-0/+3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15260 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* c_ustime.c: Removed Mac OS 9 code. * ccdefname.c: Conditionalize on ↵Alexandra Ellwood6-123/+29
USE_CCAPI and not TARGET_OS_MAC so Darwin builds work. * init_os_ctx.c: Modified to use DEFAULT_SECURE_PROFILE_PATH and DEFAULT_PROFILE_PATH for KfM homedir-relative config files. * read_pwd.c: Cast to remove const warnings. * timeofday.c: Do the same thing on the Mac as on Unix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15259 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* appdefault.c: Fix constness to avoid warning. * init_ctx.c: Do the same ↵Alexandra Ellwood4-3/+11
stuff on the Mac as on Unix. * preauth2.c: Added cast to fix warning git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15258 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* stdcc.h, stdcc_util.h: Removed Mac header gooberAlexandra Ellwood3-4/+8
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15257 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06 * ccdefault.c: Remove Mac header goober and include k5-int.h after ↵Alexandra Ellwood2-2/+8
KerberosLoginPrivate.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15256 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* krb5_libinit.c: Removed Mac OS X header goober. Conditionalize CCAPI ↵Alexandra Ellwood2-5/+12
calls on USE_CCAPI so Darwin builds work git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15255 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* CCache-glue.c: Added prototypes for deprecated functions. Made internal ↵Alexandra Ellwood13-145/+94
functions static. Removed unused CoreServices include. Changed TICKET_GRANTING_TICKET to new macro: KRB_TICKET_GRANTING_TICKET. * change_password.c: Added check of inputs to krb_change_password so we don't crash on bad inputs. Call des_string_to_key not mit_password_to_key on all platforms because we don't want to prompt for a password. * FSp-glue.c: Added prototypes for deprecated functions. Changed to use KfM's FSSpecToPOSIXPath which correctly handles FSSpecs where the file does not exist. * g_in_tkt.c: Added explanatory comments. Made TARGET_OS_MAC sections a little smaller and easier to read. * g_pw_in_tkt.c: Only prompt when we are not using the login library. This is so that Darwin builds do prompt but KfM builds don't. * g_svc_in_tkt.c, g_tkt_svc.c: Changed to use KRB_TICKET_GRANTING_TICKET. * kadm_net.c: Use autoconf variable krb5_sigtype instead of sigtype, which doesn't seem to be defined on Mac OS X. * krb4int.h, RealmsConfig-glue.c: Removed krb_get_stk(). * rd_req.c: Added #ifdef KRB4_USE_KEYTAB to avoid unused variable warning when KRB4_USE_KEYTAB is not defined. * sendauth.c: Fixed warnings with casts git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15254 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* disp_status.c, gssapi_krb5.h, gssapiP_krb5.h: Removed Mac header gooberAlexandra Ellwood4-20/+8
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15253 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* disp_com_err_status.c, gssapi_generic.h: Removed Mac header goober. * ↵Alexandra Ellwood5-19/+12
gssapiP_generic.h, gssapi.hin: Removed macintosh check because we don't build on OS 9 anymore. * gssapi.hin: Removed enumsalwaysint because there are no typed enums in this header. Removed duplicate CFM-68K magic git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15252 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* gss_libinit.c: Removed Mac header goober. Fixed ↵Alexandra Ellwood3-8/+13
USE_HARDCODED_FALLBACK_ERROR_TABLES macro used by KfM. * gss_libinit.h: do not use the same multiple include protection macro as krb5_libinit.h. Changed to GSSAPI_LIBINIT_H git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15251 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* mac_des_glue.c, des.c, enc_dec.c, key_sched.c, str_to_key.c: Move KfM des ↵Alexandra Ellwood8-78/+113
functions into their own file. They are all deprecated on KfM and shouldn't even get built on stock krb5 builds. * read_passwd.c: Added warning comment that des_read_pw_string is an exported function on KfM, so we should not change its ABI git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15250 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* prng.c: use Unix randomness sources on Mac OS XAlexandra Ellwood2-4/+7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15249 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* des_int.h: Added prototype for mit_afs_crypt which is used by the ↵Alexandra Ellwood2-0/+7
deprecated KfM des_crypt function git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15248 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* krb5.h: Removed enumsalwaysint because there are no typed enums in this ↵Alexandra Ellwood3-11/+23
header. * k5-int.h: Removed Mac OS header goober. Added prototype for os_get_default_config_files which will be used by KfM's preference APIs (KFM needs to get the secure default files as well as the normal ones). Moved profile.h inclusion higher so it gets included before this function and thus its types are defined (the reason I put it where I did was there is another config file function next to it) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15247 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* osconf.h: Added DEFAULT_SECURE_PROFILE_PATH so that KfM will only search ↵Alexandra Ellwood2-2/+12
paths that start with ~/ (homedir-based) when getting an insecure context. This is the same as DEFAULT_PROFILE_PATH on all other platforms, which allows us to avoid more references to TARGET_OS_MAC in krb5 sources git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15246 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* des.h, krb.h: Removed deprecated KfM functions. They will be exported but ↵Alexandra Ellwood5-86/+35
not in the headers to discourage new callers. Removed enumsalwaysint because there are no typed enums in this header. * des.h: Made afs_string_to_key public on all platforms. (OpenAFS folk think this is okay.) * krb.h, prot.h: Made KRB_TICKET_GRANTING_TICKET public and removed non-public TICKET_GRANTING_TICKET because this macro is used in lots of places by KfM, including some clients. Made krb__get_srvtabname non-private because it is used by KEYFILE. * kadm.h: moved definition of MAXHOSTNAMELEN below the inclusion of other headers so that if it gets defined by those other headers or headers they include, we don't get a redefinition error (this happens on Mac OS X) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15245 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, sendmsg.c: Removed ↵Alexandra Ellwood8-30/+24
Mac-specific includes. * conv_creds.c: If we are on the Mac and using the CCAPI, set the string_to_key type to MIT. * krb524.h: Removed enumsalwaysint because there are no enums in this header. Also include krb524_err with <> because on Mac OS X both are public headers and should not be included with "". * Makefile.in: set KRB524_PRIVATE while building so that Darwin builds see these prototypes. Otherwise the Darwin build will fail git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15244 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06KfM 5.0 krb5 project fileAlexandra Ellwood1-0/+11944
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15243 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06Added KfM export files on to trunk. There is now a krb4 and DES export file ↵Alexandra Ellwood5-0/+661
because KfM now uses krb5's DES and krb4 sources git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15242 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06Scripts to build KfM headers and error tables and a script to run the krb5 ↵Alexandra Ellwood3-0/+306
build system git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15241 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06The prefix file for KfM 5.0. This file has all the #defines for Mac OS X ↵Alexandra Ellwood1-0/+181
which are normally specified by -Dfoo on the command line by the krb5 build system. Since KfM uses Project Builder, we specify them here git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15240 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* profile.hin, prof_file.c (profile_flush_file_data): Stop copying the ↵Alexandra Ellwood6-104/+107
resource fork. We stopped writing resources to the krb5 configuration in KfM 4.5.x. In KfM 5.0 will no longer read preferences from the resource fork so we can destroy it on copy. * prof-int.h: No longer include MoreFiles. Removed framework style includes for Kerberos headers. * prof_FSp_glue.c, prof_init.c, profile.hin: Moved Mac FSSpec-based functions into a separate file so they will only be built with KfM. These functions will be exported but not in the headers because they are deprecated git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15239 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* com_err.c, com_err.h, error_message.c, et_c.awk, et_h.awk: Removed Mac OS ↵Alexandra Ellwood6-139/+17
9-specific code. * et_h.awk: define compat macro for init_foo_err_table so that it gets defined to nothing on the Mac git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15238 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06use kdb keytab for kadmindTom Yu11-20/+124
kadmind previously required a file-based keytab to support its use of gssapi. For ease of administration, a kdb-based keytab would be beneficial. This commit includes changes to the kdb library to support this goal, as well as actual changes in the kadmind itself. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15237 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06 * acquire_cred.c (krb5_gss_register_acceptor_identity): NewTom Yu3-19/+61
function. Allows global override of default keytab for gss_acquire_cred() purposes. (acquire_accept_cred): Implement override. * gssapi_krb5.h: Add krb5_gss_register_acceptor_identity. ticket: 880 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15236 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05Remove kdb_dbm.h as it is unusedSam Hartman2-120/+4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15235 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05* Makefile.in (WINMAKEFILES): Add lib\crypto\aes\Makefile.Ken Raeburn2-1/+8
(lib\crypto\aes\Makefile) [##DOS##]: New target. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15234 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05* Makefile.in (OBJFILELIST, OBJFILEDEP) [##DOS]: Add aes.lst.Ken Raeburn2-2/+17
(all-windows, clean-windows, check-windows): Process aes directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15233 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05* password_to_key.c (mit_passwd_to_key, afs_passwd_to_key): Comment out pragmasKen Raeburn2-0/+7
not recognized by gcc or cl. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15232 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05string_to_key.c (krb5_c_string_to_key_with_params): Declare before useKen Raeburn2-1/+12
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15231 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05Reduce local configure script's work by removing static defines and header andKen Raeburn18-29/+48
function info available in krb5/autoconf.h. * gethostname.c, getst.c, kadm_net.c, klog.c, kparse.c: Include krb5/autoconf.h. * kuserok.c, log.c, memcache.c, mk_preauth.c, netread.c: Ditto. * netwrite.c, put_svc_key.c, recvauth.c, send_to_kdc.c: Ditto. * tkt_string.c: Ditto. * Makefile.in: Update dependencies. (DEFINES): Define KRB4_USE_KEYTAB. * configure.in: Don't define KRB4_USE_KEYTAB. Don't check for any headers or functions; include/configure.in already does it. Don't invoke AC_C_CONST explicitly; CONFIG_RULES does that. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15230 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05Clean up PBKDF2 interface. Add s2k-params to string-to-key interface, exceptKen Raeburn19-145/+133
no new decl in krb5.h yet; rename changed s2k functions to use krb5int_ prefix. Add AES to etype table. Delete some unused declarations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15229 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05* aes.c (krb5int_aes_init_state): Implement.Ken Raeburn3-3/+14
* enc_provider.h (krb5int_enc_aes128, krb5int_enc_aes256): Declare. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15228 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05* krb5_err.et (KRB5_ERR_BAD_S2K_PARAMS): New error codeKen Raeburn2-0/+6
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15227 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05Add AES string-to-key functionKen Raeburn4-9/+84
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15226 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-05Delete some unused declarations from old-crypto APIKen Raeburn8-21/+22
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15225 dc483132-0cff-0310-8789-dd5450dbe970