summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-05 12:43:06 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-05 12:43:06 +0000
commite81d50a2a7ab57921da8ced4c634878fec7ed643 (patch)
tree60a7fc9b2b8768c6126117f3ece004b41794a784
parent208a367a3f52591d4655c829d945f8a8d3e7979d (diff)
downloadgnutls-e81d50a2a7ab57921da8ced4c634878fec7ed643.tar.gz
-rw-r--r--NEWS7
-rw-r--r--doc/tex/translayer.tex2
-rw-r--r--lib/gnutls_db.c3
-rw-r--r--lib/gnutls_handshake.c4
-rw-r--r--lib/gnutls_int.h2
-rw-r--r--lib/gnutls_record.c1
-rw-r--r--src/serv.c2
7 files changed, 10 insertions, 11 deletions
diff --git a/NEWS b/NEWS
index c056339091..18ea7b03dc 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
-Version 0.2.10
-- Corrected bugs in non blocking IO
-- Added hooks to use external database to store sessions.
+Version 0.2.10 (5/11/2001)
+- Corrected bugs and improved non blocking IO
+- Added hooks to use external database to store sessions
+- Usual cleanups
Version 0.2.9 (27/10/2001)
- AUTH_INFO types and structures were moved to library internals
diff --git a/doc/tex/translayer.tex b/doc/tex/translayer.tex
index aab46c4336..04d8a3088c 100644
--- a/doc/tex/translayer.tex
+++ b/doc/tex/translayer.tex
@@ -14,6 +14,6 @@ values will be returned to the caller of the gnutls function).
By default (if the above functions are not called), gnutls will use
the berkeley sockets functions recv() and send(). In this case
gnutls will use some hacks in order for select() to work, thus
-making easy to add \emph{TLS} support to existing servers.
+making easy to add {\emph TLS} support to existing servers.
diff --git a/lib/gnutls_db.c b/lib/gnutls_db.c
index df7f47248d..155c23bad7 100644
--- a/lib/gnutls_db.c
+++ b/lib/gnutls_db.c
@@ -294,6 +294,9 @@ int ret;
/* expiration check is performed inside */
ret = gnutls_set_current_session( state, data.data, data.size);
+
+ /* Note: Data is not allocated with gnutls_malloc
+ */
free(data.data);
return 0;
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index bdccaf2f95..c8eac441d8 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -1520,7 +1520,6 @@ int gnutls_handshake_client(SOCKET cd, GNUTLS_STATE state)
IMED_RET("send client certificate verify", ret);
STATE = STATE0;
- default:
}
@@ -1574,7 +1573,6 @@ static int _gnutls_send_handshake_final(SOCKET cd, GNUTLS_STATE state,
}
STATE = STATE0;
- default:
}
return 0;
@@ -1627,7 +1625,6 @@ static int _gnutls_recv_handshake_final(SOCKET cd, GNUTLS_STATE state,
return ret;
}
STATE = STATE0;
- default:
}
@@ -1730,7 +1727,6 @@ int gnutls_handshake_server(SOCKET cd, GNUTLS_STATE state)
IMED_RET("recv client certificate verify", ret);
STATE = STATE0; /* finished thus clear state */
- default:
}
return 0;
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index f24784d5bf..58fb0d7008 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -30,7 +30,7 @@
#define HARD_DEBUG
#define READ_DEBUG
#define WRITE_DEBUG
-#define READ_DEBUG
+#define READ_DEBUG
#define HANDSHAKE_DEBUG // Prints some information on handshake
#define RECORD_DEBUG
#define DEBUG
diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c
index e422df52e0..b17fec6b1f 100644
--- a/lib/gnutls_record.c
+++ b/lib/gnutls_record.c
@@ -436,7 +436,6 @@ int gnutls_bye(SOCKET cd, GNUTLS_STATE state, CloseRequest how)
if (ret2 < 0)
return ret2;
- default:
}
STATE = STATE0;
diff --git a/src/serv.c b/src/serv.c
index 62b1b7f4c7..93625797f3 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -77,7 +77,7 @@ GNUTLS_STATE initialize_state()
gnutls_init(&state, GNUTLS_SERVER);
if ((ret = gnutls_set_db_name(state, "gnutls-rsm.db")) < 0)
- fprintf(stderr, "*** DB error (%d)\n\n", ret);
+ fprintf(stderr, "*** DB error (%d). Resuming will not be possible.\n\n", ret);
/* null cipher is here only for debuging
* purposes.