]> granicus.if.org Git - curl/commitdiff
yassl doesn't have SSL_get_shutdown() in its OpenSSL() layer so we check for
authorDaniel Stenberg <daniel@haxx.se>
Wed, 14 Mar 2007 23:40:46 +0000 (23:40 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Mar 2007 23:40:46 +0000 (23:40 +0000)
it and avoid it, even if this cripples the CCC command

configure.ac
lib/ssluse.c

index 22c86e36e45cba07caae7bfd9029a0e44a539b72..9bced6cb59e9cf559c480cf49dbfda28aeb19816 100644 (file)
@@ -1023,6 +1023,9 @@ if test X"$OPT_SSL" != Xno; then
         OPENSSL_ENABLED=1
         AC_DEFINE(USE_OPENSSL, 1, [if OpenSSL is in use]))
 
+      dnl yassl doesn't have SSL_get_shutdown ?
+      AC_CHECK_FUNCS( SSL_get_shutdown )
+
       if test $ac_cv_header_openssl_x509_h = no; then
         dnl we don't use the "action" part of the AC_CHECK_HEADERS macro
         dnl since 'err.h' might in fact find a krb4 header with the same
index 5bcc3a1e3603b7ae73f4e6cc90fa5ceff4eb20b2..815289df7f771b908771b0e9c02680f4a2b6cdb7 100644 (file)
@@ -801,6 +801,7 @@ int Curl_ossl_shutdown(struct connectdata *conn, int sockindex)
     } /* while()-loop for the select() */
 
     if(data->set.verbose) {
+#ifdef HAVE_SSL_GET_SHUTDOWN
       switch(SSL_get_shutdown(connssl->handle)) {
       case SSL_SENT_SHUTDOWN:
         infof(data, "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n");
@@ -813,6 +814,7 @@ int Curl_ossl_shutdown(struct connectdata *conn, int sockindex)
               "SSL_RECEIVED__SHUTDOWN\n");
         break;
       }
+#endif
     }
 
     connssl->use = FALSE; /* get back to ordinary socket usage */