[xmlsec] bugfixes for mscrypto support
Wouter
wsh@xs4all.nl
Sun, 14 Sep 2003 21:53:53 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01C37B0A.B0F37320
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi,
Attached is a patch (taken agains the XMLSEC_MSCRYPTO_083103 cvs tree,
today) that solves the following 3 problems:
1) The keyname was not set when a certificate (key) was
retrieved from MS Certificate store and transferred to the
(cache) simple keystore (This resulted in errors in key lookup
procedures).
2) Symmetric key import failed, when keysize of given key was
not
exact same size as key definition. Now a bigger size then
needed kan be given to SetKey, this follows the behaviour of
rest of
xmlsec library
3) RSA keyimport changed, now imported keys are allowed to be
used
for signing *and* encryption, instead of only for signing.
With this patch all tests that should work since the code for that is
implemenetd, are working on my system. Since private key import is not
supported a lot of the encryption tests still fail. However implementing
plain private key node import just for these tests is not of anyones
interest, so I'm afraid that will stay like this, or the testsuite
should be altered.
Aleksey: could you plz apply the patch, and commit the files? :)
Wouter
--
Wouter Ketting
------=_NextPart_000_0001_01C37B0A.B0F37320
Content-Type: application/x-gzip;
name="mscrypto-4.patch.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="mscrypto-4.patch.gz"
H4sICP7EZD8AA21zY3J5cHRvLTQucGF0Y2gAxVZdc9o4FH2GX3GnDzs22BhDJtmQTSckcROmJOng
tNN9YmRbBk2NxUiCwO72v++VbIIDbDPtPgQebOme+310rUGe0FUPpIi9mYzFeq64Nwr613dB/fz/
/+qjqxBSltEeePFSepOcz6i3mmWSxt4Ln32lWFx6dpZ1QZVgdMnyCQh8SMZz8Ft+q9Pq1BOWpuAu
wBXlDpQBu657KJGa70NI59Bpt7vQ6fT8bs9vg9vGX21js9lsHlY92qr6p70jv+d3CtX6xQW4vtOF
pu/4J3BxUW+eev6Rp6H1Zq2Laa+o7AG++zY8Til8o+uczCg8EQk5VyCpgqcpzYFATIViKYuJomAh
ztYg1CzLQBNIBZ/BXQhXFaRUXF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