summaryrefslogtreecommitdiffstats
path: root/scd/iso7816.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-12-15 12:03:17 +0100
committerWerner Koch <wk@gnupg.org>2009-12-15 12:03:17 +0100
commit34baa18187d51ff54bd44e46cea8c997046f58ff (patch)
tree9f67c94a59d6aeff040a2f84a40ad75488dd50ba /scd/iso7816.c
parentFix bug#1162: error creating home directory (diff)
downloadgnupg2-34baa18187d51ff54bd44e46cea8c997046f58ff.tar.xz
gnupg2-34baa18187d51ff54bd44e46cea8c997046f58ff.zip
Do not use the VMC C reserved word readonly.
Diffstat (limited to 'scd/iso7816.c')
-rw-r--r--scd/iso7816.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/iso7816.c b/scd/iso7816.c
index e3f2c1beb..b55da4148 100644
--- a/scd/iso7816.c
+++ b/scd/iso7816.c
@@ -640,7 +640,7 @@ iso7816_internal_authenticate (int slot, int extended_mode,
returned. In that case a value of -1 uses a large default
(e.g. 4096 bytes), a value larger 256 used that value. */
static gpg_error_t
-do_generate_keypair (int slot, int extended_mode, int readonly,
+do_generate_keypair (int slot, int extended_mode, int read_only,
const unsigned char *data, size_t datalen,
int le,
unsigned char **result, size_t *resultlen)
@@ -653,7 +653,7 @@ do_generate_keypair (int slot, int extended_mode, int readonly,
*resultlen = 0;
sw = apdu_send_le (slot, extended_mode,
- 0x00, CMD_GENERATE_KEYPAIR, readonly? 0x81:0x80, 0,
+ 0x00, CMD_GENERATE_KEYPAIR, read_only? 0x81:0x80, 0,
datalen, (const char*)data,
le >= 0 && le < 256? 256:le,
result, resultlen);