| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6825 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6824 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6823 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
des_crc.c, des_md5.c, raw_des.c: had a volatile/const mismatch
which needs a cast to resolve.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6822 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
c_localtime.c, c_ustime.c: removed INTERFACE keyword.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6821 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
mismatch and removed unused variables.
md5glue.c: put function prototypes back in.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6820 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
mismatch and removed unused variables.
md4glue.c: put function prototypes back in.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6819 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6818 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
prototype for profile_find_node_name()
prof_init.c (profile_get_first_values): Remove unused variables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6817 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
use sys_nerr, it's an external variable, defined by libc. Under
Windows, it's apparently an cpp macro.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6816 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6815 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
prototype for sscanf. Also add #define for strncasecmp() to the
microsoft's strnicmp() function.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6814 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
construct krb5.h from krb5.hin and the error table header files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6813 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
conflicts with free
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6812 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
and modify that.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6811 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
avoid free'ing a constant later.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6810 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
| |
not install the library.
configure.in: Do not build a shared library - the contents are already
merged into libkrb5. (continue to build shared object files though)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6809 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6808 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
cpw.c: Fix typo in below change in which list was terminated after third
entry. (extra } removed)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6807 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6806 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
or not.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6804 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
without the -h option. Free the context and auth_context structures
before exiting.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6803 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6802 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
Kerberos service name to be used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6801 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
Use SO_REUSEEADDR so that the port can be immediately reused. Free
the context and auth_context before exiting.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6800 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
| |
gss_import_context if the dov2 flag has been set.
(server_establish_context): Make sure the client gss_name_t is
released.
(main): Add a -once option which causes the gss-server to exit after
processing one client. Allows purify to report memory leaks.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6799 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gssapiP_krb5.h: Remove context and cred from the gssapi security
context, as they aren't needed. kg_seal and kg_unseal now take a
krb5_context argument.
ser_sctx.c (kg_ctx_size, kg_ctx_externalize, kg_ctx_internalize): No
longer serialize the context and cred fields of the gssapi security
context.
krb5_gss_glue.c: Don't rely on the context field of the gssapi
security context. Use kg_context instead.
verify.c (krb5_gss_verify, krb5_gss_verify_mic):
unseal.c (krb5_gss_unwrap, krb5_gss_unseal):
sign.c (krb5_gss_sign, krb5_gss_get_mic):
seal.c (krb5_gss_seal, krb5_gss_wrap):
process_context_token.c (krb5_gss_process_context_token):
k5unseal.c (kg_unseal):
k5seal.c (kg_seal_size): Add a krb5_context argument to this function,
so we don't have to depend on the context field in the gssapi
security context.
init_sec_context.c (krb5_gss_init_sec_context): Don't initialize the
context and cred fields in the gssapi security context. Copy
ctx->subkey to ctx->seq.key, so they are separately allocated.
gssapi_krb5.c (kg_get_context): When initialize kg_context, call
krb5_init_ets() so that the error tables are initialized.
export_sec_context.c (krb5_gss_export_sec_context): Don't depend on
the context field from the gssapi security context. Free
ctx->seq.key.
delete_sec_context.c (krb5_gss_delete_sec_context): kg_seal() now
takes a krb5_context argument. Free ctx->seq.key.
acquire_cred.c (krb5_gss_acquire_cred): Clear the gssapi credential
before setting it, to prevent purify from complaining.
accept_sec_context.c (krb5_gss_accept_sec_context): Remove context and
cred from the gssapi security context. Make sure the ticket is freed
after we're done with it.
import_sec_context.c (krb5_gss_import_sec_context): Don't bash the
input interprocess_token. Otherwise, it can't be freed. Don't
depend on the context field in the gss security context.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6798 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
structure may have possible been used be freed..
rd_safe.c (krb5_rd_safe_basic): Fall through to the cleanup code at
the end, to make sure the decoded message in message is freed.
rd_req_dec.c (krb5_rd_req_decoded): Use krb5_copy_keyblock to copy
authent->subkey to auth_context->remote_subkey. Keeping them
separate avoids aliasing problems.
mk_req_ext.c (krb5_generate_authenticator): Fix memory leak. Don't
bash authent->subkey with key after carefully copying it using
krb5_copy_keyblock!
recvauth.c (krb5_recvauth): krb5_get_server_rcache() already opens the
rcache; doing it again merely causes a memory leak.
gen_subkey.c (krb5_generate_subkey): Eliminate memory leak.
krb5_init_random_key() does its own allocation of the
keyblock.
gc_via_tkt.c (krb5_kdcrep2creds): Fix memory leak.
srv_rcache.c (krb5_get_server_rcache): Fix memory leak.
rd_safe.c (krb5_rd_safe_basic): Fix memory leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6797 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
klist.c (main, show_credential): Reimplement the -e option, and
display the encryption used by the session key and of the ticket.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6796 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
more flexible. This should make it possible to run sim_server from a
DejaGnu test suite. Fixed -Wall nits.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6795 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
port name.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6794 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
tuples to be added. (Once proven's DES_* folding code is implemented,
we can shorten this list.) Eventually, this list should be read in
from kdc.conf.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6793 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
kerbsrc.zip rule.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6792 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
| |
in calling this program. Worked around breakage in the Solaris
Streams Sockets emulation where getsockname() can not be used to find
out the address of a network interface.
configure.in: If we are including both -lsocket and -lnsl, #define
BROKEN_STREAMS_SOCKETS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6791 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
key/salt list. (Typo; added missing '!')
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6790 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
cleanup_and_exit so it does get freed, since it is allocated
before parsing arguments.
(main): change caller as well.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6789 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
| |
* kprop.h (KPROP_SRVTAB, KPROP_DEFAULT_FILE, KPROPD_DEFAULT_FILE,
KPROPD_DEFAULT_KDB5_EDIT, KPROPD_DEFAULT_KRB_DB, KPROPD_ACL_FILE):
removed configurable pathnames, they are now in osconf.h (which
gets included here via k5-int.h).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6788 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
| |
* osconf.h (KPROP_DEFAULT_FILE, KPROPD_DEFAULT_FILE,
KPROPD_DEFAULT_KDB5_EDIT, KPROPD_DEFAULT_KRB_DB): set defaults
correctly for kprop/kpropd in respect to prefix.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6787 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
| |
from key_encrypt_keys().
(key_string2key_keysalt and key_randomkey_keysalt): Install really
ugly hack to prevent these routines from munging the master_encblock.
This is not the correct fix. Proven will be making the correct fix
which will involve removing these routines and using the corect
libkdb functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6786 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
construction, in spite of not having exception handling in the language.
* krb5_decode.c (clean_krb5_authenticator, clean_krb5_ticket,
clean_krb5_enc_tkt_part,clean_krb5_ap_req,
clean_krb5_ap_rep_enc_part, clean_krb5_safe,
clean_krb5_priv_enc_part, clean_krb5_cred_enc_part,
clean_krb5_error): new static functions to free objects that may
be partially constructed.
(setup_buf_only, setup_no_tagnum, setup_no_length, setup): define
in terms of each other to remove duplication, then add local
variable error_cleanup to common declarations.
(clean_return): new macro, uses error_cleanup on rep if possible
and the allows the argument to be returned.
(alloc_field, check_apptag, next_tag, begin_structure,
get_field_body, get_field, get_lenfield_body, get_lenfield): use
clean_return.
(free_field): new macro to simplify the writing of clean_*.
(clear_field): macro to clean up preparation of fields for later
use by clean_* functions.
(decode_krb5_authenticator, decode_krb5_ticket,
decode_krb5_encryption_key, decode_krb5_enc_tkt_part,
decode_krb5_enc_kdc_rep_part, decode_krb5_as_rep,
decode_krb5_tgs_rep, decode_krb5_ap_req, decode_krb5_ap_rep,
decode_krb5_ap_rep_enc_part, decode_krb5_as_req,
decode_krb5_tgs_req, decode_krb5_kdc_req_body, decode_krb5_safe,
decode_krb5_priv, decode_krb5_enc_priv_part, decode_krb5_cred,
decode_krb5_enc_cred_part, decode_krb5_error,
decode_krb5_authdata, decode_krb5_pwd_sequence,
decode_krb5_pwd_data, decode_krb5_padata_sequence,
decode_krb5_alt_method, decode_krb5_etype_info): change setup
macro to pass a cleanup method (or just free if there were no
partial allocations, or 0 for the two cases with no allocation at
all.) Also explicitly zero pointer subfields, since calloc is not
a safe way to assure that. Generally, provide for automatic
deallocation of storage on error.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6785 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
| |
in the keytype of the key!!! Removed erroneous krb5_use_enctype()
call.
Fixed -Wall flames all over the file.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6784 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
|
| |
creating the various TGT keys. Otherwise, the keys end up getting
encrypted using the wrong encryption algorithm. Initialize a new
encblock, random_encblock, from the master key password.
(main): Prompt for the master key password ourselves, and store it
away so that it can be used by tgt_keysalt_iterate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6783 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
purify happy.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6782 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6781 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
"profile" parameter from the kdc.conf file. This is bad idea,
architecturally.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6780 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6779 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
|
|
|
| |
encblock's crypto system using krb5_use_enctype() from the stored
keytype of the master key.
decrypt_key.c (krb5_dbekd_decrypt_key_data): Remove the encryption
type; the master_encblock should always be set correctly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6778 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
|
| |
of environment setup scripts. These are the convenience of someone
who wishes to run some of the tests by hand, when tests are bombing.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6777 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
| |
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6776 dc483132-0cff-0310-8789-dd5450dbe970
|
|
|
|
|
|
| |
is >= 1, not just > 1.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6775 dc483132-0cff-0310-8789-dd5450dbe970
|