summaryrefslogtreecommitdiff
path: root/lib/pubkey.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-25 13:12:19 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-03 11:57:52 +0200
commita789ad07e1de01dec16d10c56bec8ca8be855e24 (patch)
treebdbe661480f4b07cb8b06021ac6b79b4a1b9e03c /lib/pubkey.c
parent2b9280383710838fcfd61bcee13a7725b7cd08b1 (diff)
downloadgnutls-a789ad07e1de01dec16d10c56bec8ca8be855e24.tar.gz
cleanup: removed unnecessary/duplicate parameters in functions
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/pubkey.c')
-rw-r--r--lib/pubkey.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/pubkey.c b/lib/pubkey.c
index 18872cd227..46d45e0690 100644
--- a/lib/pubkey.c
+++ b/lib/pubkey.c
@@ -455,7 +455,6 @@ gnutls_pubkey_export(gnutls_pubkey_t key,
result =
_gnutls_x509_encode_and_copy_PKI_params(spk, "",
- key->pk_algorithm,
&key->params);
if (result < 0) {
gnutls_assert();
@@ -520,7 +519,6 @@ gnutls_pubkey_export2(gnutls_pubkey_t key,
result =
_gnutls_x509_encode_and_copy_PKI_params(spk, "",
- key->pk_algorithm,
&key->params);
if (result < 0) {
gnutls_assert();
@@ -578,7 +576,7 @@ gnutls_pubkey_get_key_id(gnutls_pubkey_t key, unsigned int flags,
}
ret =
- _gnutls_get_key_id(key->pk_algorithm, &key->params,
+ _gnutls_get_key_id(&key->params,
output_data, output_data_size, flags);
if (ret < 0) {
gnutls_assert();
@@ -1050,7 +1048,6 @@ int gnutls_x509_crt_set_pubkey(gnutls_x509_crt_t crt, gnutls_pubkey_t key)
result = _gnutls_x509_encode_and_copy_PKI_params(crt->cert,
"tbsCertificate.subjectPublicKeyInfo",
- key->pk_algorithm,
&key->params);
if (result < 0) {
@@ -1089,7 +1086,7 @@ int gnutls_x509_crq_set_pubkey(gnutls_x509_crq_t crq, gnutls_pubkey_t key)
result = _gnutls_x509_encode_and_copy_PKI_params
(crq->crq,
"certificationRequestInfo.subjectPKInfo",
- key->pk_algorithm, &key->params);
+ &key->params);
if (result < 0) {
gnutls_assert();