summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-01-03 10:01:57 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-01-03 10:01:57 +0000
commit1f1a9d21a1a6ce2e63f3016f9b832b86d6731130 (patch)
treeb488dda5aa69b9838fa9514ddd8bc768e907371e /lib
parentc2136dde43fdc00afc2ef1f7495b90bf1f46d74e (diff)
downloadgnutls-1f1a9d21a1a6ce2e63f3016f9b832b86d6731130.tar.gz
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_handshake.c4
-rw-r--r--lib/gnutls_int.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index 2a3026354f..33bfb84f9f 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -265,9 +265,9 @@ int _gnutls_read_client_hello(gnutls_session session, opaque * data,
/* if we do not support that version */
if (_gnutls_version_is_supported(session, version) == 0) {
/* If he requested something we do not support
- * then we send him the lowest we support.
+ * then we send him the highest we support.
*/
- ver = _gnutls_version_lowest(session);
+ ver = _gnutls_version_max(session);
} else {
ver = version;
}
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 63d6228318..6afd762d3b 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -298,7 +298,8 @@ typedef struct {
/* Versions should be in order of the oldest
* (eg. SSL3 is before TLS1)
*/
-typedef enum gnutls_protocol_version { GNUTLS_SSL3=1, GNUTLS_TLS1,
+#define GNUTLS_TLS1 GNUTLS_TLS1_0
+typedef enum gnutls_protocol_version { GNUTLS_SSL3=1, GNUTLS_TLS1_0,
GNUTLS_TLS1_1, GNUTLS_VERSION_UNKNOWN=0xff }
gnutls_protocol_version;