Hey all.  I am trying to determine in my client app if a handshake fails 
because the client and server are not supporting any common ciphers.
In the handshake code, I have the following:

      case SSL_ERROR_SSL:
          /* SSL error, possibly a protocol error. */
          if (DebugSSL)
          {
            ERR_error_string(ERR_get_error(), buf);
            log_error(buf);
          }
          close(sock);
          return 0;
          break;

which is gleaned from studying docs and sample code.  When we test 
it with s_server using no common cipher suites, it returns the following:

error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake 
failure

This is, of course only when we have a cipher mismatch - we haven't gotten 
this message in any other scenario.  Is there any way to get the specific 
message from the OpenSSL library? or does this specific case encompass 
multiple scenarios?  If the latter is true, is there some way we can narrow 
down this case?

TIA
Lou

-- 
Louis LeBlanc
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
[EMAIL PROTECTED]
http://acadia.ne.mediaone.net

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to