[vlc-commits] contribs: gnutls: Fix winrt build

Hugo Beauzée-Luyssen git at videolan.org
Thu Dec 28 11:13:56 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 28 11:14:26 2017 +0100| [9d8eb3b639cbbaf4491e4646267d78f02c5d890f] | committer: Hugo Beauzée-Luyssen

contribs: gnutls: Fix winrt build

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d8eb3b639cbbaf4491e4646267d78f02c5d890f
---

 contrib/src/gnutls/gnutls-winrt.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/contrib/src/gnutls/gnutls-winrt.patch b/contrib/src/gnutls/gnutls-winrt.patch
index 174105c526..f3057f35ba 100644
--- a/contrib/src/gnutls/gnutls-winrt.patch
+++ b/contrib/src/gnutls/gnutls-winrt.patch
@@ -19,3 +19,23 @@
  #define DYN_NCRYPT
  
  #ifdef __MINGW32__
+--- gnutls/lib/system/keys-win.c.old	2017-12-28 11:04:45.599954683 +0100
++++ gnutls/lib/system/keys-win.c	2017-12-28 11:07:37.999947957 +0100
+@@ -624,6 +624,9 @@
+  -*/
+ int _gnutls_privkey_import_system_url(gnutls_privkey_t pkey, const char *url)
+ {
++#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
++    return GNUTLS_E_UNIMPLEMENTED_FEATURE;
++#else
+ 	uint8_t id[MAX_WID_SIZE];
+ 	HCERTSTORE store = NULL;
+ 	size_t id_size;
+@@ -873,6 +876,7 @@
+ 
+ 	CertCloseStore(store, 0);
+ 	return ret;
++#endif
+ }
+ 
+ int _gnutls_x509_crt_import_system_url(gnutls_x509_crt_t crt, const char *url)



More information about the vlc-commits mailing list