| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1463,12 +1463,7 @@ static bool SafeX509ExtPrint(BIO* out, X509_EXTENSION* ext) { | |||
| 1463 | 1463 | if (method != X509V3_EXT_get_nid(NID_subject_alt_name)) | |
| 1464 | 1464 | return false; | |
| 1465 | 1465 | ||
| 1466 | - const unsigned char* p = ext->value->data; | ||
| 1467 | - GENERAL_NAMES* names = reinterpret_cast<GENERAL_NAMES*>(ASN1_item_d2i( | ||
| 1468 | - NULL, | ||
| 1469 | - &p, | ||
| 1470 | - ext->value->length, | ||
| 1471 | - ASN1_ITEM_ptr(method->it))); | ||
| 1466 | + GENERAL_NAMES* names = static_cast<GENERAL_NAMES*>(X509V3_EXT_d2i(ext)); | ||
| 1472 | 1467 | if (names == NULL) | |
| 1473 | 1468 | return false; | |
| 1474 | 1469 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments