evpPkey = PEM_read_bio_PrivateKey(bioPKey, NULL, NULL, (void *)strPassword.c_str()); if (NULL == evpPkey) { BIO_reset(bioPKey); evpPkey = d2i_PrivateKey_bio(bioPKey, NULL); if (NULL == evpPkey) { BIO_reset(bioPKey); ...