#include <openssl/ssl.h> #import <ObjFW/OFTCPSocket.h> @interface SSLSocket: OFTCPSocket { SSL_CTX *ctx; SSL *ssl; BOOL handsShaken; } - initWithSocket: (OFTCPSocket*)socket; /* Change the return type */ - (SSLSocket*)accept; @end
#include <openssl/ssl.h> #import <ObjFW/OFTCPSocket.h> @interface SSLSocket: OFTCPSocket { SSL_CTX *ctx; SSL *ssl; BOOL handsShaken; } - initWithSocket: (OFTCPSocket*)socket; /* Change the return type */ - (SSLSocket*)accept; @end