33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmnet/dcmtrans.h" 35 #include "dcmtk/ofstd/ofstream.h" 40 #include <openssl/ssl.h> 84 virtual DcmTransportLayerStatus
renegotiate(
const char *newSuite);
92 virtual ssize_t
read(
void *buf,
size_t nbyte);
100 virtual ssize_t
write(
void *buf,
size_t nbyte);
106 virtual void close();
120 virtual unsigned long getPeerCertificate(
void *buf,
unsigned long bufLen);
144 virtual const char *
errorString(DcmTransportLayerStatus code);
virtual OFBool networkDataAvailable(int timeout)
checks if data is available to be read on the transport connection.
this class represents a TLS (Transport Layer Security) V1 based secure transport connection.
SSL * tlsConnection
pointer to the TLS connection structure used by the OpenSSL library
virtual OFString & dumpConnectionParameters(OFString &str)
dump the characteristics of the current connection
this class represents a TCP/IP based transport connection which can be a transparent TCP/IP socket co...
DcmTLSConnection & operator=(const DcmTLSConnection &)
private undefined assignment operator
DcmTLSConnection(int openSocket, SSL *newTLSConnection)
constructor.
virtual DcmTransportLayerStatus clientSideHandshake()
performs client side handshake on established socket.
virtual unsigned long getPeerCertificateLength()
returns the size in bytes of the peer certificate of a secure connection.
virtual OFBool isTransparentConnection()
returns OFTrue if this connection is a transparent TCP connection, OFFalse if the connection is a sec...
virtual void close()
Closes the transport connection.
virtual DcmTransportLayerStatus renegotiate(const char *newSuite)
performs a re-negotiation of the connection with different connection parameters. ...
virtual ssize_t write(void *buf, size_t nbyte)
attempts to write nbyte bytes from the given buffer to the transport connection.
unsigned long lastError
last error code returned by the OpenSSL library
virtual const char * errorString(DcmTransportLayerStatus code)
returns an error string for a given error code.
a simple string class that implements a subset of std::string.
virtual ~DcmTLSConnection()
destructor
virtual DcmTransportLayerStatus serverSideHandshake()
performs server side handshake on established socket.
virtual ssize_t read(void *buf, size_t nbyte)
attempts to read nbyte bytes from the transport connection and writes them into the given buffer...