aboutsummaryrefslogtreecommitdiffstats
path: root/agent/t-protect.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/t-protect.c')
-rw-r--r--agent/t-protect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/t-protect.c b/agent/t-protect.c
index 5187cf8f7..fee3c561d 100644
--- a/agent/t-protect.c
+++ b/agent/t-protect.c
@@ -173,7 +173,8 @@ test_agent_protect (void)
for (i = 0; i < DIM (specs); i++)
{
- ret = agent_protect (specs[i].key, specs[i].passphrase,
+ ret = agent_protect ((const unsigned char*)specs[i].key,
+ specs[i].passphrase,
&specs[i].result, &specs[i].resultlen);
if (gpg_err_code (ret) != specs[i].ret_expected)
{