summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 22:41:41 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 22:41:41 +0200
commita6eba4ff8b007863eac20693db5dd859f0dcbc70 (patch)
tree223d5c47d637414a3d3e9505c3aaa772d6a93fdd
parentFixed warning in cBlockArea. (diff)
downloadcuberite-a6eba4ff8b007863eac20693db5dd859f0dcbc70.tar
cuberite-a6eba4ff8b007863eac20693db5dd859f0dcbc70.tar.gz
cuberite-a6eba4ff8b007863eac20693db5dd859f0dcbc70.tar.bz2
cuberite-a6eba4ff8b007863eac20693db5dd859f0dcbc70.tar.lz
cuberite-a6eba4ff8b007863eac20693db5dd859f0dcbc70.tar.xz
cuberite-a6eba4ff8b007863eac20693db5dd859f0dcbc70.tar.zst
cuberite-a6eba4ff8b007863eac20693db5dd859f0dcbc70.zip
-rw-r--r--src/PolarSSL++/CallbackSslContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PolarSSL++/CallbackSslContext.h b/src/PolarSSL++/CallbackSslContext.h
index 4e4c1ed7f..3e6edc5f4 100644
--- a/src/PolarSSL++/CallbackSslContext.h
+++ b/src/PolarSSL++/CallbackSslContext.h
@@ -23,6 +23,9 @@ public:
class cDataCallbacks
{
public:
+ // Force a virtual destructor in descendants:
+ virtual ~cDataCallbacks() {}
+
/** Called when PolarSSL wants to read encrypted data from the SSL peer.
The returned value is the number of bytes received, or a PolarSSL error on failure.
The implementation can return POLARSSL_ERR_NET_WANT_READ or POLARSSL_ERR_NET_WANT_WRITE to indicate