summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2021-09-02 13:26:00 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2021-09-02 13:26:00 +1000
commit113658ae7e3df46d864f47ddb87271979ba6186d (patch)
tree25ef86447b30d852272216cd6ba6641bab398569 /crypto
parentmoved test (diff)
downloadBouncyCastle.NET-ed25519-113658ae7e3df46d864f47ddb87271979ba6186d.tar.xz
minor refactoring
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/pkcs/Pkcs10CertificationRequest.cs4
-rw-r--r--crypto/test/src/pkcs/test/PKCS10Test.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/pkcs/Pkcs10CertificationRequest.cs b/crypto/src/pkcs/Pkcs10CertificationRequest.cs
index 28b6ddb5b..10ce89bf0 100644
--- a/crypto/src/pkcs/Pkcs10CertificationRequest.cs
+++ b/crypto/src/pkcs/Pkcs10CertificationRequest.cs
@@ -495,10 +495,10 @@ namespace Org.BouncyCastle.Pkcs
         }
 
         /// <summary>
-        /// Returns X509Extensions if the attribute can be found and returns the extensions block.
+        /// Returns X509Extensions if the Extensions Request attribute can be found and returns the extensions block.
         /// </summary>
         /// <returns>X509Extensions block or null if one cannot be found.</returns>
-        public X509Extensions GetX509Extensions()
+        public X509Extensions GetRequestedExtensions()
         {
             if (reqInfo.Attributes != null)
             {
diff --git a/crypto/test/src/pkcs/test/PKCS10Test.cs b/crypto/test/src/pkcs/test/PKCS10Test.cs
index 7eab8fccd..3a17b53a9 100644
--- a/crypto/test/src/pkcs/test/PKCS10Test.cs
+++ b/crypto/test/src/pkcs/test/PKCS10Test.cs
@@ -113,7 +113,7 @@ namespace Org.BouncyCastle.Pkcs.Tests
             // Disassemble the attributes with the duplicate extensions.
             //
 
-            var extensions = req2.GetX509Extensions();
+            var extensions = req2.GetRequestedExtensions();
 
             X509Extension returnedExtension = extensions.GetExtension(X509Extensions.SubjectAlternativeName);
             Asn1Sequence seq = Asn1Sequence.GetInstance(returnedExtension.GetParsedValue());