aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-05-05 06:07:11 +0000
committerWerner Koch <[email protected]>2020-05-05 06:07:11 +0000
commit314859d7e7de5010ca1e9d90b83acf3bc8493631 (patch)
tree7fb017efa8cac15991ce5fc0c8839d7db2c2c8c6 /scd/app-common.h
parentscd:nks: Add do_with_keygrip and implement a cache. (diff)
downloadgnupg-314859d7e7de5010ca1e9d90b83acf3bc8493631.tar.gz
gnupg-314859d7e7de5010ca1e9d90b83acf3bc8493631.zip
scd: Extend an internal function to also return the algo.
* scd/app-help.c (app_help_get_keygrip_string_pk): Add optional arg r_algo. Change all callers. (app_help_get_keygrip_string): Ditto. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-common.h')
-rw-r--r--scd/app-common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index 57618c30f..ee0ba0e2e 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -217,9 +217,10 @@ app_get_slot (app_t app)
unsigned int app_help_count_bits (const unsigned char *a, size_t len);
gpg_error_t app_help_get_keygrip_string_pk (const void *pk, size_t pklen,
char *hexkeygrip,
- gcry_sexp_t *r_pkey);
+ gcry_sexp_t *r_pkey,
+ int *r_algo);
gpg_error_t app_help_get_keygrip_string (ksba_cert_t cert, char *hexkeygrip,
- gcry_sexp_t *r_pkey);
+ gcry_sexp_t *r_pkey, int *r_algo);
gpg_error_t app_help_pubkey_from_cert (const void *cert, size_t certlen,
unsigned char **r_pk, size_t *r_pklen);
size_t app_help_read_length_of_cert (int slot, int fid, size_t *r_certoff);