Love Hörnquist Åstrand
59238c7f99
Remember to p11_put_session in the failure cases too.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 18:42:42 +00:00
Love Hörnquist Åstrand
7a0fadc477
(_hx509_private_key_assign_rsa): set a default sig alg
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-09 12:56:34 +00:00
Love Hörnquist Åstrand
fa270376d8
Pass in hx509_signature_rsa to key collector
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19300 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-09 12:18:09 +00:00
Love Hörnquist Åstrand
1f4452b34e
(try_decrypt): pass down AlgorithmIdentifier that key uses to do sigatures
...
so there is no need to hardcode RSA into this function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19299 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-09 12:13:21 +00:00
Love Hörnquist Åstrand
c2633ac58b
Pass filename to the parse functions and use it in the error messages
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19296 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 02:35:19 +00:00
Love Hörnquist Åstrand
64e2e55060
regen, this time with openssl 0.9.8x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 02:22:06 +00:00
Love Hörnquist Åstrand
e3d4ff2f14
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19293 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 00:48:28 +00:00
Love Hörnquist Åstrand
53256a007f
make a note that we MUST check info.proxyPolicy
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19291 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-08 00:02:10 +00:00
Love Hörnquist Åstrand
188770ff73
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19290 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:48:54 +00:00
Love Hörnquist Åstrand
184d8c9f29
fix errorstring for PROXY_CERT_NAME_WRONG
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19289 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:46:58 +00:00
Love Hörnquist Åstrand
2728037bfe
regen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19288 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:46:06 +00:00
Love Hörnquist Åstrand
e825c5107c
test proxy cert (third level)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19287 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:43:21 +00:00
Love Hörnquist Åstrand
9d3e385800
EXTRA_DIST: add data/proxy10-child-child-test.{key,crt}
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19286 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:42:16 +00:00
Love Hörnquist Åstrand
13438750b1
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19285 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:41:53 +00:00
Love Hörnquist Åstrand
72a670336e
Fix names and restrictions on the proxy certificates
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:41:06 +00:00
Love Hörnquist Åstrand
71e4dc1497
Clairfy and make proxy cert handling work for multiple levels, before
...
it was too restrictive. More helpful error message.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19283 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 23:39:26 +00:00
Love Hörnquist Åstrand
7ea26d8dc4
(check_key_usage): print subject, not issuer
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19280 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 22:41:26 +00:00
Love Hörnquist Åstrand
eecdea2e20
(check_key_usage): tell what keyusages are missing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 22:35:27 +00:00
Love Hörnquist Åstrand
d987d9258d
Split OtherName printing code to a oid lookup and print function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 20:37:57 +00:00
Love Hörnquist Åstrand
c693f4cd8e
AltNames: Print all diffrent names of a GeneralName
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 17:20:09 +00:00
Love Hörnquist Åstrand
800d5b5cc8
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:37:53 +00:00
Love Hörnquist Åstrand
6621f45c1f
(Time2string): print hour as hour not min
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:34:53 +00:00
Love Hörnquist Åstrand
801dd6cd8a
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19272 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:30:46 +00:00
Love Hörnquist Åstrand
4e70f181f9
CLEANFILES += test
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19271 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:30:09 +00:00
Love Hörnquist Åstrand
5e5521c9e1
Include <pkinit_asn1.h>.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:16:46 +00:00
Love Hörnquist Åstrand
8bf7f3a2dd
Prettyprint SAN/IAN
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:14:52 +00:00
Love Hörnquist Åstrand
01dad85177
Print more of the SAN's, esp id-pkinit-san.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19266 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:11:57 +00:00
Love Hörnquist Åstrand
4c9ebfbbfb
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 22:09:00 +00:00
Love Hörnquist Åstrand
4c95f50117
(EXTRA_DIST): add data/pkinit-proxy* files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19264 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 22:08:43 +00:00
Love Hörnquist Åstrand
5eb5bcc668
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19258 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 20:20:41 +00:00
Love Hörnquist Åstrand
9c8dccd37d
(EXTRA_DIST): add tst-crypto* files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19257 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 20:20:21 +00:00
Love Hörnquist Åstrand
b6b9423a2b
(hx509_query_match_issuer_serial): make a copy of the data
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19249 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 13:08:31 +00:00
Love Hörnquist Åstrand
eadd6575cf
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19246 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 12:21:46 +00:00
Love Hörnquist Åstrand
dcf2f6807a
(hx509_query_match_issuer_serial): allow matching on issuer and serial num
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 12:21:35 +00:00
Love Hörnquist Åstrand
ef6bf7a0fe
(find_CMSIdentifier): require the certificate we are looking for to be valid.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19243 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 11:30:44 +00:00
Love Hörnquist Åstrand
6dbdfd41fc
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19240 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:36:15 +00:00
Love Hörnquist Åstrand
8bc1396160
(_hx509_calculate_path): add flag to allow leaving out trust anchor
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:35:16 +00:00
Love Hörnquist Åstrand
d58d796709
(hx509_cms_create_signed_1): when building the path, omit the trust
...
anchors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19238 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:34:39 +00:00
Love Hörnquist Åstrand
7a308c3ab3
add HX509_CALCULATE_PATH_NO_ANCHOR
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:32:42 +00:00
Love Hörnquist Åstrand
dddb1000d7
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19236 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:25:12 +00:00
Love Hörnquist Åstrand
e99ef09706
(rsa_create_signature): Abort when signature is longer, not shorter.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19235 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:23:14 +00:00
Love Hörnquist Åstrand
6134eea21c
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19230 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 23:47:28 +00:00
Love Hörnquist Åstrand
a3ece41637
Provide time to _hx509_calculate_path so we don't send no longer valid certs to our peer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 23:47:11 +00:00
Love Hörnquist Åstrand
0528938895
(find_parent): when checking for certs and its not a trust anchor,
...
require time be in range.
(_hx509_query_match_cert): Add time validity-testing to query mask
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19228 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 23:46:19 +00:00
Love Hörnquist Åstrand
db093bb975
add time validity-testing to query mask
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 23:44:32 +00:00
Love Hörnquist Åstrand
caf1dff34b
Tests for CMS SignedData with incomplete chain from the signer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19226 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 23:43:45 +00:00
Love Hörnquist Åstrand
eb6b4d91a0
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19184 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 22:15:35 +00:00
Love Hörnquist Åstrand
66c417d257
(hx509_cms_verify_signed): specify what signature we failed to verify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19183 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 21:50:36 +00:00
Love Hörnquist Åstrand
2f0967b969
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 20:08:58 +00:00
Love Hörnquist Åstrand
7c3c9f7fa1
Depend on LIB_com_err for AIX.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19181 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 20:08:32 +00:00