commit | 325ce8a74236f16db63c1971a99aeabf55e61a57 | [log] [tgz] |
---|---|---|
author | Kenny Root <kroot@google.com> | Mon Apr 01 12:34:03 2013 -0700 |
committer | Kenny Root <kroot@google.com> | Mon Apr 01 12:59:16 2013 -0700 |
tree | b71e10d0cb210adc79e45b0275d44eca25b9a286 | |
parent | 55f5e1c22658a330ca9c49999354f3e9adef25d0 [diff] |
NativeCrypto: adjust thrown exceptions Should be throwing CertificateException when InputStream is null. Sometimes OpenSSL doesn't push an error onto the list when PEM encoding fails. This can be seen with the call to PEM_read_bio_X509 with hyts_badpem.cer Throw a generic RuntimeException instead. (cherry picked from commit d14eedd3c70f67a0d7af71b56dcf7b8e4f030bdd) Bug: 8488314 Change-Id: I716c089c00ab477b4803bdd774681e52384eb95d