We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d5ead commit be4e809Copy full SHA for be4e809
1 file changed
src/node_crypto.cc
@@ -1477,12 +1477,7 @@ static bool SafeX509ExtPrint(BIO* out, X509_EXTENSION* ext) {
1477
if (method != X509V3_EXT_get_nid(NID_subject_alt_name))
1478
return false;
1479
1480
- const unsigned char* p = ext->value->data;
1481
- GENERAL_NAMES* names = reinterpret_cast<GENERAL_NAMES*>(ASN1_item_d2i(
1482
- NULL,
1483
- &p,
1484
- ext->value->length,
1485
- ASN1_ITEM_ptr(method->it)));
+ GENERAL_NAMES* names = static_cast<GENERAL_NAMES*>(X509V3_EXT_d2i(ext));
1486
if (names == NULL)
1487
1488
0 commit comments