diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-12 11:15:32 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-12 11:15:32 +0100 |
commit | d1cb31f43636e574058f64ac3e5e4cbe20f162b4 (patch) | |
tree | 1260ce593ca99b9fe22eb51b906f54b2c0f567fe /common/rdr/TLSInStream.cxx | |
parent | 59b4bc5638ced3cb5f043ccd9ed207fe76148d1a (diff) | |
parent | 4cf2d3a621ecb9918b57021bc1cee1bd016dc0aa (diff) | |
download | tigervnc-d1cb31f43636e574058f64ac3e5e4cbe20f162b4.tar.gz tigervnc-d1cb31f43636e574058f64ac3e5e4cbe20f162b4.zip |
Merge branch 'upreqs' of https://github.com/CendioOssman/tigervnc
Conflicts:
contrib/packages/rpm/el5/SPECS/tigervnc.spec
vncviewer/Viewport.cxx
Diffstat (limited to 'common/rdr/TLSInStream.cxx')
-rw-r--r-- | common/rdr/TLSInStream.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/rdr/TLSInStream.cxx b/common/rdr/TLSInStream.cxx index 21b60565..77b16729 100644 --- a/common/rdr/TLSInStream.cxx +++ b/common/rdr/TLSInStream.cxx @@ -25,7 +25,6 @@ #include <rdr/Exception.h> #include <rdr/TLSException.h> #include <rdr/TLSInStream.h> -#include <rdr/TLSErrno.h> #include <errno.h> #ifdef HAVE_GNUTLS @@ -33,14 +32,14 @@ using namespace rdr; enum { DEFAULT_BUF_SIZE = 16384 }; -ssize_t TLSInStream::pull(gnutls_transport_ptr str, void* data, size_t size) +ssize_t TLSInStream::pull(gnutls_transport_ptr_t str, void* data, size_t size) { TLSInStream* self= (TLSInStream*) str; InStream *in = self->in; try { if (!in->check(1, 1, false)) { - gnutls_errno_helper(self->session, EAGAIN); + gnutls_transport_set_errno(self->session, EAGAIN); return -1; } @@ -50,17 +49,17 @@ ssize_t TLSInStream::pull(gnutls_transport_ptr str, void* data, size_t size) in->readBytes(data, size); } catch (Exception& e) { - gnutls_errno_helper(self->session, EINVAL); + gnutls_transport_set_errno(self->session, EINVAL); return -1; } return size; } -TLSInStream::TLSInStream(InStream* _in, gnutls_session _session) +TLSInStream::TLSInStream(InStream* _in, gnutls_session_t _session) : session(_session), in(_in), bufSize(DEFAULT_BUF_SIZE), offset(0) { - gnutls_transport_ptr recv, send; + gnutls_transport_ptr_t recv, send; ptr = end = start = new U8[bufSize]; |