| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1477,12 +1477,7 @@ static bool SafeX509ExtPrint(BIO* out, X509_EXTENSION* ext) { | |||
| 1477 | 1477 | if (method != X509V3_EXT_get_nid(NID_subject_alt_name)) | |
| 1478 | 1478 | return false; | |
| 1479 | 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))); | ||
| 1480 | + GENERAL_NAMES* names = static_cast<GENERAL_NAMES*>(X509V3_EXT_d2i(ext)); | ||
| 1486 | 1481 | if (names == NULL) | |
| 1487 | 1482 | return false; | |
| 1488 | 1483 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments