You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// WARNING: This function is difficult to use correctly. Callers should pass a// non-NULL |out_critical| and check both the return value and |*out_critical|// to handle errors. If the return value is NULL and |*out_critical| is not -1,// there was an error. Otherwise, the function succeeded and but may return NULL// for a missing extension. Callers should pass NULL to |out_idx| so that// duplicate extensions are handled correctly.
The internal callers of X509_CRL_get_ext_d2i() and X509_REVOKED_get_ext_d2i() handle this closer to correctly, although you can't rely on the library setting an error code if NULL is returned and critical != -1, and I think -2 (multiple extensions of type nid found) should be an error.
Quoting the BoringSSL documentation, which is very explicit about it:
The internal callers of
X509_CRL_get_ext_d2i()
andX509_REVOKED_get_ext_d2i()
handle this closer to correctly, although you can't rely on the library setting an error code ifNULL
is returned andcritical != -1
, and I think-2
(multiple extensions of typenid
found) should be an error.rust-openssl/openssl/src/x509/mod.rs
Lines 1950 to 1974 in 83b3186
The text was updated successfully, but these errors were encountered: