(cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
authorWerner Koch <wk@gnupg.org>
Mon, 16 Aug 2004 11:15:55 +0000 (11:15 +0000)
committerWerner Koch <wk@gnupg.org>
Mon, 16 Aug 2004 11:15:55 +0000 (11:15 +0000)
for encrypt-to keys.

sm/ChangeLog
sm/server.c

index 74b22b2..51f46c3 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-16  Werner Koch  <wk@g10code.de>
+
+       * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist
+       for encrypt-to keys.
+
 2004-08-06  Werner Koch  <wk@g10code.com>
 
        * gpgsm.c: New option --with-ephemeral-keys.
index 72bf74a..e39c78a 100644 (file)
@@ -353,7 +353,7 @@ cmd_encrypt (ASSUAN_CONTEXT ctx, char *line)
   rc = 0;
   if (!opt.no_encrypt_to)
     {
-      for (cl=ctrl->server_local->recplist; !rc && cl; cl = cl->next)
+      for (cl=ctrl->server_local->default_recplist; !rc && cl; cl = cl->next)
         if (cl->is_encrypt_to)
           rc = gpgsm_add_cert_to_certlist (ctrl, cl->cert,
                                            &ctrl->server_local->recplist, 1);