49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
+
+
+
+
+
+
+
+
+
+
|
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:
return @"The certificate has been revoked";
default:
return @"Unknown error";
}
}
@implementation OFTLSStreamHandshakeDelegate
- (void)dealloc
|