138
151
/* Since we only need to discern "traditional format" RSA and DSA
139
152
* keys we can just count the elements.
142
158
else keytype = EVP_PKEY_RSA;
143
159
sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free);
144
160
return d2i_PrivateKey(keytype, a, pp, length);