crypt32: Add CERT_OCSP_RESPONSE_PROP_ID property.

Philippe Groarke philippe.groarke at gmail.com
Sat Aug 8 10:57:12 CDT 2015


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




More information about the wine-patches mailing list