Commit Graph

7507 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
a0f68f2640 (length_type): cast size_t argument to unsigned long and use
appropriate printf format


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15669 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 18:01:59 +00:00
Love Hörnquist Åstrand
111eda69f8 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 15:09:32 +00:00
Love Hörnquist Åstrand
5940c92087 (check_fail_bitstring): check for length overflow
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 15:09:18 +00:00
Love Hörnquist Åstrand
352e621dd6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 15:08:38 +00:00
Love Hörnquist Åstrand
0f15be4a2d rewrite integer overflow tests w/o SIZE_T_MAX
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15662 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 15:08:18 +00:00
Love Hörnquist Åstrand
eaaf5d23fd (generic_decode_fail): only copy in if checklen its less then 0xffffff
and larger than 0.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15661 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 15:07:25 +00:00
Love Hörnquist Åstrand
0a52623725 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15660 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 14:21:43 +00:00
Love Hörnquist Åstrand
c77f5c2515 (find_tag): find external references, we can't handle those, so tell
user that instead of crashing


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 14:21:28 +00:00
Love Hörnquist Åstrand
c2f3dcf61d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15658 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 14:18:55 +00:00
Love Hörnquist Åstrand
42c8e8f966 (free_heim_any_set): Fix return.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15657 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 14:18:39 +00:00
Love Hörnquist Åstrand
a42c7b8b15 (find_tag): Fix return in TType case.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15656 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 14:16:25 +00:00
Love Hörnquist Åstrand
22ca9e3e4a Check encoder lengths from ASN1_MALLOC_ENCODE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-14 10:12:51 +00:00
Love Hörnquist Åstrand
ca2802aba8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 10:40:36 +00:00
Love Hörnquist Åstrand
ab69af8c30 (TChoice): add () to make sure variable expression is evaluated correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 10:40:23 +00:00
Love Hörnquist Åstrand
d9eb674e71 (krb5_rd_cred): don't leak memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15643 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 08:22:50 +00:00
Love Hörnquist Åstrand
7712e99eb3 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15641 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 07:58:49 +00:00
Love Hörnquist Åstrand
c079388c13 (nl_getlist): poll to get messages from kernel, and retry if the
message was lost
(free_nlmsglist): free all linked elements, not just the first one


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15640 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 07:58:36 +00:00
Love Hörnquist Åstrand
0f1c19edb9 (krb5_get_credentials_with_flags): only call krb5_cc_retrieve_cred
once, and plug memory leak.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15639 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 07:38:02 +00:00
Love Hörnquist Åstrand
b8703f6d40 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15638 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 07:00:34 +00:00
Love Hörnquist Åstrand
33f176705d (spnego_initial): NegotiationToken encoder now that we have one with
the new asn1. compiler.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15637 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 07:00:15 +00:00
Love Hörnquist Åstrand
50215461bc the new asn.1 compiler includes the modules name in the depend file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15636 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 06:55:28 +00:00
Love Hörnquist Åstrand
a6c240e6aa x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15635 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 06:54:33 +00:00
Love Hörnquist Åstrand
237641e2ca update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 06:08:07 +00:00
Love Hörnquist Åstrand
e101a6175e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15633 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 05:34:47 +00:00
Love Hörnquist Åstrand
f1542ef9cd (fkt_start_seq_get_int): check return value from krb5_storage_from_fd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15632 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 05:34:29 +00:00
Love Hörnquist Åstrand
1b5061371c reapply 1.43 that got lost in the merge: rename pvno to krb5-pvno
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15631 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 05:29:49 +00:00
Love Hörnquist Åstrand
88be64c770 (pk_rd_pa_reply_dh): client do not contribute to the DH when the
server doesn't support the cached DH request.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 22:31:22 +00:00
Love Hörnquist Åstrand
cba53a17f2 (_krb5_pk_octetstring2key): fix arguments
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15628 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 22:29:52 +00:00
Love Hörnquist Åstrand
d79bcbb3a6 (decode_type): TChoice: set the label
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 18:08:38 +00:00
Love Hörnquist Åstrand
b49d932283 (cmp_Name): do at least some checking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15626 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 18:05:29 +00:00
Love Hörnquist Åstrand
23dae960cd clean up pk-init DH support, not finished yet;
improve error reporting


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15623 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 13:39:51 +00:00
Love Hörnquist Åstrand
a70cf1c3a6 (_krb5_pk_octetstring2key): string2key function used in pk-init-25
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15622 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 13:34:47 +00:00
Love Hörnquist Åstrand
b838707d0e Commit much improved ASN.1 compiler from joda-choice-branch.
Highlighs for the compiler is support for CHOICE and in general better
support for tags. This compiler support most of what is needed for
PK-INIT, LDAP, X.509, PKCS-12 and many other protocols.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 06:27:42 +00:00
Love Hörnquist Åstrand
d013b896d9 heim_any
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15615 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-10 05:13:52 +00:00
Love Hörnquist Åstrand
53ac3a20b2 make scope variables unique to avoid shadow warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-10 05:13:09 +00:00
Love Hörnquist Åstrand
85b3e3de27 comment out paramenter name in typedef functions to avoid shadow warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15608 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 14:47:21 +00:00
Love Hörnquist Åstrand
117dcc115a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 14:42:05 +00:00
Love Hörnquist Åstrand
faaa2e6d98 remove parameter names to avoid shadow warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 14:41:47 +00:00
Love Hörnquist Åstrand
3283e2cb08 make input data to krb5_encrypt{,_ivec} const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 12:33:36 +00:00
Love Hörnquist Åstrand
5fdbeb4408 (TESTS): add test_crypto_wrapping
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15599 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 01:36:25 +00:00
Love Hörnquist Åstrand
1f25cc530f (wrapped_length): the underived encrypted types checksum are all
unkeyed (matches the code in encrypt_internal() and
encrypt_internal_special())


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15598 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 01:35:31 +00:00
Love Hörnquist Åstrand
ce99b902fb ETYPE_ARCFOUR_HMAC_MD5_56 isn't not supported
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15597 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 01:31:43 +00:00
Love Hörnquist Åstrand
09d3315e85 test encryption wrapping
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-08 22:27:41 +00:00
Love Hörnquist Åstrand
c69ac762f9 (time_encryption): free cleartext buffer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15595 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-08 22:17:33 +00:00
Love Hörnquist Åstrand
f5b60dd355 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15591 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-08 04:55:12 +00:00
Love Hörnquist Åstrand
cd4b0519ab Check a very simple format string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-08 04:54:26 +00:00
Love Hörnquist Åstrand
7cb5f5ba32 revert previous until I've have cleaned libvers mess
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15589 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-07 22:11:00 +00:00
Love Hörnquist Åstrand
143fc05055 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-07 20:56:59 +00:00
Love Hörnquist Åstrand
0ecc47dc71 (TTYinfo): only call tgetent if we found it using autoconf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-07 20:55:18 +00:00
Love Hörnquist Åstrand
421d2b645f don't include <version.h>, it forces unnecessary rebuilds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-07 20:48:57 +00:00