diff --git a/sm/ChangeLog b/sm/ChangeLog index 74b22b295..51f46c335 100644 --- a/sm/ChangeLog +++ b/sm/ChangeLog @@ -1,3 +1,8 @@ +2004-08-16 Werner Koch + + * server.c (cmd_encrypt): Use DEFAULT_RECPLIST and not recplist + for encrypt-to keys. + 2004-08-06 Werner Koch * gpgsm.c: New option --with-ephemeral-keys. diff --git a/sm/server.c b/sm/server.c index 72bf74afa..e39c78a8d 100644 --- a/sm/server.c +++ b/sm/server.c @@ -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);