summary refs log tree commit diff
path: root/crypto/src/x509
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-08-09 20:47:55 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-08-09 20:47:55 +0700
commit2bf49307ed358d55b7e97f5de5c53b18f58e4478 (patch)
tree36ace139352da7142682c39021b1286268c42cc7 /crypto/src/x509
parentAdd Clone for bool[] (diff)
downloadBouncyCastle.NET-ed25519-2bf49307ed358d55b7e97f5de5c53b18f58e4478.tar.xz
Use utility method
Diffstat (limited to '')
-rw-r--r--crypto/src/x509/X509Certificate.cs2
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