You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2018/10/04 22:51:00 UTC

[jira] [Commented] (CRYPTO-142) Native library does not load if ENGINE_load_rdrand is not available

    [ https://issues.apache.org/jira/browse/CRYPTO-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16638996#comment-16638996 ] 

Marcelo Vanzin commented on CRYPTO-142:
---------------------------------------

It seems that things are already reasonably separate, and just the {{OpenSslCryptoRandomNative.initSR}} fails in that build image. We could just disable these tests based on some build-time flag so we could have OS X in the CI matrix.

> Native library does not load if ENGINE_load_rdrand is not available
> -------------------------------------------------------------------
>
>                 Key: CRYPTO-142
>                 URL: https://issues.apache.org/jira/browse/CRYPTO-142
>             Project: Commons Crypto
>          Issue Type: Bug
>          Components: Native
>    Affects Versions: 1.0.0
>            Reporter: Marcelo Vanzin
>            Priority: Major
>
> Found this when running tests on Travis:
> {noformat}
> java.security.GeneralSecurityException: CryptoRandom: [org.apache.commons.crypto.random.OpenSslCryptoRandom] failed with java.lang.reflect.InvocationTargetException
> 	at org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.security.GeneralSecurityException: Native library could not be initialised
> 	at org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.lang.UnsatisfiedLinkError: ENGINE_load_rdrand
> {noformat}
> It seems that the OpenSSL library available on the build machine does not have that function. It would be nice to allow the rest of the native code (e.g. the ciphers) to still work in that situation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)