]> granicus.if.org Git - curl/commitdiff
gnutls: explicitly added SRP to the priority string
authorDan Fandrich <dan@coneharvesters.com>
Fri, 11 Jul 2014 21:55:53 +0000 (23:55 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 11 Jul 2014 22:11:44 +0000 (00:11 +0200)
This seems to have become necessary for SRP support to work starting
with GnuTLS ver. 2.99.0. Since support for SRP was added to GnuTLS
before the function that takes this priority string, there should be no
issue with backward compatibility.

RELEASE-NOTES
lib/vtls/gtls.c
tests/runtests.pl

index 5f3bc0cd36e5328c6ec739d364770774c0444388..03dc74530d3c00c33682dad13da6baa46498d98b 100644 (file)
@@ -39,6 +39,7 @@ This release includes the following bugfixes:
  o tool: prevent valgrind from reporting possibly lost memory (nss only)
  o nss: fix a memory leak when CURLOPT_CRLFILE is used
  o gnutls: ignore invalid certificate dates with VERIFYPEER disabled
+ o gnutls: fix SRP support with versions of GnuTLS from 2.99.0
  o 
 
 This release includes the following known bugs:
index 7f920b27adf466c9a1faf4e82758bc7507be521a..54bfef1189cd8b06e6a91c528aa54052fd1884b0 100644 (file)
@@ -544,19 +544,19 @@ gtls_connect_step1(struct connectdata *conn,
       break;
     case CURL_SSLVERSION_DEFAULT:
     case CURL_SSLVERSION_TLSv1:
-      prioritylist = GNUTLS_CIPHERS ":-VERS-SSL3.0";
+      prioritylist = GNUTLS_CIPHERS ":-VERS-SSL3.0:+SRP";
       break;
     case CURL_SSLVERSION_TLSv1_0:
       prioritylist = GNUTLS_CIPHERS ":-VERS-SSL3.0:-VERS-TLS-ALL:"
-                     "+VERS-TLS1.0";
+                     "+VERS-TLS1.0:+SRP";
       break;
     case CURL_SSLVERSION_TLSv1_1:
       prioritylist = GNUTLS_CIPHERS ":-VERS-SSL3.0:-VERS-TLS-ALL:"
-                     "+VERS-TLS1.1";
+                     "+VERS-TLS1.1:+SRP";
       break;
     case CURL_SSLVERSION_TLSv1_2:
       prioritylist = GNUTLS_CIPHERS ":-VERS-SSL3.0:-VERS-TLS-ALL:"
-                     "+VERS-TLS1.2";
+                     "+VERS-TLS1.2:+SRP";
       break;
     case CURL_SSLVERSION_SSLv2:
     default:
index 810b8073200c57ab82df7889790cc59e8137a967..da71414f88c2fa8ab4a0799be6ea3c13bd2d5176 100755 (executable)
@@ -1452,6 +1452,7 @@ sub runhttptlsserver {
     $flags .= "--http ";
     $flags .= "--debug 1 " if($debugprotocol);
     $flags .= "--port $port ";
+    $flags .= "--priority NORMAL:+SRP ";
     $flags .= "--srppasswd $srcdir/certs/srp-verifier-db ";
     $flags .= "--srppasswdconf $srcdir/certs/srp-verifier-conf";