EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SSL Error Code 75812 - Client SSL Socket

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#5169
Posted: 02/25/2008 12:01:45
by Andrew Milne (Standard support level)
Joined: 06/16/2006
Posts: 18

Hello,

I'm getting an error 75812 when using the Client SSL Socket. I can't find a description of this in the SBB Manual (it only goes up to 75801).

Can anyone tell me what this corresponds to? Is there a mapping between the SBB SSL error codes and standard SSL error codes?

Thanks.
#5170
Posted: 02/25/2008 12:17:19
by Eugene Mayevski (EldoS Corp.)

As I understand it's a remote side that sends you this information, right?

The error is ERROR_SSL_INSUFFICIENT_SECURITY.

From RFC4346:

insufficient_security
Returned instead of handshake_failure when a negotiation has
failed specifically because the server requires ciphers more
secure than those supported by the client. This message is
always fatal.



The mapping is as follows:

function ConvertToErrorCode(Desc: TSBAlertDescription): integer;
begin
case Desc of
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCloseNotify:
Result := ERROR_SSL_CLOSE_NOTIFY;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUnexpectedMessage:
Result := ERROR_SSL_UNEXPECTED_MESSAGE;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adBadRecordMac:
Result := ERROR_SSL_BAD_RECORD_MAC;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecryptionFailed:
Result := ERROR_SSL_DECRYPTION_FAILED;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adRecordOverflow:
Result := ERROR_SSL_RECORD_OVERFLOW;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecompressionFailure:
Result := ERROR_SSL_DECOMPRESSION_FAILURE;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adHandshakeFailure:
Result := ERROR_SSL_HANDSHAKE_FAILURE;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adNoCertificate:
Result := ERROR_SSL_NO_CERTIFICATE;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adBadCertificate:
Result := ERROR_SSL_BAD_CERTIFICATE;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUnsupportedCertificate:
Result := ERROR_SSL_UNSUPPORTED_CERTIFICATE;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCertificateRevoked:
Result := ERROR_SSL_CERTIFICATE_REVOKED;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCertificateExpired:
Result := ERROR_SSL_CERTIFICATE_EXPIRED;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCertificateUnknown:
Result := ERROR_SSL_CERTIFICATE_UNKNOWN;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adIllegalParameter:
Result := ERROR_SSL_ILLEGAL_PARAMETER;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUnknownCa:
Result := ERROR_SSL_UNKNOWN_CA;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adAccessDenied:
Result := ERROR_SSL_ACCESS_DENIED;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecodeError:
Result := ERROR_SSL_DECODE_ERROR;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecryptError:
Result := ERROR_SSL_DECRYPT_ERROR;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adExportRestriction:
Result := ERROR_SSL_EXPORT_RESTRICTION;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adProtocolVersion:
Result := ERROR_SSL_PROTOCOL_VERSION;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adInsufficientSecurity:
Result := ERROR_SSL_INSUFFICIENT_SECURITY;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adInternalError:
Result := ERROR_SSL_INTERNAL_ERROR;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUserCanceled:
Result := ERROR_SSL_USER_CANCELED;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adNoRenegotiation:
Result := ERROR_SSL_NO_RENEGOTIATION;
{$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUnknown_Srp_UserName:
Result := ERROR_SSL_NO_RENEGOTIATION;
else
Result := ERROR_SSL_UNKNOWN_PROTOCOL_ERROR;
end;
end;

function ConvertSSLError(AD: byte): TSBAlertDescription;
begin
case AD of
0: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCloseNotify;
10: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUnexpectedMessage;
20: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adBadRecordMac;
21: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecryptionFailed;
22: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adRecordOverflow;
30: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecompressionFailure;
40: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adHandshakeFailure;
42: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adBadCertificate;
43: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUnsupportedCertificate;
44: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCertificateRevoked;
45: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCertificateExpired;
46: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adCertificateUnknown;
47: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adIllegalParameter;
48: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUnknownCA;
49: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adAccessDenied;
50: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecodeError;
51: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adDecryptError;
60: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adExportRestriction;
70: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adProtocolVersion;
71: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adInsufficientSecurity;
90: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adUserCanceled;
100: Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adNoRenegotiation;
else
Result := {$IFDEF CHROME}TSBAlertDescription.{$ENDIF}adInternalError;
end;
end;


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 3047 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!