diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-24 11:20:59 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-24 11:20:59 +0000 |
commit | b5285825897b7fa30df969c73e867e7cf9435111 (patch) | |
tree | 0a0f1935d3cfc38de62fd7bad116a02ddb4c6cf3 | |
parent | 68a9afc34317cca177cdc84301ff73d25ee115a6 (diff) | |
download | gnutls-b5285825897b7fa30df969c73e867e7cf9435111.tar.gz |
*** empty log message ***
-rw-r--r-- | doc/TODO | 1 | ||||
-rw-r--r-- | lib/gnutls_buffers.c | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -8,6 +8,7 @@ Current list: + OpenPGP certificate support * Add function to clone GNUTLS_STATE structures * Minimize footprint. +* Improve support for compression - Add Kerberos support (+) Means high priority diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c index e383c6e6b3..918cc663c4 100644 --- a/lib/gnutls_buffers.c +++ b/lib/gnutls_buffers.c @@ -269,6 +269,9 @@ static ssize_t _gnutls_read( GNUTLS_STATE state, void *iptr, size_t sizeOfPtr, i #define RCVLOWAT state->gnutls_internals.lowat +/* This function is only used with berkeley style sockets. + * Clears the peeked data (read with MSG_PEEK). + */ int _gnutls_clear_peeked_data( GNUTLS_STATE state) { char peekdata1[10]; char *peekdata2; @@ -410,7 +413,8 @@ ssize_t _gnutls_read_buffered( GNUTLS_STATE state, opaque **iptr, size_t sizeOfP /* This is hack in order for select to work. Just leave recvlowat data, * into the kernel buffer (using a read with MSG_PEEK), thus making - * select think, that the socket is ready for reading + * select think, that the socket is ready for reading. + * MSG_PEEK is only used with berkeley style sockets. */ if (ret == (recvdata - recvlowat) && recvlowat > 0) { ret2 = _gnutls_read( state, &buf[buf_pos], recvlowat, MSG_PEEK); |