Commit Graph

22645 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
58227c2f5f negative flags defaults to on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 11:11:58 +00:00
Love Hörnquist Åstrand
9b79cebe84 add --no-delete flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 11:11:49 +00:00
Love Hörnquist Åstrand
cf5743dd42 add --no-delete flags
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 11:11:43 +00:00
Love Hörnquist Åstrand
810f4208da pass down HDB_F_CANON to hdb_fetch for tgs req too, use the server name in the request.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 11:11:34 +00:00
Love Hörnquist Åstrand
d4c13b3b3b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 11:11:24 +00:00
Love Hörnquist Åstrand
227aca963e Avoid dns canonlisation for hosts, until we know what client credential we are going to use, and when we know that, lets check if the user really want to use canonlision, XXX should be able to configure per target realm too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23678 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:34:24 +00:00
Love Hörnquist Åstrand
ab4ce491b0 test use referrals
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23677 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:34:11 +00:00
Love Hörnquist Åstrand
5ec36048aa allow setting referrals flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23676 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:33:55 +00:00
Love Hörnquist Åstrand
1bf4289d86 Check return value of gethostname() and truncate string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23675 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:33:28 +00:00
Love Hörnquist Åstrand
3a00ceaf3d krb5_sname_to_principal gets the hostname if we tell is host = NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23674 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:33:08 +00:00
Love Hörnquist Åstrand
1106480143 output buffer always set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23673 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:32:55 +00:00
Love Hörnquist Åstrand
59171e8164 minor status must be set.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23672 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:32:43 +00:00
Love Hörnquist Åstrand
d1c07ab2a1 catch return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23671 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:32:30 +00:00
Love Hörnquist Åstrand
85028c43c9 deprecate keytype functions, catch return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23670 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:32:16 +00:00
Love Hörnquist Åstrand
4d1a05fb4b Drop this keytype code, there is only enctypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23669 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:32:03 +00:00
Love Hörnquist Åstrand
5927c039fb reset outdata
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23668 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:51 +00:00
Love Hörnquist Åstrand
520edeaf90 reset outdata
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23667 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:38 +00:00
Love Hörnquist Åstrand
46158df0d7 use the right database to get the error from.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23666 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:28 +00:00
Love Hörnquist Åstrand
192506f0c2 Use explit result for counters
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23665 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:16 +00:00
Love Hörnquist Åstrand
cf6451436b check return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:04 +00:00
Love Hörnquist Åstrand
ab3d0e36c0 drop never used variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:50 +00:00
Love Hörnquist Åstrand
6ff91f7f31 check return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23662 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:36 +00:00
Love Hörnquist Åstrand
db63919ed3 remove dead store
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23661 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:26 +00:00
Love Hörnquist Åstrand
2e4f85e4fb don't need to store the last col =
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23660 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:17 +00:00
Love Hörnquist Åstrand
cf152f04f1 Don't use the side effect of ++var, just use the result
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:04 +00:00
Love Hörnquist Åstrand
c5b7d0e858 remove dead store
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23658 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:29:51 +00:00
Love Hörnquist Åstrand
300642ca29 new functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23657 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-22 21:18:29 +00:00
Love Hörnquist Åstrand
da29ca9744 define HC_DEPRECATED_CRYPTO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23656 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 22:10:09 +00:00
Love Hörnquist Åstrand
27e06ef268 Pick out header and trailer first before treating data and sign_only data.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23655 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:53 +00:00
Love Hörnquist Åstrand
0f18ec866a fix iov useage, check length and padding buffer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:35 +00:00
Love Hörnquist Åstrand
5ad47f2f66 * XXX CTS EVP is broken, can't handle multi buffers :(
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:27 +00:00
Love Hörnquist Åstrand
fd4fa6e543 remove krb5_encrypt_ivec_new now that we have new sample code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23652 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:14 +00:00
Love Hörnquist Åstrand
8ef17f5306 test encryption and decryption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23651 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:00 +00:00
Love Hörnquist Åstrand
72157cd54f drop len from krb5_crypto_length()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:52 +00:00
Love Hörnquist Åstrand
4e73040133 drop len from krb5_crypto_length()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23649 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:38 +00:00
Love Hörnquist Åstrand
3653a323fb update comments
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23648 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:29 +00:00
Love Hörnquist Åstrand
085315cad3 krb5_{encrypt,decrypt}_iov_ivec for derived crypto.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:21 +00:00
Love Hörnquist Åstrand
ffa4cfde5e test krb5_decrypt_iov_ivec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:07 +00:00
Love Hörnquist Åstrand
f258e5136e Add krb5_crypto_iov
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23645 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:23:57 +00:00
Love Hörnquist Åstrand
2b1fadb026 Dummy krb5_enctype_iov and friends.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23644 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-19 11:51:20 +00:00
Love Hörnquist Åstrand
68a0002ba9 clean up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23643 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-19 02:20:36 +00:00
Love Hörnquist Åstrand
58362ab151 Test EVP_CIPHER
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-19 02:20:24 +00:00
Love Hörnquist Åstrand
c6f0b74fe5 Do incremental encryption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23641 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-19 02:20:14 +00:00
Love Hörnquist Åstrand
6fe6bf3eef allow selecting blocksize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23640 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-19 02:20:01 +00:00
Love Hörnquist Åstrand
ae6d0372d5 KRB5-AUTHDATA-SIGNTICKET is assigned 142 from Tom Yu.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23639 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 22:55:18 +00:00
Love Hörnquist Åstrand
eafdcccf57 KRB5-PADATA-EPAC
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23638 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 22:55:08 +00:00
Love Hörnquist Åstrand
0ef01719fe add krb5_enctype_enable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23637 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:15:41 +00:00
Love Hörnquist Åstrand
61fb057fe7 Try to update buf_len to catch more errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23636 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:15:30 +00:00
Love Hörnquist Åstrand
bbc4454631 First implementation of EVP_CipherUpdate and EVP_CipherFinal_ex that
only handle buffers on block bounderies.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23635 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:15:16 +00:00
Love Hörnquist Åstrand
248222b8f6 Tell what buf_len is used for.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:15:03 +00:00