1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/src/crypto/tls/TlsUtilities.cs b/crypto/src/crypto/tls/TlsUtilities.cs
index 48eb9d375..698bf6da6 100644
--- a/crypto/src/crypto/tls/TlsUtilities.cs
+++ b/crypto/src/crypto/tls/TlsUtilities.cs
@@ -1199,11 +1199,14 @@ namespace Org.BouncyCastle.Crypto.Tls
{
byte hashAlgorithm = signatureAndHashAlgorithm.Hash;
- // TODO Support values in the "Reserved for Private Use" range
- if (!HashAlgorithm.IsPrivate(hashAlgorithm))
+ if (HashAlgorithm.IsRecognized(hashAlgorithm))
{
handshakeHash.TrackHashAlgorithm(hashAlgorithm);
}
+ else //if (HashAlgorithm.IsPrivate(hashAlgorithm))
+ {
+ // TODO Support values in the "Reserved for Private Use" range
+ }
}
}
}
|