From d8187def99004d5be735c9694c4f08f7e5fa0221 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 25 Jul 2021 19:58:02 +0700 Subject: TLS 1.3 client API for external PSKs --- crypto/src/tls/TlsClient.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto/src/tls/TlsClient.cs') 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 /// TlsSession GetSessionToResume(); + /// Return the external PSKs to offer in the ClientHello. + /// This will only be called when TLS 1.3 or higher is amongst the offered protocol versions. + /// an of instances, or null if none should be + /// offered. + IList GetExternalPsks(); + bool IsFallback(); /// (Int32 -> byte[]) -- cgit 1.4.1