diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-14 23:45:24 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-07-14 23:45:24 +0700 |
commit | 7abd4af6873142092f5f38f93888a73c0a1bd17a (patch) | |
tree | 6039a22223a82fa0ad7194433f753910664a5afd /crypto/src/tls/TlsECDHKeyExchange.cs | |
parent | Refactoring around TlsEncryptor (diff) | |
download | BouncyCastle.NET-ed25519-7abd4af6873142092f5f38f93888a73c0a1bd17a.tar.xz |
Avoid redundant CheckUsageInRole calls
Diffstat (limited to 'crypto/src/tls/TlsECDHKeyExchange.cs')
-rw-r--r-- | crypto/src/tls/TlsECDHKeyExchange.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tls/TlsECDHKeyExchange.cs b/crypto/src/tls/TlsECDHKeyExchange.cs index 45e83f8ad..e7e2981d5 100644 --- a/crypto/src/tls/TlsECDHKeyExchange.cs +++ b/crypto/src/tls/TlsECDHKeyExchange.cs @@ -41,7 +41,7 @@ namespace Org.BouncyCastle.Tls public override void ProcessServerCertificate(Certificate serverCertificate) { - this.m_ecdhPeerCertificate = serverCertificate.GetCertificateAt(0).CheckUsageInRole(ConnectionEnd.server, + this.m_ecdhPeerCertificate = serverCertificate.GetCertificateAt(0).CheckUsageInRole( TlsCertificateRole.ECDH); } @@ -73,7 +73,7 @@ namespace Org.BouncyCastle.Tls public override void ProcessClientCertificate(Certificate clientCertificate) { - this.m_ecdhPeerCertificate = clientCertificate.GetCertificateAt(0).CheckUsageInRole(ConnectionEnd.client, + this.m_ecdhPeerCertificate = clientCertificate.GetCertificateAt(0).CheckUsageInRole( TlsCertificateRole.ECDH); } |