Love Hörnquist Åstrand
eda99f62e6
(hex_decode): support decoding odd number of characters, in the odd
...
len case, the character ends up in the first byte in the lower nibble.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16504 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 17:09:29 +00:00
Love Hörnquist Åstrand
f9dbc89ee3
Check that we can decode single character hex chars.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16503 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 17:07:06 +00:00
Johan Danielsson
1b8bdba909
rename foo to ap_msg
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16502 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 16:40:11 +00:00
Johan Danielsson
9bd626b2eb
(kerberos5_is): also syslog all messages printed in auth_debug_mode
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16501 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 16:39:38 +00:00
Johan Danielsson
e5e8cfc104
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16500 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 16:30:37 +00:00
Johan Danielsson
70820d395c
log successful logins
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16498 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 16:26:25 +00:00
Love Hörnquist Åstrand
eda77a82ab
Add test for DH.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 15:24:14 +00:00
Love Hörnquist Åstrand
9c8236b25e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16496 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:24:38 +00:00
Love Hörnquist Åstrand
5140fde4df
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16495 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:23:09 +00:00
Love Hörnquist Åstrand
018ec753ff
Add DH_new_method, add ENGINE refcounting.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:22:55 +00:00
Love Hörnquist Åstrand
f79e06f081
Add ENGINE_set_default_DH and ENGINE_get_default_DH
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16493 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:20:59 +00:00
Love Hörnquist Åstrand
1b15095bd7
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16492 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:09:30 +00:00
Love Hörnquist Åstrand
f18d723991
Add test for RSA encryption.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:09:07 +00:00
Love Hörnquist Åstrand
e1c122af2b
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16490 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:59:40 +00:00
Love Hörnquist Åstrand
2452ddfd39
Add test for RSA.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16489 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:52:54 +00:00
Love Hörnquist Åstrand
4326fc2833
Depend on LIB_des
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16488 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:02:43 +00:00
Love Hörnquist Åstrand
8845ce15db
Use "crypto_headers.h".
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:02:14 +00:00
Love Hörnquist Åstrand
460a1a3274
Include the two diffrent implementation of crypto headers.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:01:32 +00:00
Love Hörnquist Åstrand
966f4361f9
Use "crypto-headers.h". Load ENGINE configuration.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16485 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:00:08 +00:00
Love Hörnquist Åstrand
4a4b90d3b8
Use "crypto-headers.h".
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16484 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 21:58:46 +00:00
Love Hörnquist Åstrand
1a7317f812
Make compile with both OpenSSL and heimdal libdes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 21:58:13 +00:00
Love Hörnquist Åstrand
434d46a8fa
Add code for public key decryption (not supported yet) and use
...
"crypto-headers.h".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16482 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 21:57:09 +00:00
Love Hörnquist Åstrand
6fffde6387
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 21:50:18 +00:00
Love Hörnquist Åstrand
b8d967ede5
implement enough glue to support OpenSSLs EVP, RSA, DSA, DH, HMAC and ENGINE interfaces for use in hx509. rename all symbols to start with hc_ to avoid clobbering namespaces. contains no RSA/DH/DSA code, just glue to support using dynamic ENGINE. hx509 supports this via pkcs11 and there is a gmp ENGINE module supporting RSA
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 21:47:29 +00:00
Love Hörnquist Åstrand
6a7375e81e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16479 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 23:41:53 +00:00
Love Hörnquist Åstrand
6042e74b75
(copy_heim_integer): copy the negative flag
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16478 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 23:41:29 +00:00
Love Hörnquist Åstrand
c52f7bb670
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16477 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 20:34:04 +00:00
Love Hörnquist Åstrand
7dcf3289bb
add a hx509_context where we can store configuration
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16476 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 20:33:31 +00:00
Love Hörnquist Åstrand
d5e17d6541
pkcs11 is now supported by library
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 20:31:57 +00:00
Love Hörnquist Åstrand
0ef14a76b5
fix syntax error.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 14:57:06 +00:00
Love Hörnquist Åstrand
9384a0bba9
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16473 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 14:56:26 +00:00
Love Hörnquist Åstrand
5952012ed9
more paranoid on refcount, set refcounter ealier, reset pointers after free
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16472 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 14:55:50 +00:00
Love Hörnquist Åstrand
d4c217034c
(struct private_key): remove temporary key data storage, convert directly to a key
...
(match_localkeyid): match certificate and key using localkeyid
(match_keys): match certificate and key using _hx509_match_keys
(_hx509_collector_collect): rewrite to use match_keys and match_localkeyid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16471 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 14:54:32 +00:00
Love Hörnquist Åstrand
998e7c5677
(_hx509_match_keys): function that determins if a private key matches
...
a certificate, used when there is no localkeyid.
(*) reset free pointer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 14:51:13 +00:00
Love Hörnquist Åstrand
d88b19a93f
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16469 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 08:50:14 +00:00
Love Hörnquist Åstrand
cfbf5acaf7
Rewrite to use collector and mapping support function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16468 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 08:50:00 +00:00
Love Hörnquist Åstrand
71a46fa08f
(rsa_pkcs1_method): constify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 08:23:11 +00:00
Love Hörnquist Åstrand
03838a117c
drop extra wrapping of p11_init
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:41:58 +00:00
Love Hörnquist Åstrand
de88a56ec8
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16465 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:37:15 +00:00
Love Hörnquist Åstrand
cda5bbd725
(_hx509_private_key_assign_key_file): use function to extra rsa key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:34:46 +00:00
Love Hörnquist Åstrand
7c75e73121
Revert previous, refcounter is unsigned, so it can never be negative.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16463 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:33:54 +00:00
Love Hörnquist Åstrand
e0753bff55
(hx509_cert_ref): more refcount paranoia
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16462 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:32:43 +00:00
Love Hörnquist Åstrand
f2ebc403b0
Implement rsa_private_decrypt and add stubs for public ditto.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16461 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:31:28 +00:00
Love Hörnquist Åstrand
e54ee75622
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:23:31 +00:00
Love Hörnquist Åstrand
c5f932ca38
Less printf, less memory leaks.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16459 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:23:14 +00:00
Love Hörnquist Åstrand
24329dc0fc
Implement signing using pkcs11.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 06:16:37 +00:00
Love Hörnquist Åstrand
33038f7586
Partly assign private key, enough to complete collection, but not
...
any crypto functionallity.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16457 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 03:14:59 +00:00
Love Hörnquist Åstrand
971cfe76fa
Use hx509_private_key to assign private keys.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16456 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 03:13:49 +00:00
Love Hörnquist Åstrand
1c38c798d6
Remove most of the EVP_PKEY code, and use RSA directly, this temporary
...
removes DSA support.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16455 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 03:03:09 +00:00
Love Hörnquist Åstrand
e66ec6f703
(print_f): print if there is a friendly name and if there is a private key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 03:00:49 +00:00