Commit Graph

70 Commits

Author SHA1 Message Date
Assar Westerlund
801efeb83e removed old comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4001 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-16 01:52:36 +00:00
Johan Danielsson
b7ebe1debf Rename krb5_free_keyblock to krb5_free_keyblock_contents.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3917 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 01:52:46 +00:00
Johan Danielsson
b39dc81ca1 Make options parameter MIT-compatible.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3886 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-10 21:47:51 +00:00
Assar Westerlund
c145f0f8e4 const and char cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3699 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:30:15 +00:00
Johan Danielsson
d659d5b10a use correct etype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3585 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 15:18:52 +00:00
Johan Danielsson
1e000dca69 Fix a lot of etype/keytype misuse.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3529 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-22 18:05:07 +00:00
Johan Danielsson
7e533905be (_krb5_extract_ticket): add allow_server_mismatch flag to not check
for correct server in the reply


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3459 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-10 19:19:06 +00:00
Assar Westerlund
d836b622df (krb5_get_in_cred): be more careful when checking for a v4 reply
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3379 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-04 02:44:22 +00:00
Assar Westerlund
cc604a140d extract_ticket -> _krb5_extract_ticket
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3277 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-29 02:36:31 +00:00
Johan Danielsson
1ac1ca1c73 Check for v4 reply.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3209 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-28 00:01:46 +00:00
Assar Westerlund
3e09188f0a (krb5_get_in_cred): don't print out krb-error text
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3118 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-24 10:39:13 +00:00
Johan Danielsson
b4d0fa1d4c Mask nonce to 32 bits. Fix some type conflicts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3094 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-24 04:34:46 +00:00
Johan Danielsson
502aa1fc08 kvno for encrypt_EncryptedData
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3074 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-21 18:45:44 +00:00
Assar Westerlund
16354b8a06 use krb5_config_get_bool
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3000 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-15 07:03:35 +00:00
Johan Danielsson
61717cbfd4 kdc-req-body->till is optional.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2989 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-15 01:47:32 +00:00
Assar Westerlund
687c4ac22e (make_pa_enc_timestamp): put usec correctly(?)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2937 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-12 01:04:47 +00:00
Assar Westerlund
c7d9ab7ff1 implement KDC time offset and use it if [libdefaults]kdc_timesync is
set.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2924 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-11 23:33:29 +00:00
Assar Westerlund
e9db47da39 leave stupid check
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2857 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-09 01:14:21 +00:00
Assar Westerlund
a96e0546d8 reorganize. check everything and try to return memory even if there
are errors.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2805 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 06:43:41 +00:00
Assar Westerlund
a90b984c3a (extract_ticket): don't copy over the principals in creds. Should
also compare them with that received from the KDC


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2791 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 03:52:32 +00:00
Assar Westerlund
e15128e29e updated to new krb5_free_creds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2732 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-07 20:22:22 +00:00
Assar Westerlund
7023efa525 (krb5_get_in_cred): new function that is almost krb5_get_in_tkt but
doesn't write the creds to the ccache.
Small fixes in krb5_get_in_tkt


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2705 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-05 20:54:40 +00:00
Assar Westerlund
c8234b481f Set `ret_as_reply' if != NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2681 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-01 15:30:24 +00:00
Johan Danielsson
212e851c8a Use krb5_rd_error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2648 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-27 09:54:35 +00:00
Assar Westerlund
99c434bf0d (krb5_get_in_tkt): interpret the error number in KRB-ERROR
correctly.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2590 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-24 07:20:49 +00:00
Assar Westerlund
012dd50832 free more and do etype correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2568 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 23:53:39 +00:00
Assar Westerlund
11002524c7 removed old garbage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2550 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 05:56:01 +00:00
Johan Danielsson
8dab436414 Pass addresses to extract_ticket.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2509 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 02:00:52 +00:00
Assar Westerlund
8c583bb4b2 don't free two times
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2500 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-20 14:32:08 +00:00
Johan Danielsson
94cbc8ee82 Pass both version5 and version4 salted pa-data. DTRT if there is any
pa-data in the reply.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2471 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 07:59:01 +00:00
Johan Danielsson
f332bca6ac Pass starttime and renew_till in request (a bit kludgy).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2413 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-17 22:57:59 +00:00
Johan Danielsson
5a32a5c8e7 Add copyright notice.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 21:40:05 +00:00
Assar Westerlund
5e0a2a6d3b (krb5_get_in_tkt): only print error text is there's one
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2359 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 03:11:47 +00:00
Johan Danielsson
884b9012ab Remove non ASN.1 principal code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2354 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 01:37:19 +00:00
Assar Westerlund
23b81dac0e implement `krb5_init_etype'
Change encryption type of pa_enc_timestamp to DES-CBC-MD5


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2336 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 01:14:05 +00:00
Assar Westerlund
e625c638fc better freeing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2234 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-13 01:12:52 +00:00
Assar Westerlund
6128501123 generate a random nonce.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2209 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 20:50:30 +00:00
Johan Danielsson
01c77fa849 Save addresses and flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2168 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 13:03:42 +00:00
Johan Danielsson
f5d5c1433e Use union of krb5_flags and KDCOptions to pass options.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2163 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-11 22:56:47 +00:00
Assar Westerlund
243bc8701e updated to new type of krb5_address-s
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2053 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-08 23:19:01 +00:00
Assar Westerlund
b0c9ece231 int len -> size_t len
fixed calls to `krb5_{en,de}crypt'


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2023 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-07 09:53:00 +00:00
Johan Danielsson
405d2be7c4 Update to use new decode/encode syntax.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1952 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-01 23:54:55 +00:00
Assar Westerlund
2ad8feff73 comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1908 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-15 15:21:05 +00:00
Johan Danielsson
50900e67c9 Rename contents to keyvalue.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1888 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-10 14:20:42 +00:00
Assar Westerlund
99584ca3f4 Do PA-ENC-TS-ENC the correct way.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1862 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-08 05:43:28 +00:00
Assar Westerlund
a5fa5c3487 initialize creds->second_ticket.data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1854 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-07 19:00:09 +00:00
Assar Westerlund
38d0b3ba6a redone to enable pre-authentication
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1814 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 21:21:50 +00:00
Assar Westerlund
f796a23684 (get_in_tkt): be prepared to parse an KRB_ERROR. Some support for
PA_ENC_TS_ENC.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1805 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 14:36:33 +00:00
Assar Westerlund
78a47a6b91 updated krb5_free_principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1443 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-16 17:18:56 +00:00
Johan Danielsson
378bcc8ac0 Fix some memory leaks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1424 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-14 06:48:46 +00:00