summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++/BufferedSslContext.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-08-30 16:00:06 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2017-08-30 16:00:06 +0200
commit84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7 (patch)
treeaa1648c2ba260b8576673677435481d371eec7b0 /src/PolarSSL++/BufferedSslContext.h
parentUpdate core plugins to latest version (#3951) (diff)
downloadcuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.gz
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.bz2
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.lz
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.xz
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.tar.zst
cuberite-84941bcc9f25cbe3fd3b2604080d0a1cfd8fbaa7.zip
Diffstat (limited to 'src/PolarSSL++/BufferedSslContext.h')
-rw-r--r--src/PolarSSL++/BufferedSslContext.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/PolarSSL++/BufferedSslContext.h b/src/PolarSSL++/BufferedSslContext.h
deleted file mode 100644
index ab058a52e..000000000
--- a/src/PolarSSL++/BufferedSslContext.h
+++ /dev/null
@@ -1,52 +0,0 @@
-
-// BufferedSslContext.h
-
-// Declares the cBufferedSslContext class representing a SSL context with the SSL peer data backed by a cByteBuffer
-
-
-
-
-
-#pragma once
-
-#include "SslContext.h"
-
-
-
-
-
-class cBufferedSslContext :
- public cSslContext
-{
- typedef cSslContext super;
-
-public:
- /** Creates a new context with the buffers of specified size for the encrypted / decrypted data. */
- cBufferedSslContext(size_t a_BufferSize = 64000);
-
- /** Stores the specified data in the "incoming" buffer, to be process by the SSL decryptor.
- This is the data received from the SSL peer.
- Returns the number of bytes actually stored. If 0 is returned, owner should check the error state. */
- size_t WriteIncoming(const void * a_Data, size_t a_NumBytes);
-
- /** Retrieves data from the "outgoing" buffer, after being processed by the SSL encryptor.
- This is the data to be sent to the SSL peer.
- Returns the number of bytes actually retrieved. */
- size_t ReadOutgoing(void * a_Data, size_t a_DataMaxSize);
-
-protected:
- /** Buffer for the data that has been encrypted into the SSL stream and should be sent out. */
- cByteBuffer m_OutgoingData;
-
- /** Buffer for the data that has come in and needs to be decrypted from the SSL stream. */
- cByteBuffer m_IncomingData;
-
-
- // cSslContext overrides:
- virtual int ReceiveEncrypted(unsigned char * a_Buffer, size_t a_NumBytes) override;
- virtual int SendEncrypted(const unsigned char * a_Buffer, size_t a_NumBytes) override;
-} ;
-
-
-
-