diff options
Diffstat (limited to 'crypto/src/tls/PskIdentity.cs')
-rw-r--r-- | crypto/src/tls/PskIdentity.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/tls/PskIdentity.cs b/crypto/src/tls/PskIdentity.cs index 9b24527bb..082907419 100644 --- a/crypto/src/tls/PskIdentity.cs +++ b/crypto/src/tls/PskIdentity.cs @@ -21,6 +21,11 @@ namespace Org.BouncyCastle.Tls this.m_obfuscatedTicketAge = obfuscatedTicketAge; } + public int GetEncodedLength() + { + return 6 + m_identity.Length; + } + public byte[] Identity { get { return m_identity; } |