Commit Graph

2304 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
6e10f776c4 (log_realloc): increase len after realloc returns sucessfully
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 23:56:14 +00:00
Love Hörnquist Åstrand
8f56b409d0 fix another int vs krb5_error_code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:12:08 +00:00
Love Hörnquist Åstrand
c82cfd62b2 fix prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12825 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:04:43 +00:00
Love Hörnquist Åstrand
5d190295aa add context argument to krb5_get_init_creds_opt_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
96273416f9 (krb5_get_init_creds_opt_alloc): add context argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:25:02 +00:00
Love Hörnquist Åstrand
8cec741ab3 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12781 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:23:49 +00:00
Love Hörnquist Åstrand
672fd697ee (add_file): make len argument an pointer to an integer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 18:15:45 +00:00
Johan Danielsson
6a621def0e document appdefaults/{forward,encrypt}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 14:30:04 +00:00
Love Hörnquist Åstrand
646ee1b761 break out the encrypt timestamp preauth to its function
break out the pa_data_to_key_plain to its own function
make more variables const


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12766 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 05:30:48 +00:00
Love Hörnquist Åstrand
e44d866589 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 01:14:12 +00:00
Love Hörnquist Åstrand
3cd7e6c162 Add key usage for encryption of the SAM-NONCE-OR-SAD field.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:53:25 +00:00
Love Hörnquist Åstrand
eac04f34dc assume session key is a char array of length 8
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:11:07 +00:00
Love Hörnquist Åstrand
54fc57ccb5 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:37:03 +00:00
Love Hörnquist Åstrand
33efaf1f26 switch from the des_ to the DES_ api
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:29:36 +00:00
Love Hörnquist Åstrand
61e14619de use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:31:42 +00:00
Love Hörnquist Åstrand
0d372b0a5b fix [Gt]
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:13:07 +00:00
Love Hörnquist Åstrand
eb2c032414 (krb5_get_init_creds_password): handle password passed in though context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:41:34 +00:00
Love Hörnquist Åstrand
90b82c4533 (TESTS): += test_config
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12731 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:21:23 +00:00
Love Hörnquist Åstrand
1752eb97e0 move variable thats used within a #ifdef to be defined within that #ifdef
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12730 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:20:46 +00:00
Love Hörnquist Åstrand
9582b9fe1a (krb5_data_free): reset whole krb5_data when freeing it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:19:17 +00:00
Love Hörnquist Åstrand
70efc47aa7 (krb5_keyblock_zero): new function, zeros out a keyblock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:17:59 +00:00
Love Hörnquist Åstrand
aa3701f551 rewrite/implement krb5_get_init_creds_password with new preauth
handing, still it can only work with krb5-pa-enc-timestamp for
preauth, but now it can handle etype-info2


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:17:08 +00:00
Love Hörnquist Åstrand
ca9d0c8062 (krb5_get_init_creds_opt_alloc): allocate a opt structure
(krb5_get_init_creds_opt_free): free a opt structure
(krb5_get_init_creds_opt_set_pa_password): set preauth info for enc-timestamp


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:12:54 +00:00
Love Hörnquist Åstrand
3400abc1ef add struct _krb5_get_init_creds_opt_private
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:11:17 +00:00
Love Hörnquist Åstrand
24b09630d3 add SAM keyusage numbers
add s2k proc typedef
add a pointer to a private part of krb5_get_init_creds_opt


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12723 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 20:51:48 +00:00
Love Hörnquist Åstrand
a3af14abf9 (krb5_ticket_get_authorization_data_type): reindent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12711 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 19:32:57 +00:00
Love Hörnquist Åstrand
0c533c290e fix spelling in last commit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12710 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 14:51:06 +00:00
Love Hörnquist Åstrand
af371af07a (krb5_copy_ticket): free all data when failing, copy data to right
memory, the later pointed out by Luke Howard.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12709 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 02:05:31 +00:00
Love Hörnquist Åstrand
b28bc0ec58 cfx-01 use diffrent usage numbers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-30 13:45:21 +00:00
Love Hörnquist Åstrand
ea0b1265fa add KEYTYPE_ARCFOUR_56
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 07:52:23 +00:00
Love Hörnquist Åstrand
9ecd1c0860 CFX uses slightly diffrent usage numbers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-26 17:26:40 +00:00
Love Hörnquist Åstrand
1e1f234862 (usage2arcfour): simplify, only include special cases
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12644 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 22:38:33 +00:00
Love Hörnquist Åstrand
61413db01f (arcfour_checksum_p): return true when is arcfour, not when its not
pointed out by Luke Howard


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 11:09:19 +00:00
Love Hörnquist Åstrand
2ff6bd0665 document: krb5_crypto_getconfoundersize, krb5_crypto_getblocksize
krb5_crypto_getenctype, krb5_crypto_getpadsize


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12622 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-24 03:40:33 +00:00
Love Hörnquist Åstrand
d250fe4e0c (krb5_crypto_getpadsize, krb5_crypto_getconfoundersize): added
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12621 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-24 03:32:48 +00:00
Love Hörnquist Åstrand
28a86465f4 text about when krb5_crypto_get_checksum_type is useful
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12615 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:49:38 +00:00
Love Hörnquist Åstrand
7df97da057 document krb5_crypto_get_checksum_type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:37:17 +00:00
Love Hörnquist Åstrand
71bc13390a (krb5_crypto_get_checksum_type): fix format string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12613 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:36:00 +00:00
Love Hörnquist Åstrand
2eaeba1f93 add krb5_crypto_get_checksum_type
From: Luke Howard <lukeh@PADL


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:33:53 +00:00
Love Hörnquist Åstrand
7c8f875744 XXX don't use "plain" pthread support on netbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12605 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-20 20:11:58 +00:00
Love Hörnquist Åstrand
c2680f2373 Do the arcfour checksum mapping for krb5_create_checksum and
krb5_verify_checksum, From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-20 15:09:39 +00:00
Love Hörnquist Åstrand
027455cbf0 check krb5_prepend_config_files_default and krb5_prepend_config_files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12584 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-18 05:14:38 +00:00
Love Hörnquist Åstrand
bec7df49db add krb5_prepend_config_files and krb5_prepend_config_files_default
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-18 05:09:05 +00:00
Love Hörnquist Åstrand
97a9cc6936 please lint (and me)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12571 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:22:22 +00:00
Love Hörnquist Åstrand
3b71428beb these function will be deprecated
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12566 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 16:27:15 +00:00
Love Hörnquist Åstrand
e29f5d55cd man_MANS += krb5_get_init_creds.3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 16:23:17 +00:00
Love Hörnquist Åstrand
d7d3939e93 begining of documentation of krb5_get_init_creds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12563 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 16:21:36 +00:00
Love Hörnquist Åstrand
bc32f47208 (krb5_get_in_tkt): for compatibility with with the mit implemtation,
don't free `creds' argument when done, its up the the caller to do
that, also allow a NULL ccache.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12561 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 15:52:01 +00:00
Love Hörnquist Åstrand
3ee67f793f document tgs_require_subkey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12559 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 20:00:28 +00:00
Love Hörnquist Åstrand
1a22071676 (init_tgs_req): make generation of subkey optional on configuration parameter
[realms]realm={tgs_require_subkey=bool}
defaults to off. The RFC1510 weakly defines the correct behavior,
so old DCE secd apparently required the subkey to be there, and MS will
use it when its there. But the request isn't encrypted in the subkey,
so you get to choose if you want to talk to a MS mdc or a old DCE secd.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 16:25:14 +00:00