[
https://issues.apache.org/jira/browse/CRYPTO-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved CRYPTO-171.
-------------------------
Resolution: Fixed
No longer needed, now that 1.0.x is no longer supported
> OpenSslCryptoRandomNative.c uses syscall(2) which is deprecated on macos M1
> ---------------------------------------------------------------------------
>
> Key: CRYPTO-171
> URL: https://issues.apache.org/jira/browse/CRYPTO-171
> Project: Commons Crypto
> Issue Type: Bug
> Reporter: Sebb
> Priority: Major
>
> Sample warning:
> [exec]
> src/main/native/org/apache/commons/crypto/random/OpenSslCryptoRandomNative.c:219:25:
> warning: 'syscall' is deprecated: first deprecated in macOS 10.12 -
> syscall(2) is unsupported; please switch to a supported interface. For
> SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
> [INFO] [exec] return (unsigned long)syscall(SYS_gettid);
> [INFO] [exec] ^
> [INFO] [exec]
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:746:6:
> note: 'syscall' has been explicitly marked deprecated here
> [INFO] [exec] int syscall(int, ...);
> [INFO] [exec] ^
> [INFO] [exec] 1 warning generated.
> It's not obvious what the replacement should be.
> However, AFAICT the code is only used if OpenSSL version is < VERSION_1_1_X.
> So perhaps that code and its callers could be dropped.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)