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

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

#import <ObjFW/OFTLSSocket.h>

Instance Methods

(bool) - socket:shouldAcceptCertificate:
 This callback is called when the TLS socket wants to know if it should accept the received certificate. More...
 

Detailed Description

A delegate for classes implementing the OFTLSSocket protocol.

Method Documentation

- (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 certificatechain

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