Fix d2i_PrivateKey() to work as documented