Commit Graph

123 Commits

Author SHA1 Message Date
Juan Lang d8ca5bc348 crypt32: Use helper function to encode public keys for hashing.
This is necessary because the publicly callable form embeds the asn.1
NULL value when the parameters are empty, whereas the hash value
expects that it's missing.
2009-10-21 16:05:56 +02:00
Juan Lang c97e442a28 crypt32: Add a helper function to encode a cert's public key. 2009-10-21 16:05:55 +02:00
Juan Lang 43182842cd crypt32: Set an output parameter on the success path. 2009-10-21 16:05:55 +02:00
Juan Lang 37754e49c8 crypt32: Pass pointer to structure rather than assuming a particular alignment. 2009-10-12 12:13:48 +02:00
Alexandre Julliard d5d3efd592 crypt32: Fix a couple of assumptions about structure layout. 2009-06-22 14:53:24 +02:00
Andrew Talbot 465a583f27 crypt32: Constify some variables. 2009-06-15 13:42:30 +02:00
Juan Lang 7127985641 crypt32: Implement PFXExportCertStore on top of PFXExportCertStoreEx. 2009-01-28 12:08:23 +01:00
Juan Lang 6e32746f6e crypt32: Add stub for PFXExportCertStoreEx. 2009-01-28 12:08:15 +01:00
Michael Stefaniuc 4eaaa913f8 crypt32: Remove some more superfluous pointer casts. 2009-01-26 14:31:08 +01:00
Juan Lang 519478e048 crypt32: Fix encoding OIDs with only two components. 2008-12-20 10:59:14 +01:00
Alexandre Julliard 7d4bc8503b crypt32: Make some functions and variables static. 2008-12-02 15:27:40 +01:00
Francois Gouget 451f642e16 crypt32: Remove WINAPI on static functions where not needed. 2008-11-24 14:18:42 +01:00
Juan Lang 8b4f53bb26 crypt32: Implement encoding CERT_POLICIES_INFO. 2008-11-17 13:51:15 +01:00
Juan Lang 3dd2cc5eaa crypt32: Implement encoding CERT_POLICY_QUALIFIER_USER_NOTICE. 2008-11-17 13:51:04 +01:00
Andrew Talbot 610dbbdae5 crypt32: Sign-compare warnings fix. 2008-09-24 12:52:46 +02:00
Juan Lang a96361361d crypt32: Implement encoding CTLs. 2008-08-28 11:49:34 +02:00
Juan Lang 2d02ec7488 crypt32: Don't ignore errors when encoding items in an array. 2008-08-28 11:24:48 +02:00
Juan Lang 7e848b6cdc crypt32: Implement authority info access encoding. 2008-08-28 11:03:56 +02:00
Juan Lang db6c8e23b6 crypt32: Add support for encoding PKCS_SMIME_CAPABILITIES. 2008-08-21 11:35:54 +02:00
Juan Lang 282eb73bc3 crypt32: Use CMS messages rather than PKCS messages internally. 2008-08-21 11:32:53 +02:00
Juan Lang 817adc5599 crypt32: Implement CMSG_CMS_SIGNER_INFO encoding. 2008-08-20 10:23:50 +02:00
Juan Lang 1799ceb8c1 crypt32: Free memory using the correct function on failure. 2008-08-19 12:20:40 +02:00
Michael Karcher 8fa3b6871f crypt32: Pass on aiKeyAlg on RSA key import. 2008-05-26 17:59:07 +02:00
Michael Karcher a3223df865 crypt32: Fix order-of-evaluation dependence. 2008-05-26 17:59:03 +02:00
Michael Karcher a6087662ba crypt32: Fix integer overflow. 2008-05-26 17:58:58 +02:00
Andrew Talbot 8a1d3b334d crypt32: Remove unwanted shadow variable. 2008-04-15 15:31:15 +02:00
Bang Jun-young dee7722b07 crypt32: Include wine/port.h for snprintf(). 2008-02-04 14:18:20 +01:00
Juan Lang f64d600494 crypt32: Don't leak buffer when a unicode string contains an invalid character. 2007-11-02 12:22:21 +01:00
Juan Lang d34b3bf63c crypt32: Don't assume string pointer has been set if length is 0. 2007-10-22 13:52:15 +02:00
Juan Lang 9568cead65 crypt32: Replace a private type with a public one. 2007-10-22 12:36:07 +02:00
Gerald Pfeifer 119e4d4955 crypt32: Fix incorrect casts in X509_CERT and friends. 2007-10-16 09:36:14 +02:00
Juan Lang 942fb6c3eb crypt32: Implement name constraint encoding. 2007-10-11 22:22:33 +02:00
Juan Lang 36886f7dd1 crypt32: Add/improve some traces. 2007-09-28 11:30:40 +02:00
Juan Lang 716a7405e4 crypt32: Update comments. 2007-09-18 11:52:00 +02:00
Juan Lang b6032a41b3 crypt32: Trace encoding and decoding public keys on crypt channel. 2007-08-22 12:33:50 +02:00
Juan Lang b82bfa3455 crypt32: Test authority key identifier with a multi-byte id to show that its byte-order is swapped and fix encoding and decoding it. 2007-08-14 12:29:51 +02:00
Juan Lang 3a50b1fea6 crypt32: Improve tracing when builtin function isn't available. 2007-08-13 11:32:51 +02:00
Juan Lang f848055151 crypt32: Use helper functions to simplify CryptEncodeObject and CryptEncodeObjectEx. 2007-08-13 11:32:42 +02:00
Juan Lang 038b53c301 crypt32: Ex encode/decode functions should call non-Ex versions if no Ex version is available. 2007-08-13 11:32:13 +02:00
Juan Lang 53087dbe12 crypt32: Introduce cryptasn debug channel to quiet down crypt traces. 2007-08-08 15:32:00 +02:00
Francois Gouget 74bf9f1f4e crypt32: Add and use HCRYPTPROV_LEGACY and HCRYPTPROV_OR_NCRYPT_KEY_HANDLE. 2007-08-03 12:44:41 +02:00
Juan Lang 676c6e5a36 crypt32: Implement encoding OID and directory name alt name entries. 2007-08-03 12:29:03 +02:00
Juan Lang 014467031e crypt32: Get rid of attribute certs from signed info, they're not supported anyway. 2007-07-31 11:15:57 +02:00
Juan Lang c58cb379eb crypt32: Test and fix encoding and decoding of attributes in PKCS signers. 2007-07-26 12:35:05 +02:00
Alexandre Julliard fd51447966 crypt32: Don't use off_t for memory offsets. 2007-07-26 11:57:14 +02:00
Marcus Meissner 60ef860f17 crypt32: Fixed wrong allocation size. 2007-07-25 13:02:02 +02:00
Juan Lang 0584964518 crypt32: Test and implement encoding signed data messages with CRLs. 2007-07-24 11:49:23 +02:00
Juan Lang 01ab14e174 crypt32: Test and implement encoding signed messages with certificates. 2007-07-24 11:49:14 +02:00
Juan Lang 8a3f4483a9 crypt32: Use set encoding function for encoding PKCS signed info. 2007-07-24 11:49:07 +02:00
Juan Lang b80101eb65 crypt32: Partially implement encoding signed messages. 2007-07-24 11:48:19 +02:00