Fix portable versions of X509_get_extension_flags and X509_get_key_usage
Summary: These two functions are currently not correctly implemented when compared to the documented behavior. 1. These functions aren't guaranteed to return correct information until you've called X509_check_purpose on the certificate. Before then, these flag fields are uninitialized. 2. X509_get_key_usage should return UINT32_MAX when the key usage flag isn't present. This fixes both of these issues Reviewed By: yfeldblum Differential Revision: D15767405 fbshipit-source-id: 013bc4c2f694ba7cbd7395626418a0d423d6c1c7
Showing
Please register or sign in to comment