Skip to content

Commit

Permalink
Skip ExportPkcs7_Empty test on mobile platforms
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
steveisok and Steve Pfister authored Sep 27, 2021
1 parent ea274b4 commit a526f96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ int32_t AndroidCryptoNative_X509ExportPkcs7(jobject* /*X509Certificate[]*/ certs
int32_t* outLen)
{
abort_if_invalid_pointer_argument (certs);
abort_if_negative_integer_argument (certsLen);

JNIEnv* env = GetJNIEnv();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,7 @@ public static void ImportFromPem_NonCertificateContent_Pkcs7_Fails()
}

[Fact]
[SkipOnPlatform(PlatformSupport.MobileAppleCrypto, "PKCS#7 export is not available")]
public static void ExportPkcs7_Empty()
{
X509Certificate2Collection cc = new X509Certificate2Collection();
Expand Down

0 comments on commit a526f96

Please sign in to comment.