ObjFW
Instance Methods | List of all members
<OFTLSSocketDelegate> Protocol Reference

A delegate for classes implementing the OFTLSSocket protocol. More...

#import <ObjFW/OFTLSSocket.h>

Inheritance diagram for <OFTLSSocketDelegate>:
Inheritance graph
[legend]
Collaboration diagram for <OFTLSSocketDelegate>:
Collaboration graph
[legend]

Instance Methods

(bool) - socket:shouldAcceptCertificate:
 This callback is called when the TLS socket wants to know if it should accept the received certificate. More...
 
- Instance Methods inherited from <OFTCPSocketDelegate>
(void) - socket:didConnectToHost:port:exception:
 A method which is called when a socket connected. More...
 
- Instance Methods inherited from <OFStreamSocketDelegate>
(bool) - socket:didAcceptSocket:exception:
 A method which is called when a socket accepted a connection. More...
 
- Instance Methods inherited from <OFStreamDelegate>
(bool) - stream:didReadIntoBuffer:length:exception:
 This method is called when data was read asynchronously from a stream. More...
 
(bool) - stream:didReadLine:exception:
 This method is called when a line was read asynchronously from a stream. More...
 
(nullable OFData *) - stream:didWriteData:bytesWritten:exception:
 This method is called when data was written asynchronously to a stream. More...
 
(nullable OFString *) - stream:didWriteString:encoding:bytesWritten:exception:
 This method is called when a string was written asynchronously to a stream. More...
 
- Instance Methods inherited from <OFObject>
(Class- class
 Returns the class of the object. More...
 
(nullable Class- superclass
 Returns the superclass of the object. More...
 
(unsigned long) - hash
 Returns a 32 bit hash for the object. More...
 
(unsigned int) - retainCount
 Returns the retain count. More...
 
(bool) - isProxy
 Returns whether the object is a proxy object. More...
 
(bool) - allowsWeakReference
 Returns whether the object allows weak references. More...
 
(bool) - isKindOfClass:
 Returns a boolean whether the object of the specified kind. More...
 
(bool) - isMemberOfClass:
 Returns a boolean whether the object is a member of the specified class. More...
 
(bool) - respondsToSelector:
 Returns a boolean whether the object responds to the specified selector. More...
 
(bool) - conformsToProtocol:
 Checks whether the object conforms to the specified protocol. More...
 
(nullable IMP- methodForSelector:
 Returns the implementation for the specified selector. More...
 
(nullable id- performSelector:
 Performs the specified selector. More...
 
(nullable id- performSelector:withObject:
 Performs the specified selector with the specified object. More...
 
(nullable id- performSelector:withObject:withObject:
 Performs the specified selector with the specified objects. More...
 
(nullable id- performSelector:withObject:withObject:withObject:
 Performs the specified selector with the specified objects. More...
 
(nullable id- performSelector:withObject:withObject:withObject:withObject:
 Performs the specified selector with the specified objects. More...
 
(bool) - isEqual:
 Checks two objects for equality. More...
 
(instancetype) - retain
 Increases the retain count. More...
 
(void) - release
 Decreases the retain count. More...
 
(instancetype) - autorelease
 Adds the object to the topmost autorelease pool of the thread's autorelease pool stack. More...
 
(instancetype) - self
 Returns the receiver. More...
 
(bool) - retainWeakReference
 Retain a weak reference to this object. More...
 

Detailed Description

A delegate for classes implementing the OFTLSSocket protocol.

Method Documentation

◆ socket:shouldAcceptCertificate:

- (bool) socket: (id< OFTLSSocket >)  socket
shouldAcceptCertificate: (OFDictionary *)  certificate 
optional

This callback is called when the TLS socket wants to know if it should accept the received certificate.

Note
This is only used to verify certain fields of a certificate to allow for protocol specific verification. The certificate chain is verified using the specified CAs, or the system's CAs if no CAs have been specified.
Parameters
socketThe socket which wants to know if it should accept the received certificate
certificateA dictionary with the fields of the received certificate
Returns
Whether the TLS socket should accept the received certificate chain

The documentation for this protocol was generated from the following file: