Commit 3cd1630d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

contrib: gnutls: Use CertOpenStore instead of CertOpenSystemStore on winrt

parent 68438d48
--- gnutls/lib/system.c.orig2 2016-04-05 11:14:43.364389441 +0200
+++ gnutls/lib/system.c 2016-04-05 11:20:18.535618044 +0200
@@ -429,9 +429,11 @@
gnutls_datum_t data;
if (i == 0)
- store = CertOpenSystemStore(0, "ROOT");
+ store = CertOpenStore(CERT_STORE_PROV_SYSTEM_A, X509_ASN_ENCODING, 0,
+ CERT_SYSTEM_STORE_CURRENT_USER, TEXT("ROOT"));
else
- store = CertOpenSystemStore(0, "CA");
+ store = CertOpenStore(CERT_STORE_PROV_SYSTEM_A, X509_ASN_ENCODING, 0,
+ CERT_SYSTEM_STORE_CURRENT_USER, TEXT("CA"));
if (store == NULL)
return GNUTLS_E_FILE_ERROR;
......@@ -22,6 +22,9 @@ gnutls: gnutls-$(GNUTLS_VERSION).tar.xz .sum-gnutls
ifdef HAVE_WIN32
$(APPLY) $(SRC)/gnutls/gnutls-win32.patch
$(APPLY) $(SRC)/gnutls/gnutls-mingw64.patch
ifdef HAVE_WINRT
$(APPLY) $(SRC)/gnutls/gnutls-winrt.patch
endif
endif
ifdef HAVE_ANDROID
$(APPLY) $(SRC)/gnutls/no-create-time-h.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment