summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-12-24 11:20:59 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-12-24 11:20:59 +0000
commitb5285825897b7fa30df969c73e867e7cf9435111 (patch)
tree0a0f1935d3cfc38de62fd7bad116a02ddb4c6cf3
parent68a9afc34317cca177cdc84301ff73d25ee115a6 (diff)
downloadgnutls-b5285825897b7fa30df969c73e867e7cf9435111.tar.gz
*** empty log message ***
-rw-r--r--doc/TODO1
-rw-r--r--lib/gnutls_buffers.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/TODO b/doc/TODO
index 8388e3999f..b6163eb538 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -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);