Fix strerror vs. gpg_strerror usage.
[gnupg.git] / agent / t-protect.c
index a14e5e1..4b6e0b4 100644 (file)
@@ -174,7 +174,7 @@ test_agent_protect (void)
     {
       ret = agent_protect ((const unsigned char*)specs[i].key,
                            specs[i].passphrase,
     {
       ret = agent_protect ((const unsigned char*)specs[i].key,
                            specs[i].passphrase,
-                          &specs[i].result, &specs[i].resultlen);
+                          &specs[i].result, &specs[i].resultlen, 0);
       if (gpg_err_code (ret) != specs[i].ret_expected)
        {
          printf ("agent_protect() returned `%i/%s'; expected `%i/%s'\n",
       if (gpg_err_code (ret) != specs[i].ret_expected)
        {
          printf ("agent_protect() returned `%i/%s'; expected `%i/%s'\n",