NativeCrypto: add missing native function

This should be covered by NativeCryptoTest as well but there was a missing
native function that caused
tests.security.cert.CertificateCertificateRepTest#testReadResolve
to fail.

There was also a missing OpenSSL error catch that made the same test
fail.

(cherry picked from commit 40875857eb5fe3434cbab6fc4517c6ffa52fdc24)

Bug: 8488314
Change-Id: Ib9cafe486228bae1634de275302876098353ec10
1 file changed