summaryrefslogtreecommitdiffstats
path: root/agent/divert-scd.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2005-06-16 10:12:03 +0200
committerWerner Koch <wk@gnupg.org>2005-06-16 10:12:03 +0200
commitdeeba405a9a5868ea478db5003be6335ab9aac6f (patch)
treed61d720258fd571ec81a3d3e5d776320b7b1d796 /agent/divert-scd.c
parentNew debugging optionhs, updates to the manual. (diff)
downloadgnupg2-deeba405a9a5868ea478db5003be6335ab9aac6f.tar.xz
gnupg2-deeba405a9a5868ea478db5003be6335ab9aac6f.zip
gcc-4 defaults forced me to edit many many files to get rid of the
char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
Diffstat (limited to 'agent/divert-scd.c')
-rw-r--r--agent/divert-scd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/agent/divert-scd.c b/agent/divert-scd.c
index 41a5dfcda..9d2fa446c 100644
--- a/agent/divert-scd.c
+++ b/agent/divert-scd.c
@@ -139,10 +139,13 @@ static int
encode_md_for_card (const unsigned char *digest, size_t digestlen, int algo,
unsigned char **r_val, size_t *r_len)
{
- byte *frame;
- byte asn[100];
+ unsigned char *frame;
+ unsigned char asn[100];
size_t asnlen;
+ *r_val = NULL;
+ *r_len = 0;
+
asnlen = DIM(asn);
if (gcry_md_algo_info (algo, GCRYCTL_GET_ASNOID, asn, &asnlen))
{
@@ -295,7 +298,7 @@ divert_pksign (CTRL ctrl,
int rc;
char *kid;
size_t siglen;
- char *sigval;
+ unsigned char *sigval;
unsigned char *data;
size_t ndata;