]> granicus.if.org Git - curl/commitdiff
Lots of users on Windows have reported getting the "SSL: couldn't set
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Mar 2006 22:35:51 +0000 (22:35 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Mar 2006 22:35:51 +0000 (22:35 +0000)
callback" error message so I've now made the setting of that callback not be
as critical as before. The function is only used for additional loggging/
trace anyway so a failure just means slightly less data. It should still be
able to proceed and connect fine to the server.

CHANGES
RELEASE-NOTES
lib/ssluse.c

diff --git a/CHANGES b/CHANGES
index 9f6e54a8b79c28aaa6d3635e7f599b1deb58e71a..a41ae9bd6c0a0ca3d00d47cc40a39ba1f91c0117 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,13 @@
 
                                   Changelog
 
+Daniel (6 March 2006)
+- Lots of users on Windows have reported getting the "SSL: couldn't set
+  callback" error message so I've now made the setting of that callback not be
+  as critical as before. The function is only used for additional loggging/
+  trace anyway so a failure just means slightly less data. It should still be
+  able to proceed and connect fine to the server.
+
 Daniel (4 March 2006)
 - Thomas Klausner provided a patch written by Todd Vierling in bug report
   #1442471 that fixes a build problem on Interix.
index a464efb42a71fe8dd09488db9bdcb89aada13606..c0fc1610e7b95c95a5d0596f7650b1e6a8d4762b 100644 (file)
@@ -15,12 +15,14 @@ This release includes the following changes:
 
 This release includes the following bugfixes:
 
+ o "SSL: couldn't set callback" is now a less serious problem
  o Interix build fix
  o fixed "hang" when out of file handles at start
+ o prevent FTP uploads to URLs with trailing slash
 
 Other curl-related news since the previous public release:
 
- o 
+ o pycurl-7.15.2 has been released: http://pycurl.sf.net
 
 This release would not have looked like this without help, code, reports and
 advice from friends like these:
index fdc540e90564afbc6563945eab9ecc0f88eda2e1..046003c42a18e475a39664d1207acd3babfae49c 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -1167,15 +1167,15 @@ Curl_ossl_connect(struct connectdata *conn,
 
 #ifdef SSL_CTRL_SET_MSG_CALLBACK
   if (data->set.fdebug) {
+    /* the SSL trace callback is only used for verbose logging so we only
+       inform about failures of setting it */
     if (!SSL_CTX_callback_ctrl(connssl->ctx, SSL_CTRL_SET_MSG_CALLBACK,
                                (void (*)(void))ssl_tls_trace)) {
-      failf(data, "SSL: couldn't set callback!");
-      return CURLE_SSL_CONNECT_ERROR;
+      infof(data, "SSL: couldn't set callback!");
     }
-
-    if (!SSL_CTX_ctrl(connssl->ctx, SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, conn)) {
-      failf(data, "SSL: couldn't set callback argument!");
-      return CURLE_SSL_CONNECT_ERROR;
+    else if (!SSL_CTX_ctrl(connssl->ctx, SSL_CTRL_SET_MSG_CALLBACK_ARG, 0,
+                           conn)) {
+      infof(data, "SSL: couldn't set callback argument!");
     }
   }
 #endif