summaryrefslogtreecommitdiff
path: root/lib/x509/privkey_pkcs8.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-06-18 13:59:57 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-06-18 13:59:57 +0200
commit83cd49383d6ab2541c3258253824c37d7fce0213 (patch)
treecc78236eaa7e327e38cca743878e57ac4a398f7f /lib/x509/privkey_pkcs8.c
parentb0c5ba7b3d3779060f7e6cc685bc4098e9dab680 (diff)
downloadgnutls-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.c4
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