50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
OFString *
OFTLSStreamErrorCodeDescription(OFTLSStreamErrorCode errorCode)
{
switch (errorCode) {
case OFTLSStreamErrorCodeInitializationFailed:
return @"Initialization of TLS context failed";
case OFTLSStreamErrorCodeCertificateVerificationFailed:
return @"Verification of the certificate failed";
case OFTLSStreamErrorCodeCertificateIssuerUntrusted:
return @"The certificate has an untrusted or unknown issuer";
case OFTLSStreamErrorCodeCertificateNameMismatch:
return @"The certificate is for a different name";
case OFTLSStreamErrorCodeCertificatedExpired:
return @"The certificate has expired or is not yet valid";
case OFTLSStreamErrorCodeCertificateRevoked:
|
|
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
OFString *
OFTLSStreamErrorCodeDescription(OFTLSStreamErrorCode errorCode)
{
switch (errorCode) {
case OFTLSStreamErrorCodeInitializationFailed:
return @"Initialization of TLS context failed";
case OFTLSStreamErrorCodeCertificateVerificationFailed:
return @"Failed to verify certificate";
case OFTLSStreamErrorCodeCertificateIssuerUntrusted:
return @"The certificate has an untrusted or unknown issuer";
case OFTLSStreamErrorCodeCertificateNameMismatch:
return @"The certificate is for a different name";
case OFTLSStreamErrorCodeCertificatedExpired:
return @"The certificate has expired or is not yet valid";
case OFTLSStreamErrorCodeCertificateRevoked:
|