Mercurial > trustbridge
changeset 218:8fb12af98960
According to MSDN you Must also provide message encoding flag.
I would not be surprised if both those values are defined 0 :)
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 26 Mar 2014 20:15:56 +0100 |
parents | 83a015f2e078 |
children | 57bef180d560 |
files | cinst/windowsstore.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cinst/windowsstore.c Wed Mar 26 20:14:22 2014 +0100 +++ b/cinst/windowsstore.c Wed Mar 26 20:15:56 2014 +0100 @@ -62,7 +62,7 @@ } pc_to_remove = CertCreateContext (CERT_STORE_CERTIFICATE_CONTEXT, - X509_ASN_ENCODING, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, (const PBYTE) asn1_data, (DWORD) asn1_size, 0, @@ -80,7 +80,7 @@ } pCert = CertFindCertificateInStore (hStore, - X509_ASN_ENCODING, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 0, CERT_FIND_EXISTING, pc_to_remove, @@ -137,7 +137,7 @@ printf ("Adding cert %s\n", to_install[i]); ret = CertAddEncodedCertificateToStore (hStore, - X509_ASN_ENCODING, + X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, (PBYTE) buf, buf_size, CERT_STORE_ADD_ALWAYS,