diff options
author | Daniel Salzman <daniel.salzman@nic.cz> | 2020-08-12 14:10:24 +0200 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2020-08-25 21:52:30 +0200 |
commit | b9d1579bc2091c753ff3e48f1ba6092e08183609 (patch) | |
tree | f346977f274a816c5ac160d27f4331f54028f707 /src/libdnssec | |
parent | catalog: log catalog update (diff) | |
download | knot-b9d1579bc2091c753ff3e48f1ba6092e08183609.tar.xz knot-b9d1579bc2091c753ff3e48f1ba6092e08183609.zip |
libdnssec: rename dnssec_keystore_export() to dnssec_keystore_get_private()
Diffstat (limited to 'src/libdnssec')
-rw-r--r-- | src/libdnssec/keystore.h | 6 | ||||
-rw-r--r-- | src/libdnssec/keystore/keystore.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libdnssec/keystore.h b/src/libdnssec/keystore.h index 0975fa75e..a88442eaa 100644 --- a/src/libdnssec/keystore.h +++ b/src/libdnssec/keystore.h @@ -184,7 +184,7 @@ int dnssec_keystore_import(dnssec_keystore_t *store, const dnssec_binary_t *pem, int dnssec_keystore_remove(dnssec_keystore_t *store, const char *id); /*! - * Export public and/or private key from the key store into a DNSSEC key. + * Export private key from the key store into a DNSSEC key. * * The key algorithm has to be set before calling this function. * @@ -194,8 +194,8 @@ int dnssec_keystore_remove(dnssec_keystore_t *store, const char *id); * * \return Error code, DNSSEC_EOK if successful. */ -int dnssec_keystore_export(dnssec_keystore_t *store, const char *id, - dnssec_key_t *key); +int dnssec_keystore_get_private(dnssec_keystore_t *store, const char *id, + dnssec_key_t *key); /*! * Import a DNSSEC private key into key store. diff --git a/src/libdnssec/keystore/keystore.c b/src/libdnssec/keystore/keystore.c index 208a94f70..e58fdea15 100644 --- a/src/libdnssec/keystore/keystore.c +++ b/src/libdnssec/keystore/keystore.c @@ -145,8 +145,8 @@ int dnssec_keystore_remove(dnssec_keystore_t *store, const char *id) } _public_ -int dnssec_keystore_export(dnssec_keystore_t *store, const char *id, - dnssec_key_t *key) +int dnssec_keystore_get_private(dnssec_keystore_t *store, const char *id, + dnssec_key_t *key) { if (!store || !id || dnssec_key_get_algorithm(key) == 0 || !key) { return DNSSEC_EINVAL; |