summary refs log tree commit diff
path: root/crypto/src/tls/TlsClient.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-07-25 19:58:02 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-07-25 19:58:02 +0700
commitd8187def99004d5be735c9694c4f08f7e5fa0221 (patch)
treeec8b18e46f850f887fe2a646bad2b6a24d35b782 /crypto/src/tls/TlsClient.cs
parentFix Truncate method (diff)
downloadBouncyCastle.NET-ed25519-d8187def99004d5be735c9694c4f08f7e5fa0221.tar.xz
TLS 1.3 client API for external PSKs
Diffstat (limited to 'crypto/src/tls/TlsClient.cs')
-rw-r--r--crypto/src/tls/TlsClient.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/src/tls/TlsClient.cs b/crypto/src/tls/TlsClient.cs
index 4d2e15437..a9356aa4b 100644
--- a/crypto/src/tls/TlsClient.cs
+++ b/crypto/src/tls/TlsClient.cs
@@ -18,6 +18,12 @@ namespace Org.BouncyCastle.Tls
         /// <seealso cref="SessionParameters.PeerCertificate"/>
         TlsSession GetSessionToResume();
 
+        /// <summary>Return the <see cref="TlsPskExternal">external PSKs</see> to offer in the ClientHello.</summary>
+        /// <remarks>This will only be called when TLS 1.3 or higher is amongst the offered protocol versions.</remarks>
+        /// <returns>an <see cref="IList"/> of <see cref="TlsPskExternal"/> instances, or null if none should be
+        /// offered.</returns>
+        IList GetExternalPsks();
+
         bool IsFallback();
 
         /// <returns>(Int32 -> byte[])</returns>