Kevin J. McCarthy wrote: > Attached is a patch to enable %a for all the pgp commands, except for > pgp_getkeys_command (which is properly documented to only support %r). > > There is a helper glue function, pgp_invoke(), that almost all the > functions use. The fix was simply changing the signas parameter from > NULL to PgpSignAs for each glue function invocation. For the one case > that didn't call pgp_invoke(), pgp_import_command, I manually made the > assignment. > > An alternative to this patch would be to remove the signas parameter > from the glue function entirely, and simply hard code > cctx.signas = PgpSignAs; > in the glue function. However, I didn't feel quite as comfortable > messing with function signatures for a simple patch. > > The patch should be low risk, as the cctx.signas is only used when > evaluating %a, and most people use the stock pgp config commands.
Pushed.
signature.asc
Description: PGP signature
