Fix a build error on ARM (dotnet/corefx#41937)
authorDong-Heon Jung <clamp03@gmail.com>
Mon, 21 Oct 2019 16:09:44 +0000 (01:09 +0900)
committerStephen Toub <stoub@microsoft.com>
Mon, 21 Oct 2019 16:09:44 +0000 (12:09 -0400)
- Add type casting in CryptoNative_X509VerifyCertErrorString

Commit migrated from https://github.com/dotnet/corefx/commit/f359e8c48ea9000c1cc588365daabe396e35afc2

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

index 5dd31d0..eea727a 100644 (file)
@@ -321,7 +321,7 @@ int32_t CryptoNative_X509StoreCtxGetErrorDepth(X509_STORE_CTX* ctx)
 
 const char* CryptoNative_X509VerifyCertErrorString(X509VerifyStatusCode n)
 {
-    return X509_verify_cert_error_string(n);
+    return X509_verify_cert_error_string((long)n);
 }
 
 void CryptoNative_X509CrlDestroy(X509_CRL* a)