Alistair Leslie-Hughes : crypt32: Fix compile error on older gnutls.

Alexandre Julliard julliard at winehq.org
Wed Jan 30 17:36:15 CST 2019


Module: wine
Branch: master
Commit: 02e2659a4e3c39d8b4d592f060cb42fc12a3f703
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=02e2659a4e3c39d8b4d592f060cb42fc12a3f703

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Jan 29 23:29:33 2019 +0000

crypt32: Fix compile error on older gnutls.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/crypt32/pfx.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/crypt32/pfx.c b/dlls/crypt32/pfx.c
index d824410..c4fb34d 100644
--- a/dlls/crypt32/pfx.c
+++ b/dlls/crypt32/pfx.c
@@ -38,6 +38,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
 #ifdef SONAME_LIBGNUTLS
 WINE_DECLARE_DEBUG_CHANNEL(winediag);
 
+/* Not present in gnutls version < 3.0 */
+int gnutls_pkcs12_simple_parse(gnutls_pkcs12_t p12, const char *password,
+    gnutls_x509_privkey_t *key, gnutls_x509_crt_t **chain, unsigned int *chain_len,
+    gnutls_x509_crt_t **extra_certs, unsigned int *extra_certs_len,
+    gnutls_x509_crl_t * crl, unsigned int flags);
+
 static void *libgnutls_handle;
 #define MAKE_FUNCPTR(f) static typeof(f) * p##f
 MAKE_FUNCPTR(gnutls_global_deinit);




More information about the wine-cvs mailing list