diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-09 20:47:55 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-09 20:47:55 +0700 |
commit | 2bf49307ed358d55b7e97f5de5c53b18f58e4478 (patch) | |
tree | 36ace139352da7142682c39021b1286268c42cc7 | |
parent | Add Clone for bool[] (diff) | |
download | BouncyCastle.NET-ed25519-2bf49307ed358d55b7e97f5de5c53b18f58e4478.tar.xz |
Use utility method
-rw-r--r-- | crypto/src/x509/X509Certificate.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs index 2e627dbab..fd156e487 100644 --- a/crypto/src/x509/X509Certificate.cs +++ b/crypto/src/x509/X509Certificate.cs @@ -298,7 +298,7 @@ namespace Org.BouncyCastle.X509 /// </summary> public virtual bool[] GetKeyUsage() { - return keyUsage == null ? null : (bool[]) keyUsage.Clone(); + return Arrays.Clone(keyUsage); } // TODO Replace with something that returns a list of DerObjectIdentifier |