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

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


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

contribs: gnutls: Fix winrt build

(cherry picked from commit 9d8eb3b639cbbaf4491e4646267d78f02c5d890f)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6f39a32a635da8a918555f67253a5b788d42a050
---

 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