Skip to content

Commit a526f96

Browse files
steveisokSteve Pfister
and
Steve Pfister
authored
Skip ExportPkcs7_Empty test on mobile platforms
* Skip ExportPkcs7_Empty test on mobile platforms The test made it through and was failing on CI. PKCS#7 export is not supported on mobile platforms. * PKCS7_Empty was failing on android b/c 0 length was not allowed. Co-authored-by: Steve Pfister <[email protected]>
1 parent ea274b4 commit a526f96

File tree

2 files changed

+1
-1
lines changed
  • src/libraries

2 files changed

+1
-1
lines changed

src/libraries/Native/Unix/System.Security.Cryptography.Native.Android/pal_x509.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ int32_t AndroidCryptoNative_X509ExportPkcs7(jobject* /*X509Certificate[]*/ certs
154154
int32_t* outLen)
155155
{
156156
abort_if_invalid_pointer_argument (certs);
157-
abort_if_negative_integer_argument (certsLen);
158157

159158
JNIEnv* env = GetJNIEnv();
160159

src/libraries/System.Security.Cryptography.X509Certificates/tests/CollectionTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,7 @@ public static void ImportFromPem_NonCertificateContent_Pkcs7_Fails()
15491549
}
15501550

15511551
[Fact]
1552+
[SkipOnPlatform(PlatformSupport.MobileAppleCrypto, "PKCS#7 export is not available")]
15521553
public static void ExportPkcs7_Empty()
15531554
{
15541555
X509Certificate2Collection cc = new X509Certificate2Collection();

0 commit comments

Comments
 (0)