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
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
470c89676a
switch last MD5 to EVP
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23620 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 13:49:57 +00:00
Love Hörnquist Åstrand
80f534b1be
remove HMAC_MD5_checksum_enc, it was never used.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23619 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 13:49:40 +00:00
Love Hörnquist Åstrand
969f6d3c69
remove unused debug code that haven't been used in yeras
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23618 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 13:49:19 +00:00
Love Hörnquist Åstrand
9a9febbd62
remove unused
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 16:09:39 +00:00
Love Hörnquist Åstrand
440bdde5ff
switch des3 to evp
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 16:09:26 +00:00
Love Hörnquist Åstrand
fd7caae377
define HC_DEPRECATED_CRYPTO
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23613 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:57:05 +00:00
Love Hörnquist Åstrand
eeab965755
include <sqlite3.h> instead of "sqlite3.h"
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:56:32 +00:00
Love Hörnquist Åstrand
f2a286081e
pick up sqlite from variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:56:18 +00:00
Love Hörnquist Åstrand
2b3730b46c
allow optionally to drop weak enctypes and unstandard enctypes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:47:13 +00:00
Love Hörnquist Åstrand
aa3cf96645
add [libdefaults]allow_weak_crypto to allow des
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:56 +00:00
Love Hörnquist Åstrand
6872e73f4d
Play games to move make make-proto not see this EVP_hcrypto_aes.
...
Disable DES.
Add krb5_enctype_enable().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23589 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:45 +00:00
Love Hörnquist Åstrand
b5e0b4121e
deprecated functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23586 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:11 +00:00
Love Hörnquist Åstrand
826a7369a3
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23585 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:03 +00:00
Love Hörnquist Åstrand
0cbaf39afc
move to group crypto
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23584 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:49 +00:00
Love Hörnquist Åstrand
3669790e99
add krb5_enctype_enable and some doxygen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:32 +00:00
Love Hörnquist Åstrand
67bb81a885
enable crypto
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:16 +00:00
Love Hörnquist Åstrand
1a14adc125
enable crypto
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:07 +00:00
Love Hörnquist Åstrand
1c9741f328
The PRF slightly more generic
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23578 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:07:40 +00:00
Love Hörnquist Åstrand
f6d7055a49
Pass down EVP_CIPHER to key schedule and clean up.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:07:21 +00:00
Love Hörnquist Åstrand
ed463c5e96
switch aes and des-cbc-{crc,md4,md5} to evp
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:07:09 +00:00
Love Hörnquist Åstrand
879ac0a824
remove #if 0 debug stuff that haven't been used for a couple of years
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23575 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:54 +00:00
Love Hörnquist Åstrand
7cc56b554f
use EVP for des-crc-mdX functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:37 +00:00
Love Hörnquist Åstrand
bf83b84842
More EVP.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:24 +00:00
Love Hörnquist Åstrand
b0b2802cb1
More EVP.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23572 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:10 +00:00
Love Hörnquist Åstrand
7260146234
Only clean keys that had their schedule setup.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23568 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:04:34 +00:00
Love Hörnquist Åstrand
7d80d78c9c
Moved cts test to hcrypto.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23567 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:04:18 +00:00
Love Hörnquist Åstrand
65e525ce2e
cleanup of crypto context, for encryptes that needs to do malloc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23566 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:04:09 +00:00
Love Hörnquist Åstrand
634dfaf5f3
_krb5_aes_cts_encrypt no longer used.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23565 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:03:56 +00:00
Love Hörnquist Åstrand
0a0d731350
Start switch to EVP digest.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:03:42 +00:00
Love Hörnquist Åstrand
b10c376602
pull in hcrypto/evp-aes-cts.c if we use openssl
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23562 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:03:20 +00:00
Love Hörnquist Åstrand
72d753aec4
Use EVP for AES
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23558 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:02:40 +00:00
Love Hörnquist Åstrand
9efa43473c
If we change the error code, change the context error code too.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23542 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 22:59:36 +00:00
Love Hörnquist Åstrand
4384fb0209
use SOCK_CLOEXEC
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23517 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:01:38 +00:00
Love Hörnquist Åstrand
734a7cdf4f
return whatever krb5_copy_data returnd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23507 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:33 +00:00
Love Hörnquist Åstrand
11752006c3
ignore error from crypto_destro to catch more intresting error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23506 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:28 +00:00
Love Hörnquist Åstrand
f05f1107ce
catch error and return error from krb5_openlog().
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23505 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:24 +00:00
Love Hörnquist Åstrand
ac33d8447b
More bits from the KDF.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 09:58:18 +00:00
Love Hörnquist Åstrand
ba2127c788
The "kaserver" part of Heimdal occasionally issues invalid AFS tokens
...
(here "occasionally" means for certain users in certain realms).
In lib/krb5/v4_glue.c, in the routine storage_to_etext the ticket is
padded to a multiple of 8 bytes. If it is already a multiple of 8
bytes, 8 additional 0-bytes are added.
This catches the AFS krb4 ticket decoder by surprise: unless the
ticket is exactly 56 bytes, it only supports the minimum necessary
padding. It detects the superfluous padding by comparing the ticket
length decoded to the advertised ticket length.
Hence a 7-letter userid in "cern.ch" which resulted in a ticket of 40
bytes, got "padded" to 48 bytes which the rxkad decoder rejected.
From Rainer Toebbicke.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-28 15:01:05 +00:00
Love Hörnquist Åstrand
7b5981996c
sprinle O_CLOEXEC, from Andrew Bartlett
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-28 08:49:43 +00:00
Love Hörnquist Åstrand
c50ae6b63c
xfree, close-on-exec
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23469 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:17:12 +00:00
Love Hörnquist Åstrand
1e91bb390c
close-on-exec
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:16:37 +00:00
Love Hörnquist Åstrand
b227a5249d
close-on-exec
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:11:44 +00:00