diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-12-02 16:13:32 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-12-02 16:13:32 +0100 |
commit | f1ccfac037766fe7f3db33640fcdca3ba496aeaf (patch) | |
tree | 5d1ebf06111134184de135b1226d2d80c289c18c /lib/ncrypto_nss.c | |
parent | 5e1bd25811ad476fee2cba5ec3ce83d20c74baf6 (diff) | |
download | ncrypto-f1ccfac037766fe7f3db33640fcdca3ba496aeaf.tar.gz ncrypto-f1ccfac037766fe7f3db33640fcdca3ba496aeaf.tar.xz ncrypto-f1ccfac037766fe7f3db33640fcdca3ba496aeaf.zip |
Drop ncr_private_key_create ().local
The current API exposes NSS internal mechanisms, drop it for now.
Perhaps a better interface can be added in the future.
Diffstat (limited to 'lib/ncrypto_nss.c')
-rw-r--r-- | lib/ncrypto_nss.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/ncrypto_nss.c b/lib/ncrypto_nss.c index 46716ea..6207149 100644 --- a/lib/ncrypto_nss.c +++ b/lib/ncrypto_nss.c @@ -518,30 +518,6 @@ private_key_export_components (struct ncr_private_key *key, PRArenaPool *arena, return CKR_OK; } -/* FIXME: public_value should not be necessary, it is somewhere inside "der". */ -CK_RV -ncr_private_key_create (struct ncr_private_key **key, CK_KEY_TYPE type, - _Bool sensitive, const void *der, size_t der_size, - const void *public_value, size_t public_value_size) -{ - SECItem der_key; - SECItem public; - CK_RV res; - - res = ensure_ncr_is_open (); - if (res != CKR_OK) - return res; - - g_return_val_if_fail (key != NULL, CKR_ARGUMENTS_BAD); - g_return_val_if_fail (der != NULL, CKR_ARGUMENTS_BAD); - - der_key.data = (void *)der; - der_key.len = der_size; - public.data = (void *)public_value; - public.len = public_value_size; - return private_key_create (key, type, sensitive, &der_key, &public); -} - CK_RV ncr_private_key_set_sensitive (struct ncr_private_key *key) { |