From 0605c07c170a935e179f9ef7e935c2855bc09cb6 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 5 May 2022 22:30:29 +0700 Subject: Mark method obsolete --- crypto/src/tls/TlsUtilities.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/src/tls/TlsUtilities.cs b/crypto/src/tls/TlsUtilities.cs index 0bee76c0a..9a6b76e66 100644 --- a/crypto/src/tls/TlsUtilities.cs +++ b/crypto/src/tls/TlsUtilities.cs @@ -1078,6 +1078,7 @@ namespace Org.BouncyCastle.Tls return result; } + [Obsolete("Will be removed")] public static SignatureAndHashAlgorithm GetSignatureAndHashAlgorithm(TlsContext context, TlsCredentialedSigner signerCredentials) { @@ -2131,7 +2132,7 @@ namespace Org.BouncyCastle.Tls if (IsTlsV13(negotiatedVersion)) { - // Should be using GenerateCertificateVerify13 instead + // Should be using Generate13CertificateVerify instead throw new TlsFatalAlert(AlertDescription.internal_error); } @@ -2370,7 +2371,7 @@ namespace Org.BouncyCastle.Tls /* * RFC 5246 4.7. digitally-signed element needs SignatureAndHashAlgorithm from TLS 1.2 */ - SignatureAndHashAlgorithm algorithm = GetSignatureAndHashAlgorithm(context, credentials); + SignatureAndHashAlgorithm algorithm = GetSignatureAndHashAlgorithm(context.ServerVersion, credentials); TlsStreamSigner streamSigner = credentials.GetStreamSigner(); byte[] signature; -- cgit 1.4.1