aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-scd.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/call-scd.c')
-rw-r--r--agent/call-scd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/call-scd.c b/agent/call-scd.c
index 60365c980..67b2f31ae 100644
--- a/agent/call-scd.c
+++ b/agent/call-scd.c
@@ -1001,6 +1001,11 @@ agent_card_pksign (ctrl_t ctrl,
if (rc)
return rc;
+ /* FIXME: In the mdalgo case (INDATA,INDATALEN) might be long and
+ * thus we can't convey it on a single Assuan line. */
+ if (!mdalgo)
+ gpg_error (GPG_ERR_NOT_IMPLEMENTED);
+
if (indatalen*2 + 50 > DIM(line))
return unlock_scd (ctrl, gpg_error (GPG_ERR_GENERAL));