summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++/CallbackSslContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PolarSSL++/CallbackSslContext.h')
-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