From: Philippe Groarke Subject: crypt32: Add CERT_OCSP_RESPONSE_PROP_ID property. Message-Id: <1439049433-5189-1-git-send-email-philippe.groarke@gmail.com> Date: Sat, 8 Aug 2015 11:57:12 -0400 Since this PropID accepts a CRYPT_DATA_BLOB, I set it as-is. Even though the rest of OCSP is not implemented, this should still work. --- dlls/crypt32/cert.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index 0cda2c4..ba804e0 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -775,6 +775,21 @@ static BOOL CertContext_SetProperty(cert_t *cert, DWORD dwPropId, 0, &keyContext); break; } + case CERT_OCSP_RESPONSE_PROP_ID: + { + if (pvData) + { + const CRYPT_DATA_BLOB *blob = pvData; + ret = ContextPropertyList_SetProperty(cert->base.properties, dwPropId, + blob->pbData, blob->cbData); + } + else + { + ContextPropertyList_RemoveProperty(cert->base.properties, dwPropId); + ret = TRUE; + } + break; + } default: FIXME("%d: stub\n", dwPropId); ret = FALSE; -- 2.4.5