Merge "Correct openssl error logging"
This commit is contained in:
@@ -29,14 +29,15 @@ RSA* GetKey(const std::string& serialized_key) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
RSA* key = d2i_RSAPublicKey_bio(bio, NULL);
|
RSA* key = d2i_RSAPublicKey_bio(bio, NULL);
|
||||||
BIO_free(bio);
|
|
||||||
|
|
||||||
if (key == NULL) {
|
if (key == NULL) {
|
||||||
LOGE("GetKey: RSA key deserialization failure: %s",
|
LOGE("GetKey: RSA key deserialization failure: %s",
|
||||||
ERR_error_string(ERR_get_error(), NULL));
|
ERR_error_string(ERR_get_error(), NULL));
|
||||||
|
BIO_free(bio);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIO_free(bio);
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user