diff options
author | Larry Hajali <larryhaja@gmail.com> | 2016-02-07 13:25:49 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-08 23:44:05 +0700 |
commit | c1fa7ec228392481904847a3a36ec30fd3fe431b (patch) | |
tree | 4e2c169239fe763a6f71f454aabe5db363ca97c0 /libraries/gwenhywfar/gwen-gnutls.patch | |
parent | 2355494a80c4503f4f51ab8fb77373cd17823f6e (diff) |
libraries/gwenhywfar: Fix build
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/gwenhywfar/gwen-gnutls.patch')
-rw-r--r-- | libraries/gwenhywfar/gwen-gnutls.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libraries/gwenhywfar/gwen-gnutls.patch b/libraries/gwenhywfar/gwen-gnutls.patch new file mode 100644 index 0000000000000..b83015293cf4e --- /dev/null +++ b/libraries/gwenhywfar/gwen-gnutls.patch @@ -0,0 +1,19 @@ +diff -up gwenhywfar-4.13.1/src/sio/syncio_tls.c.foo gwenhywfar-4.13.1/src/sio/syncio_tls.c +--- gwenhywfar-4.13.1/src/sio/syncio_tls.c.foo 2015-12-11 22:35:48.474181431 -0500 ++++ gwenhywfar-4.13.1/src/sio/syncio_tls.c 2015-12-11 22:41:27.414733356 -0500 +@@ -361,12 +361,12 @@ int GWEN_SyncIo_Tls_Prepare(GWEN_SYNCIO + + /* possibly force protocol priority */ + if (lflags & GWEN_SYNCIO_TLS_FLAGS_FORCE_SSL_V3) { +- const int proto_prio[2] = { GNUTLS_SSL3, 0 }; ++ char *force_sslv3_str = "NORMAL:-VERS-TLS-ALL:+VERS-SSL3.0"; + + DBG_INFO(GWEN_LOGDOMAIN, "Forcing SSL v3"); +- rv=gnutls_protocol_set_priority(xio->session, proto_prio); ++ rv=gnutls_priority_set_direct(xio->session, force_sslv3_str, NULL); + if (rv) { +- DBG_ERROR(GWEN_LOGDOMAIN, "gnutls_protocol_set_priority: %d (%s)", rv, gnutls_strerror(rv)); ++ DBG_ERROR(GWEN_LOGDOMAIN, "gnutls_priority_set_direct: %d (%s)", rv, gnutls_strerror(rv)); + gnutls_deinit(xio->session); + return GWEN_ERROR_GENERIC; + } |