diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-05 22:30:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-05-05 22:30:29 +0700 |
commit | 0605c07c170a935e179f9ef7e935c2855bc09cb6 (patch) | |
tree | 3942be8f7dba948725651e9180a74b09128e6802 | |
parent | Fix tests for stream signers (diff) | |
download | BouncyCastle.NET-ed25519-0605c07c170a935e179f9ef7e935c2855bc09cb6.tar.xz |
Mark method obsolete
-rw-r--r-- | crypto/src/tls/TlsUtilities.cs | 5 |
1 files 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; |