Commit Graph

209 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
fc2dc65bcd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16611 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:13:21 +00:00
Love Hörnquist Åstrand
c2cb23d534 Parse and verify CRLs (simplistic).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16610 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:13:11 +00:00
Love Hörnquist Åstrand
1caa24e4ee Parse CRL info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:11:19 +00:00
Love Hörnquist Åstrand
02b1c3e19a Change format so we can deal with CRLs, also note the test-id from PKITS.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16608 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:09:42 +00:00
Love Hörnquist Åstrand
ccb1730d80 regen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:07:54 +00:00
Love Hörnquist Åstrand
c567afff59 Use static-file to generate tests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:07:25 +00:00
Love Hörnquist Åstrand
e1284cccf5 Use static file, add --missing-crl.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16605 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:06:40 +00:00
Love Hörnquist Åstrand
44e5b4329f A file that wont change its content.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:02:30 +00:00
Love Hörnquist Åstrand
835693b42c Its cRLReason, not cRLReasons.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16603 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 21:10:41 +00:00
Love Hörnquist Åstrand
b7fb7b3c80 Attach revoke context to verify context.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16602 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 21:08:09 +00:00
Love Hörnquist Åstrand
5b16a7209b change syntax to make match better with crl checks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16601 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 21:07:26 +00:00
Love Hörnquist Åstrand
327096d34e Verify no certificates has been revoked with the new revoke interface.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16600 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 20:51:55 +00:00
Love Hörnquist Åstrand
ffbe74d185 libhx509_la_SOURCES += revoke.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16599 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 20:50:48 +00:00
Love Hörnquist Åstrand
1f9aa1c6f7 Add framework for handling CRLs.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16598 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 20:50:11 +00:00
Love Hörnquist Åstrand
45e059476f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16597 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 20:49:36 +00:00
Love Hörnquist Åstrand
da94d04998 Add hx509_revoke_ctx.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16596 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 20:49:21 +00:00
Love Hörnquist Åstrand
163c6cb7b5 delete crypto_headers.h, use global file instead
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16560 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 14:02:49 +00:00
Love Hörnquist Åstrand
db692e67db x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16545 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:45:16 +00:00
Love Hörnquist Åstrand
41ce53a16e (PBE_string2key): libdes now supports PKCS12_key_gen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16544 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:44:57 +00:00
Love Hörnquist Åstrand
410d584bbb x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16524 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-12 14:04:03 +00:00
Love Hörnquist Åstrand
61be851b36 Need BN_is_negative too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16523 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-12 14:03:39 +00:00
Love Hörnquist Åstrand
cc9f4beb11 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16517 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 01:57:08 +00:00
Love Hörnquist Åstrand
e3f2a6b60a (p11_rsa_public_decrypt): since is wrong, don't provide it. PKCS11
can't do public_decrypt, it support verify though. All this doesn't
matter, since the code never go though this path.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16516 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 01:56:51 +00:00
Love Hörnquist Åstrand
2471aed4f0 Provide glue to compile with less warnings with OpenSSL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16515 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 01:38:12 +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
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