diff options
author | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2008-04-07 13:09:17 +0000 |
---|---|---|
committer | Patrick Monnerat <Patrick.Monnerat@datasphere.ch> | 2008-04-07 13:09:17 +0000 |
commit | a08b6ae813df73c90b2cfc8364c4ff1eb0723d84 (patch) | |
tree | 9437559e59017a129b62cb7772f8be0bd2acf90f /lib | |
parent | 74c500b6ec839112daa83590fdb8c3de5f2071ff (diff) |
Adapt OS400 SSL (qssl.h) to V5R4
Fix qssl.c wrong error message
Upgrade OS400 wrappers and makefiles to 7.18.1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/qssl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/qssl.c b/lib/qssl.c index ad04cc7b3..15684096d 100644 --- a/lib/qssl.c +++ b/lib/qssl.c @@ -90,7 +90,7 @@ static CURLcode Curl_qsossl_init_session(struct SessionHandle * data) memset((char *) &initappstr, 0, sizeof initappstr); initappstr.applicationID = certname; initappstr.applicationIDLen = strlen(certname); - initappstr.protocol = TLSV1_SSLV3; + initappstr.protocol = SSL_VERSION_CURRENT; /* TLSV1 compat. SSLV[23]. */ initappstr.sessionType = SSL_REGISTERED_AS_CLIENT; rc = SSL_Init_Application(&initappstr); @@ -190,7 +190,7 @@ static CURLcode Curl_qsossl_handshake(struct connectdata * conn, int sockindex) default: case CURL_SSLVERSION_DEFAULT: - h->protocol = TLSV1_SSLV3; + h->protocol = SSL_VERSION_CURRENT; /* TLSV1 compat. SSLV[23]. */ break; case CURL_SSLVERSION_TLSv1: @@ -228,11 +228,11 @@ static CURLcode Curl_qsossl_handshake(struct connectdata * conn, int sockindex) return CURLE_SSL_CERTPROBLEM; case SSL_ERROR_IO: - failf(data, "SSL_Handshake(): %s", SSL_Strerror(rc, NULL)); + failf(data, "SSL_Handshake() I/O error: %s", strerror(errno)); return CURLE_SSL_CONNECT_ERROR; default: - failf(data, "SSL_Init(): %s", SSL_Strerror(rc, NULL)); + failf(data, "SSL_Handshake(): %s", SSL_Strerror(rc, NULL)); return CURLE_SSL_CONNECT_ERROR; } |