pinentry-rs icon indicating copy to clipboard operation
pinentry-rs copied to clipboard

Percent escape newlines in requests

Open ellerh opened this issue 1 year ago • 0 comments

To follow the Assuan protocol, some characters should be percent escaped. This is needed for multi-line labels.

This is probably a similar issue as PR #2. I didn't use the percent-encoding library as it seems easy enough to implement this manually.

  • assuan.fs (encode_request, send_request): Move the encoding part to a separate function to simplify testing.

ellerh avatar Mar 17 '23 07:03 ellerh