| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
cache, and verified to be positive, put into unsigned int
variable for passing to other functions that expect such.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13638 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13637 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
krb5_pointer to krb5_const_pointer to ensure const integrity of
parameter.
* in_tkt_ktb.c (keytab_keyproc): Add const argument to cast of
keyseed to struct keytab_keyproc_arg to maintain const status.
* conv_princ.c (krb5_524_conv_principal): Cast argument to
memcpy to size_t.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13636 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
asn1_encode_charstring() instead of asn1_decode_octetstring()
for krb5_data. (signed vs. unsigned)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13635 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
* def_realm.c:
krb5_get_default_realm() required a profile file
even when KRB5_DNS_LOOKUP was defined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13634 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13621 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* clnt.h: CLIENT cl_private structure element changed to type void *.
* svc.h: SVCXRPT elements xp_p1 and xp_p2 changed to void * from
caddr_t.
* svc_udp.c: su_cache element of svcudp_data from caddr_t to void *.
* clnt_tcp.c, svc_tcp.c (writetcp, readtcp): Cleanup alignment
warning in casts.
* types.hin (mem_alloc): Do not cast type of malloc to char *.
* xdr.h: Change type of x_private of XDR from caddr_t to void *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13620 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
(FAI_PREFIX): Define macro.
(krb5_os_hostaddr): Use getaddrinfo, to get ipv6 support and thread safety.
Support numeric addresses as well.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13617 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
* t_locate_kdc.c: New file.
* Makefile.in (t_locate_kdc.o, t_locate_kdc): New targets.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13614 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
| |
(FAI_PREFIX, FAI_IMPLEMENTATION): Define macros.
(get_port, add_sockaddr_to_list, add_host_to_list): Drop
gethostbyname/getservbyname support, always use getnameinfo, which should be
thread-safe.
(translate_ai_error, set_port_num): Now always defined.
(set_port_num): Only check for AF_INET6 if KRB5_USE_INET6.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13613 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13607 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(longReverse): Resurrected function long since deleted from shs.c.
* Makefile.in (check-unix, check-windows): Use t_shs3 test.
(clean): Delete it.
* shs.c (SHSTransform): Make input data pointer point to const.
(SHSUpdate): Bugfixes suggested by Marcus Watts, to fix buffer overruns, bugs
with small or odd block sizes.
[mostly pr krb5-libs/626]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13605 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13596 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
| |
xdr_array.c, xdr_reference.c : Include string.h for memset and
memcmp prototypes.
* auth_gssapi.c, auth_gssapi_misc.c, svc_auth_gssapi.c: Cast
argment to PRINTF to match format.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13595 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13594 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
* pos-obsolete.h: Add for obsolete functions until they can be
removed from the library. Contains setenv functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13592 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
(klog_com_err_proc): Do not discard const status of format
string.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13591 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
* krb4int.h: Add fgetst prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13588 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
krb5_copy_key_data_contents.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13587 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13586 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
| |
FD_ZERO it.
* rpc_commondata.c: Do not assume what the structure of an
fd_set looks like. Add variable gssrpc_svc_fdset_init to
determine if initialized.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13585 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13584 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
* hst_realm.c (krb5_get_host_realm): Cast argument to toupper and
tolower to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13576 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13575 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
* Makefile.in (LOCALINCLUDES): Add -I$(srcdir)/../os so os-proto.h
can be included.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13574 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13569 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
SHS_LONG to avoid problem with LONG being signed on Windows.
Rename BYTE to SHS_BYTE to avoid any name colisions with Windows
(where BYTE and LONG are types defined in the Platform SDK).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13568 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13566 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
getgroups.
* auth_unix.c (authunix_create_default): Use GETGROUPS_T array in
call to getgroups. Copy into array of int for call to
authunix_create. Note: If auth_unix protection ever used with this
code, we will need to cleanup assumptions in int being 32 bits in
OTW transfer of gids.
* clnt_tcp.c, svc_tcp.c: Change writetcp and readtcp to take char
* as first argument to be compatible with xdrrec_create.
* xdr.c (xdr_opaque): Cast argument in call to XDR_GETBYTES.
* svc.h: Add prototype for gssrpc_svcudp_enablecache.
* svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Change
_svcauth_gssapi to _gssrpc_svcauth_gssapi for consistancy.
* svc_auth.c: Move prototypes for _gssrpc_svcauth_{unix, null,
short, gssapi} to:
* svc_auth.h: here.
* svc_auth_unix.c: Update _gssrpc_svcauth_short and
_gssrpc_svcauth_unix to match prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13563 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13557 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13556 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rpc_test_prog_1_svc.
* rpc_test.h: Create prototypes for rpc_test_echo_1_svc and
rpc_test_prog_1_svc.
* server.c: Declare usage and handlesig static. Change
rpc_test_echo_1 to rpc_test_echo_1_svc and rpc_test_prog_1 to
rpc_test_prog_1_svc.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13547 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
| |
that trailing separator characters (as in the DEFAULT_ETYPE_LIST)
don't cause another iteration, which was causing the following
loop to fall off the end of the string due to count being one too
great.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13532 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13529 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* auth_gssapi.h: Complete prototypes for
_svcauth_gssapi_unset_names().
* clnt.h: Prototype dispatch functions and all functions.
* clnt_perror.c: Prototype static auth_errmsg().
* clnt_raw.h clnt_tcp.c, clnt_udp.c: Provide prototypes to static
functions and match dispatch table prototypes. control function
takes void * instead of caddr_t.
* pmap_rmt.c: Move prototype for resultproc_t to pmap_clnt.h.
* rpc.h: get_myaddress returns int. Add prototypes for callrpc and
getrpcport.
* rpc_commondata.c (rpc_createerr): When initializing rpc_creaerr
use RPC_SUCCESS instead of 0.
* get_myaddress.c, rpc_dtablesize.c: Include gssrpc/rpc.h for
prototype.
* pmap_clnt.h, pmap_prot.h, pmap_rmt.h, rpc_msg.h: Full prototypes
for all functions.
* svc.c: Provide full prototype for static function.
* svc.h: Prototypes for dispatch functions added. Flushed out
prototypes for all functions missing prototypes. Added prototype
for svcfd_create.
* svc_auth.c: Prototypes for all functions referenced.
* svc_auth.h: Prototype dispatch functions to svc_auth_ops.
* svc_auth_any.c: Replace use of authany_wrap() with a new local
function that matches svc_auth_ops dispatch table.
* svc_simple.c: Provide prototype for static function
universal. Fill in missing types of parameters to
gssrpc_registerrpc.
* svc_raw.c svc_tcp.c, svc_udp.c: Provide prototypes for static
functions and match prototypes in dispatch table. Change getargs
and freeargs argument to void * from caddr_t.
* xdr.c (xdr_void): Function to match prototype of arguments given.
* xdr.h: Provide full prototypes for xdr_ops dispatch table and
xdr_void().
* svc_auth_gssapi.c, xdr_alloc.c, xdr_mem.c, xdr_rec.c,
xdr_stdio.c: Provide protypes for static functions and match
dispatch tables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13528 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
krb_set_default_user if _WINDOWS is not defined. There is a
conditional prototype in krb.h for them.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13527 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* auth_unix.h: Expand prototype for xdr_authunix_params to include
arguments.
* auth_gssapi.h: Give full prototypes for xdr_gss_buf,
xdr_authgssapi_creds, xdr_authgssapi_init_arg and
xdr_authgssapi_init_res.
* auth_gssapi.c, auth_none.c, auth_unix.c: For struct AUTH
disptach functions, provide full prototypes and ensure consistant
usage in functions
* auth.h: Provide prototypes dispatch functions in struct
AUTH. Give a forward declaration of struct rpc_msg. Change
duplicate definitions of AUTH_WRAP and AUTH_UNWRAP into auth_wrap
and auth_unwrap. Give full prototype for authany_wrap.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13521 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13518 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
krb_svc_init_preauth, krb_get_svc_in_tkt_preauth, kset_logfile,
krb_log, krb_set_logfile, krb_set_lifetime, month_sname,
krb_rd_preauth, krb_net_rd_preauth, krb_net_rd_sendauth,
krb_stime, krb_start_session, krb_end_session,
krb_get_default_user, krb_set_default_user.
* ad_print.c, g_svc_in_tkt.c, klog.c, log.c, mk_req.c,
month_sname.c, rd_preauth.c, sendauth.c, stime.c, unix_glue.c:
Include krb4int.h for prototypes.
* decomp_tkt.c: Include krb54proto.h for decomp_tkt_krb5()
prototype.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13517 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
added oids from rfc 2744. Kept old oids for compatibility.
[pullup of lxs's changes]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13515 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
krb5 prototypes are declarted from krb.hkrb__get_cnffile() and
krb5 prototypes are declarted from krb.hk_gethostname().
* g_pw_in_tkt.c: Declare passwd_to_key() static.
* cr_tkt.c: Move krb5.h inclusion before krb.h so that certain
krb5 prototypes are declarted from krb.h.
* g_admhost.c, g_cnffile.c, g_krbhst.c, g_krbrlm.c,
gethostname.c
krb5 prototypes are declarted from krb.hrealmofhost.c:
Include krb4int.h and remove prototypes included in there.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13512 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
for extra separator characters (like spaces) between keysalts.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13507 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
shadow filewide static definition of name.
Move file wide definition of "pl" into respective functions.
* pmap_rmt.c: Change sin->sockin and socket->sock.
* pmap_getmaps.c, pmap_getport.c: Change socket to sock to not
shadow network function.
* bindresvport.c, clnt_generic.c: Change sin to sockin to not
shadow function declaration.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13486 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
shadow local variable ptr.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13484 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
last change.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13483 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* util_crypt.c (kg_encrypt, kg_decrypt): Use free() instead of
krb5_free_data_contents().
* util_cksum.c (kg_checksum_channel_bindings): Make sure that
returned memory is allocated with xmalloc() so that caller can use
xfree() on it.
* k5unseal.c (kg_unseal_v1): Use krb5_free_data_contents()
instead of xfree().
* k5seal.c (make_seal_token_v1): Use krb5_free_data_contents()
instead of xfree().
* init_sec_context.c (make_ap_req_v1): Use xfree() instead of
free() to be consistent with xmalloc() usage. Use
krb5_free_data_contents() instead of xfree().
* disp_name.c (krb5_gss_display_name): Use
krb5_free_unparsed_name() instead of xfree().
* add_cred.c (krb5_gss_add_cred): Use xfree() instead of free() to
be consistent with xmalloc() usage.
* accept_sec_context.c (krb5_gss_accept_sec_context): Remove
variables that were effectively unused. Use
krb5_free_data_contents() instead of xfree() where appropriate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13482 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13480 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13479 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13478 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
(convert): Do bounds checking on character values used as indices into value
array.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13477 dc483132-0cff-0310-8789-dd5450dbe970
|