Commit Graph

12970 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
28de60a9bc stricter check that enctype matches checksum type when using keyed checksum
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24205 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:59 +00:00
Love Hörnquist Åstrand
26abb7e637 option to turn off the KeyUsage check in CMS verify SignedData
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24204 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:49 +00:00
Love Hörnquist Åstrand
5f2da72d8a make der_get_octet_string_ber less restrictive
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24203 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:39 +00:00
Love Hörnquist Åstrand
be7861f63b implement kc_rsa_private_decrypt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:30 +00:00
Love Hörnquist Åstrand
2e8d2802c8 der_get_octet_string_ber meet reality and now works
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:20 +00:00
Love Hörnquist Åstrand
74ca2a2f6c add INDEF_OVERRUN, INDEF_UNDERRUN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:10 +00:00
Love Hörnquist Åstrand
131b3d34f5 add flag to hx509_cms_verify_signed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:00 +00:00
Love Hörnquist Åstrand
e893e7bd5b Add HX509_CMS_EV_NO_KU_CHECK and HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:31:51 +00:00
Love Hörnquist Åstrand
61d49ed472 add options to skipping KeyUsage check
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24197 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:31:41 +00:00
Love Hörnquist Åstrand
dc7cea0417 add flags to hx509_cms_verify_signed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:31:03 +00:00
Love Hörnquist Åstrand
ba69102e6b add flags to hx509_cms_verify_signed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:52 +00:00
Love Hörnquist Åstrand
ff17f1e5a1 return of der_match_tag2
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24191 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:42 +00:00
Love Hörnquist Åstrand
01dbb35475 turn on symbols for libasn1 and add check-ber for checking INDEF encoding with any
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24190 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:32 +00:00
Love Hörnquist Åstrand
ea193b2f25 use new der_match_tag_and_length to parse the UT_EndOfContent tag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24189 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:22 +00:00
Love Hörnquist Åstrand
26d2cd604d change prototype for der_match_tag_and_length to return the Der_type, add BER decoder for octet string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24188 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:12 +00:00
Love Hörnquist Åstrand
e9d32a0ac5 Use asn1 decoder now that it can handle CHOICE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24187 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:30:02 +00:00
Love Hörnquist Åstrand
be0a52e885 handle BER octet string, remove EoD tag before parsing content of a INDEF encoding to the greedy encodings in inside (like ANY) will swallow the EoD
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:29:52 +00:00
Love Hörnquist Åstrand
323e8433db handle ASN1_INDEFINITE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:29:42 +00:00
Love Hörnquist Åstrand
5da8d78b54 add [gs]_friendly_name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24184 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:29:32 +00:00
Love Hörnquist Åstrand
0aef0e3e46 add krb5_cc_[gs]et_friendly_name, match MIT config name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24181 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:29:03 +00:00
Love Hörnquist Åstrand
f8a5a1a8a7 Allow DER encoding for CMS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24180 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:28:53 +00:00
Love Hörnquist Åstrand
8671326a06 Handle ASN1_INDEFINITE encoding
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24178 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:28:33 +00:00
Love Hörnquist Åstrand
eaa7e4e854 Deprecate old functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:12:53 +00:00
Love Hörnquist Åstrand
731f131f32 Make heimdal smaller and deprecate old functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24175 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:12:42 +00:00
Love Hörnquist Åstrand
85de455dde support split processing of AS and add support for keytab/keyblock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24174 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:12:30 +00:00
Love Hörnquist Åstrand
ebdce5d97e add krb5_init_creds_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:12:19 +00:00
Love Hörnquist Åstrand
8eb10d7b45 better doxygen for krb5_data_free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24170 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:11:45 +00:00
Love Hörnquist Åstrand
a45c993c88 make sure all addresses are added
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:09:38 +00:00
Love Hörnquist Åstrand
242139b224 plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:09:28 +00:00
Love Hörnquist Åstrand
9921bcbe2a plug memory leak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24156 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:09:18 +00:00
Love Hörnquist Åstrand
554655b628 call cleanup callback on free schedule in setup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24155 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:09:08 +00:00
Love Hörnquist Åstrand
ecdf7c3d88 plug memory leak when we find a dup adress
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24153 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:47 +00:00
Love Hörnquist Åstrand
1cfff7cc93 check for failues, cid#160
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:37 +00:00
Love Hörnquist Åstrand
1db27e217e check for failues for hex_encode, cid#159
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:26 +00:00
Love Hörnquist Åstrand
05708605e0 cleanup before returning cid#70
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24150 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:16 +00:00
Love Hörnquist Åstrand
0aa582523a check for null before freeing, cid#32
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:06 +00:00
Love Hörnquist Åstrand
b1f9462cfc check for null before freeing, cid#33
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:07:56 +00:00
Love Hörnquist Åstrand
e015c36060 check for null before freeing, cid#34
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24147 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:07:46 +00:00
Love Hörnquist Åstrand
12edcfbf3b check return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24146 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:07:35 +00:00
Love Hörnquist Åstrand
e2f40cd57f free only lock on existance, cid#53
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24145 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:07:25 +00:00
Love Hörnquist Åstrand
90e52850c1 free data on error, cid#89
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24144 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:07:14 +00:00
Love Hörnquist Åstrand
f9120fced8 check return value, cid#62
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24143 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:07:04 +00:00
Love Hörnquist Åstrand
8a54aaba59 free name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24142 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:06:54 +00:00
Love Hörnquist Åstrand
8b8e3af545 check return values
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:06:44 +00:00
Love Hörnquist Åstrand
4eb662c7a0 free data on failure, cid#86
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24140 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:06:34 +00:00
Love Hörnquist Åstrand
f317fa98cf check the right variable for mallocation failure, cid#9
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24139 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:06:24 +00:00
Love Hörnquist Åstrand
e83545e8f0 release m1, cid#117e
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24138 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:06:14 +00:00
Love Hörnquist Åstrand
f106a2aff9 release mechs when done, cid#75
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24137 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:06:03 +00:00
Love Hörnquist Åstrand
a77294556d return error when we cant find enctype, cid#59
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:05:53 +00:00
Love Hörnquist Åstrand
b1af3f1abc leak less memory on malloc failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:05:43 +00:00