Created
December 20, 2021 17:29
-
-
Save MayankPandey01/e7e6a66a4abbd968b07c760571e9adc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//bad code | |
if (!SafeX509ExtPrint(bio.get(), ext)) { | |
CHECK_EQ(1, X509V3_EXT_print(bio.get(), | |
//good code | |
if (!SafeX509ExtPrint(bio.get(), ext) && | |
X509V3_EXT_print(bio.get(), ext, 0, 0) != 1) { | |
info->Set(context, keys[i], Null(env->isolate())).Check(); | |
USE(BIO_reset(bio.get())); | |
continue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment