Improve error reporting and logging.
Bug: 19603049
Bug: 19509317
Change-Id: I041c973802e6c567adc5b1f280fc5bac27ba28d6
diff --git a/openssl_err.cpp b/openssl_err.cpp
index 4584716..b9c6153 100644
--- a/openssl_err.cpp
+++ b/openssl_err.cpp
@@ -62,11 +62,12 @@
return TranslateX509v3Error(reason);
#else
case ERR_LIB_ASN1:
- // TODO(swillden): Consider a better return code.
+ LOG_E("ASN.1 parsing error %d", reason);
return KM_ERROR_INVALID_ARGUMENT;
#endif
}
+ LOG_E("Openssl error %d, %d", ERR_GET_LIB(error), reason);
return KM_ERROR_UNKNOWN_ERROR;
}