summaryrefslogtreecommitdiff
path: root/lib/gnutls_priority.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-01 11:26:29 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-01 11:26:29 +0000
commit76699d66c0020076ecb62f4b43e59bd538ede730 (patch)
treec3480775e2e731656ae0b643e0fb18127441b2e5 /lib/gnutls_priority.c
parent3d9d7856e8f4616e7dc2e689ca653bdb212c6714 (diff)
downloadgnutls-76699d66c0020076ecb62f4b43e59bd538ede730.tar.gz
Cleanups in gnutls_handshake.c and gnutls_algorithms.c.
Now cipher suites get associated with a protocol version. This will allow disabling several ciphersuites which are only defined in TLS 1.0, when using SSL 3.0.
Diffstat (limited to 'lib/gnutls_priority.c')
-rw-r--r--lib/gnutls_priority.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/gnutls_priority.c b/lib/gnutls_priority.c
index 26103cdd96..9c908bf641 100644
--- a/lib/gnutls_priority.c
+++ b/lib/gnutls_priority.c
@@ -159,11 +159,9 @@ int num=0, i;
* @list: is a 0 terminated list of GNUTLS_Version elements.
*
* Sets the priority on the protocol versions supported by gnutls.
- * Priority is higher for protocols specified before others.
- * After specifying the protocols you want, you should add 0.
- * Note that the priority is set on the client. The server does
- * not use the protocols's priority except for disabling
- * protocols that were not specified.
+ * This function actually enables or disables protocols. Newer protocol
+ * versions always have highest priority.
+ *
**/
int gnutls_protocol_set_priority( GNUTLS_STATE state, GNUTLS_LIST list) {
GNUTLS_LIST _list = list;