summary refs log tree commit diff
path: root/crypto/src/tls/AbstractTlsPeer.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-05 21:43:59 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-05 21:43:59 +0700
commit51628afb7a6a9979bcd736af04fd0e01656ef26d (patch)
treea7ffc3e79721168954cc7bf13790a9e74a47d8e3 /crypto/src/tls/AbstractTlsPeer.cs
parentPreprocessor symbol cleanup (diff)
downloadBouncyCastle.NET-ed25519-51628afb7a6a9979bcd736af04fd0e01656ef26d.tar.xz
Add TlsPeer.IgnoreCorruptDtlsRecords
- property controls behaviour when bad_record_mac thrown for DTLS record.
- defaults to 'false' (don't ignore i.e. fail the connection)
- see https://github.com/bcgit/bc-csharp/pull/279
Diffstat (limited to 'crypto/src/tls/AbstractTlsPeer.cs')
-rw-r--r--crypto/src/tls/AbstractTlsPeer.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/tls/AbstractTlsPeer.cs b/crypto/src/tls/AbstractTlsPeer.cs
index 4e1b28e58..6d7c88f1b 100644
--- a/crypto/src/tls/AbstractTlsPeer.cs
+++ b/crypto/src/tls/AbstractTlsPeer.cs
@@ -157,5 +157,7 @@ namespace Org.BouncyCastle.Tls
         {
             return HeartbeatMode.peer_not_allowed_to_send;
         }
+
+        public virtual bool IgnoreCorruptDtlsRecords => false;
     }
 }