diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-18 13:59:57 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-06-18 13:59:57 +0200 |
commit | 83cd49383d6ab2541c3258253824c37d7fce0213 (patch) | |
tree | cc78236eaa7e327e38cca743878e57ac4a398f7f /lib/x509/privkey_pkcs8.c | |
parent | b0c5ba7b3d3779060f7e6cc685bc4098e9dab680 (diff) | |
download | gnutls-83cd49383d6ab2541c3258253824c37d7fce0213.tar.gz |
Exported functions to convert from and to OIDs
Diffstat (limited to 'lib/x509/privkey_pkcs8.c')
-rw-r--r-- | lib/x509/privkey_pkcs8.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c index d9aed063f7..ff8d598457 100644 --- a/lib/x509/privkey_pkcs8.c +++ b/lib/x509/privkey_pkcs8.c @@ -177,7 +177,7 @@ encode_to_private_key_info(gnutls_x509_privkey_t pkey, gnutls_datum_t algo_params = { NULL, 0 }; gnutls_datum_t algo_privkey = { NULL, 0 }; - oid = _gnutls_x509_pk_to_oid(pkey->pk_algorithm); + oid = gnutls_pk_get_oid(pkey->pk_algorithm); if (oid == NULL) { gnutls_assert(); return GNUTLS_E_UNIMPLEMENTED_FEATURE; @@ -1373,7 +1373,7 @@ decode_private_key_info(const gnutls_datum_t * der, /* we only support RSA and DSA private keys. */ - pkey->pk_algorithm = _gnutls_x509_oid2pk_algorithm(oid); + pkey->pk_algorithm = gnutls_oid_to_pk(oid); if (pkey->pk_algorithm == GNUTLS_PK_UNKNOWN) { gnutls_assert(); _gnutls_debug_log |