return"TLSCiphertext decrypted in an invalid way.";
caseAlertDescription.BadRecordMAC:
return"Record with an incorrect MAC.";
caseAlertDescription.CertificateExpired:
return"Certificate has expired or is not currently valid";
caseAlertDescription.CertificateRevoked:
return"Certificate was revoked by its signer.";
caseAlertDescription.CertificateUnknown:
return"Certificate Unknown.";
caseAlertDescription.CloseNotify:
return"Connection closed";
caseAlertDescription.DecodeError:
return"A message could not be decoded because some field was out of the specified range or the length of the message was incorrect.";
caseAlertDescription.DecompressionFailiure:
return"The decompression function received improper input (e.g. data that would expand to excessive length).";
caseAlertDescription.DecryptError:
return"TLSCiphertext decrypted in an invalid way: either it wasn`t an even multiple of the block length or its padding values, when checked, weren`t correct.";
caseAlertDescription.DecryptionFailed:
return"Handshake cryptographic operation failed, including being unable to correctly verify a signature, decrypt a key exchange, or validate finished message.";
caseAlertDescription.ExportRestriction:
return"Negotiation not in compliance with export restrictions was detected.";
caseAlertDescription.HandshakeFailiure:
return"Unable to negotiate an acceptable set of security parameters given the options available.";
caseAlertDescription.IlegalParameter:
return"A field in the handshake was out of range or inconsistent with other fields.";
caseAlertDescription.InsuficientSecurity:
return"Negotiation has failed specifically because the server requires ciphers more secure than those supported by the client.";
caseAlertDescription.InternalError:
return"Internal error unrelated to the peer or the correctness of the protocol makes it impossible to continue.";
caseAlertDescription.NoRenegotiation:
return"Invalid renegotiation.";
caseAlertDescription.ProtocolVersion:
return"Unsupported protocol version.";
caseAlertDescription.RecordOverflow:
return"Invalid length on TLSCiphertext record or TLSCompressed record.";
caseAlertDescription.UnexpectedMessage:
return"Invalid message received.";
caseAlertDescription.UnknownCA:
return"CA can't be identified as a trusted CA.";
caseAlertDescription.UnsupportedCertificate:
return"Certificate was of an unsupported type.";
caseAlertDescription.UserCancelled:
return"Handshake cancelled by user.";
default:
return"";
}
#else
return"The authentication or decryption has failed.";