  {
    int retval = 0;
    struct ssl_connect_data *connssl = &conn->ssl[sockindex];
-@@ -999,9 +1014,9 @@ int Curl_ossl_shutdown(struct connectdata *conn, int sockindex)
+@@ -997,9 +1012,9 @@ int Curl_ossl_shutdown(struct connectdata *conn, int sockindex)
       we do not send one. Let's hope other servers do the same... */
  
    if(data->set.ftp_ccc == CURLFTPSSL_CCC_ACTIVE)

 
     if(SSL_ERROR_WANT_READ == detail) {
       connssl->connecting_state = ssl_connect_2_reading;
@@ -2340,7 +2355,7 @@ static CURLcode ossl_connect_step2(struct connectdata *conn, int sockindex)
          (reason == SSL_R_CERTIFICATE_VERIFY_FAILED)) {
         result = CURLE_SSL_CACERT;
 

                                       data->set.ssl.fsslctxp);
     if(result) {
       failf(data, "error signaled by ssl ctx callback");
@@ -2218,10 +2232,10 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
   }
 
   /* Lets make an SSL structure */
