int _libssh2_ecdsa_new_private(libssh2_ecdsa_ctx ** ec_ctx, LIBSSH2_SESSION * session, const char *filename, unsigned const char *passphrase) { pem_read_bio_func read_ec = (pem_read_bio_func) &PEM_read_bio_ECPrivateKey; (void) session; _libssh2_init_if_needed(); return read_private_key_from_file((void **) ec_ctx, read_ec, filename, passphrase); }
int _libssh2_dsa_new_private_frommemory(libssh2_dsa_ctx ** dsa, LIBSSH2_SESSION * session, const char *filedata, size_t filedata_len, unsigned const char *passphrase) { pem_read_bio_func read_dsa = (pem_read_bio_func) &PEM_read_bio_DSAPrivateKey; (void) session; _libssh2_init_if_needed(); return read_private_key_from_memory((void **) dsa, read_dsa, filedata, filedata_len, passphrase); }