18 #ifndef _DECAF_INTERNAL_NET_SSL_OPENSSL_OPENSSLSOCKET_H_ 19 #define _DECAF_INTERNAL_NET_SSL_OPENSSL_OPENSSLSOCKET_H_ 34 class OpenSSLParameters;
83 virtual void connect(
const std::string& host,
int port,
int timeout);
103 virtual void shutdownInput();
108 virtual void shutdownOutput();
113 virtual void setOOBInline(
bool value);
118 virtual void sendUrgentData(
int data);
135 virtual std::vector<std::string> getSupportedCipherSuites()
const;
140 virtual std::vector<std::string> getSupportedProtocols()
const;
145 virtual std::vector<std::string> getEnabledCipherSuites()
const;
150 virtual void setEnabledCipherSuites(
const std::vector<std::string>& suites);
155 virtual std::vector<std::string> getEnabledProtocols()
const;
160 virtual void setEnabledProtocols(
const std::vector<std::string>& protocols);
165 virtual void startHandshake();
170 virtual void setUseClientMode(
bool value);
175 virtual bool getUseClientMode()
const;
180 virtual void setNeedClientAuth(
bool value);
185 virtual bool getNeedClientAuth()
const;
190 virtual void setWantClientAuth(
bool value);
195 virtual bool getWantClientAuth()
const;
217 int read(
unsigned char* buffer,
int size,
int offset,
int length);
235 void write(
const unsigned char* buffer,
int size,
int offset,
int length);
250 void verifyServerCert(
const std::string& serverName);
Wraps a a Normal Socket object and extends or overrides functions in that class to make use of the Op...
Definition: OpenSSLSocket.h:43
Represents an IP address.
Definition: InetAddress.h:33
Definition: SSLParameters.h:30
Container class for parameters that are Common to OpenSSL socket classes.
Definition: OpenSSLParameters.h:41
#define DECAF_API
Definition: Config.h:29
Base interface for any class that wants to represent an output stream of bytes.
Definition: OutputStream.h:39
Definition: SSLSocket.h:34
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25