const char *password,
unsigned int flags);
int gnutls_x509_privkey_import_openssl (gnutls_x509_privkey_t key,
- const gnutls_datum_t *data, gnutls_x509_crt_fmt_t format,
+ const gnutls_datum_t *data,
const char* password);
int gnutls_x509_privkey_import2 (gnutls_x509_privkey_t key,
if (format == GNUTLS_X509_FMT_PEM)
{
int err;
- err = gnutls_x509_privkey_import_openssl(key, data, format, password);
+ err = gnutls_x509_privkey_import_openssl(key, data, password);
if (err < 0)
{
if (err == GNUTLS_E_DECRYPTION_FAILED) ret = err;
* gnutls_x509_privkey_import_openssl:
* @key: The structure to store the parsed key
* @data: The DER or PEM encoded key.
- * @format: Only PEM is supported
* @password: the password to decrypt the key (if it is encrypted).
*
* This function will convert the given PEM encrypted to
**/
int
gnutls_x509_privkey_import_openssl (gnutls_x509_privkey_t key,
- const gnutls_datum_t *data, gnutls_x509_crt_fmt_t format, const char* password)
+ const gnutls_datum_t *data, const char* password)
{
gnutls_cipher_hd_t handle;
gnutls_cipher_algorithm_t cipher = GNUTLS_CIPHER_UNKNOWN;