Commit Graph

1665 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
7531335069 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16453 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:34:55 +00:00
Love Hörnquist Åstrand
8412fc32f1 Avoid warning from missing __attribute__((noreturn))
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:34:13 +00:00
Love Hörnquist Åstrand
3580639950 (_hx509_lock_unlock_certs): return unlock certificates
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16451 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:33:30 +00:00
Love Hörnquist Åstrand
5d2485dd68 (_hx509_private_key_assign_ptr): new function, exposes EVP_PKEY
(_hx509_private_key_assign_key_file): remember to free private key if
there is one.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:32:46 +00:00
Love Hörnquist Åstrand
6791e8dbf7 (_hx509_abort): add newline to output and flush stdout
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16449 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:31:14 +00:00
Love Hörnquist Åstrand
231e28c6f4 libhx509_la_SOURCES += collector.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16448 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:30:32 +00:00
Love Hörnquist Åstrand
069cfd602a forward type declaration of struct hx509_collector.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:30:03 +00:00
Love Hörnquist Åstrand
d231839e98 Support functions to collect certificates and private keys and then match them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16446 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:29:25 +00:00
Love Hörnquist Åstrand
1348930496 Use the new hx509_collector support functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:28:43 +00:00
Love Hörnquist Åstrand
93072e953d Add enough glue to support certificate iteration.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:28:09 +00:00
Love Hörnquist Åstrand
0f1d8d383b Less verbose.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 12:19:06 +00:00
Love Hörnquist Åstrand
b34cfe9fe8 less printf and memory leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 09:52:56 +00:00
Love Hörnquist Åstrand
ecfef14d45 (hx509_cert_free): if there is a private key assosited with this cert, free it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16441 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 09:41:48 +00:00
Love Hörnquist Åstrand
82b3cfe33e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16437 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 08:26:38 +00:00
Love Hörnquist Åstrand
02d27ea231 Use _hx509_abort.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 08:26:26 +00:00
Love Hörnquist Åstrand
fde07b8b17 use _hx509_abort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 08:22:09 +00:00
Love Hörnquist Åstrand
8842cb8601 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16434 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 22:14:53 +00:00
Love Hörnquist Åstrand
d3a083863a (hx509_name_to_string): don't cut bmpString in half.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 22:13:35 +00:00
Love Hörnquist Åstrand
a0be6bbc6e (hx509_name_to_string): don't overwrite with 1 byte with bmpString.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16432 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 22:11:06 +00:00
Love Hörnquist Åstrand
36a3388bb5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 15:49:26 +00:00
Love Hörnquist Åstrand
55b6937629 (parse_certificate): avoid stomping before array
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16430 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 15:49:08 +00:00
Love Hörnquist Åstrand
6fd2be56ae (oidtostring): avoid leaking memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16429 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 15:48:24 +00:00
Love Hörnquist Åstrand
34e449f026 Add _hx509_ks_dir_register.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16428 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 13:20:11 +00:00
Love Hörnquist Åstrand
b5676f89dc (libhx509_la_SOURCES): += ks_dir.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 13:19:38 +00:00
Love Hörnquist Åstrand
2dce0f8401 Remove pkcs11.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 13:18:53 +00:00
Love Hörnquist Åstrand
9d3f7175b2 Remove pcert_pkcs11.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16425 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 13:18:34 +00:00
Love Hörnquist Åstrand
13b7a732d1 Factor out certificate parsing code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16424 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 13:01:29 +00:00
Love Hörnquist Åstrand
1159d1e392 Add new keystore that treats all files in a directory a keystore,
useful for regression tests.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16423 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-02 13:00:41 +00:00
Love Hörnquist Åstrand
7750a7a56a Add test_nist and test_nist_pkcs12
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 15:46:49 +00:00
Love Hörnquist Åstrand
40fdb06355 Test parse PKCS12 files from NIST.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16389 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 15:30:40 +00:00
Love Hörnquist Åstrand
4523de21b0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:51:23 +00:00
Love Hörnquist Åstrand
ade9fa8270 Can handle DSA certificate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16383 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:45:39 +00:00
Love Hörnquist Åstrand
84ec5f8b73 Print error code on failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16382 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:44:29 +00:00
Love Hörnquist Åstrand
c71a749176 Support DSA signature operations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16258 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-29 10:59:21 +00:00
Love Hörnquist Åstrand
cfcfa2ad3f Add some more tests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-28 14:24:07 +00:00
Love Hörnquist Åstrand
6f657ec556 allow breaking early, print a dot for each certificate that is processed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-28 14:16:23 +00:00
Love Hörnquist Åstrand
7f3c73aaec Add all nist certificates.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16252 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-28 14:08:41 +00:00
Love Hörnquist Åstrand
ac8e06b969 Print that it started, it takes a while...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16251 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-28 14:08:13 +00:00
Love Hörnquist Åstrand
c62dae6184 control data to drive the NIST tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16250 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-27 19:09:26 +00:00