aboutsummaryrefslogtreecommitdiff
path: root/src/krb524/encode.c
AgeCommit message (Collapse)AuthorFilesLines
2003-03-06* cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, sendmsg.c: Removed ↵Alexandra Ellwood1-5/+0
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
2002-06-15 * krb524.h: Updated C++ protection to not interfere with emacsTom Yu1-1/+5
auto indentation and added KRB524_PRIVATE macro for Mac OS X to control visibility of function prototypes * krb524.h: Added C++ protection and Mac pragmas * krb524.h, cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, misc.c, sendmsg.c: Updated header paths on Mac OS X so that we correctly include the autogenerated krb524.h * conv_creds.c, cnv_tkt_skey.c: added cast to remove warning. * krb524.h: Updated to new Mac OS header layout. * sendmsg.c: k5-int.h should be included as a local header [pullups from 1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14507 dc483132-0cff-0310-8789-dd5450dbe970
2002-04-11Need port-sockets.h for Win32 (now that using WIN32_LEAN_AND_MEAN)Danilo Almeida1-1/+3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14374 dc483132-0cff-0310-8789-dd5450dbe970
2001-12-05 * krb524d.c (cleanup_and_exit): Call krb5_klog_close()Ezra Peisach1-4/+4
* encode.c (encode_bytes, decode_bytes): Make length field unsigned to clean up unsigned/signed warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14043 dc483132-0cff-0310-8789-dd5450dbe970
2001-04-10make prototypes unconditionalKen Raeburn1-9/+9
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13162 dc483132-0cff-0310-8789-dd5450dbe970
2000-10-17 * encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now takeEzra Peisach1-4/+4
unsigned int * lengths. * krb524d.c (do_connection): Cast length fields in recvfrom() and sendto() calls to int. * sendmsg.c (krb524_sendto_kdc): Cast length fields in recv() and send() calls to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12788 dc483132-0cff-0310-8789-dd5450dbe970
2000-10-06 * krb524d.c (do_connection): Do not assume that sizeof(int) == 4Ezra Peisach1-2/+2
* encode.c (encode_int32, decode_int32): Do not assume sizeof(int) == 4. * conv_creds.c (krb524_convert_creds_kdc): Do not assume sizeof(int) == 4 in network packet. * cnv_tkt_skey.c (krb524int_krb_cr_tkt_int): Ensure that OTW flags is one byte long. An error was introduced when prototypes were widened. * Makefile.in (includes): When testing to see if krb524_err.h exists in the include directory, compare against the build trees version. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12725 dc483132-0cff-0310-8789-dd5450dbe970
2000-07-20* Makefile.in: Make krb524 library and k524init program build onDanilo Almeida1-0/+4
Windows. * krb524.def, libinit.c: Files needed to build on Windows. * k524init.c: Use public krb_in_tkt() with realm paramter instead of potentially private in_tkt() w/o realm parameter (which does not even exist w/o the realm paramter in some krb4 libraries). Use krb_save_credentials() instead of tf_init() then tf_save_credentials() then tf_close(). * cnv_tkt_skey.c: Put copy of krb_cr_tkt_krb5() and krb_create_ticket() as static functions in this file, calling them krb524int_*(). Call these functions instead of the ones in the MIT krb4 library included in the krb5 tree. * conv_princ.c: Remove unused headers. * k524init.c, cnv_tkt_skey.c, conv_creds.c, encode.c, misc.c, sendmsg.c, test.c: Do not include Unix headers on Windows. * sendmsg.c (krb524_sendto_kdc): Fix call to krb5_locate_kdc() to use right number and types of parameters. Use krb5int_accessor() to get at internals: krb5_locate_kdc(), krb5_max_dgram_size, krb5_skdc_timeout_1, and krb5_skdc_timeout_shift. (The latter 3 should probably be #defines...) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12569 dc483132-0cff-0310-8789-dd5450dbe970
1997-12-12 * cnv_tkt_skey.c:Tom Yu1-1/+0
* conv_creds.c: * conv_princ.c: * encode.c: * k524init.c: * krb524d.c: * misc.c: * test.c: Don't include netdb.h or sys/socket.h if krb.h is included; this works around an Ultrix bug where those headers aren't protected against multiple inclusion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10335 dc483132-0cff-0310-8789-dd5450dbe970
1996-08-05* Better support for Athena Kerberos if installedSam Hartman1-9/+9
* Linux shared lib fix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8903 dc483132-0cff-0310-8789-dd5450dbe970
1995-06-29fix the other typoMark Eichin1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6197 dc483132-0cff-0310-8789-dd5450dbe970
1995-06-28 * test.c, k524init.c, getcred.c: rewrote for old style definitiions.Mark Eichin1-9/+9
* encode.c: use PROTOTYPE instead of KRB5_PROTOTYPE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6193 dc483132-0cff-0310-8789-dd5450dbe970
1995-06-28 * encode.c: make declarations use KRB5_PROTOTYPE, and use oldMark Eichin1-16/+36
style definitions, per V5 coding style. Also deleted Makefile (from original code) since it gets stomped by configure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6172 dc483132-0cff-0310-8789-dd5450dbe970
1995-06-27Compiler warning cleanupPaul Park1-2/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6171 dc483132-0cff-0310-8789-dd5450dbe970
1995-06-07test.c (do_remote): Case sockaddr_in * to sockaddr * in callingEzra Peisach1-2/+2
krb524_convert_creds_addr. (krb4_print_ticket): issue_time should be a KRB4_32 encode.c (encode_v4tkt): Cast a the unsigned long mbz field of KTEXT to krb5_int32 for call to encode_int32. conv_creds.c (krb524_convert_creds_addr): Cast sockaddr * to sockaddr_in *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5962 dc483132-0cff-0310-8789-dd5450dbe970
1995-06-06Updated to use autoconf, and to use the new Kerberos library APITheodore Tso1-9/+16
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5952 dc483132-0cff-0310-8789-dd5450dbe970
1995-02-28* README, *.[ch]: Avoid <...> includes for our include filesJohn Gilmore1-2/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5032 dc483132-0cff-0310-8789-dd5450dbe970
1994-09-15Apply new copyright notice to the krb524 sources. (1993, GZA -> 1994 OV)Theodore Tso1-14/+16
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4239 dc483132-0cff-0310-8789-dd5450dbe970
1994-08-18stamp out rcs keywordsMark Eichin1-4/+0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4190 dc483132-0cff-0310-8789-dd5450dbe970
1994-06-15step 3: bcopy->memcpy or memmove (chose by hand), twiddle argsMark Eichin1-2/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3819 dc483132-0cff-0310-8789-dd5450dbe970
1993-09-01Change export warning notice from "is assumed to require an export license"Theodore Tso1-2/+2
to "may require..." git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2638 dc483132-0cff-0310-8789-dd5450dbe970
1993-06-03Initial revisionTheodore Tso1-0/+119
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2611 dc483132-0cff-0310-8789-dd5450dbe970