pinentry-rs
pinentry-rs copied to clipboard
Percent escape newlines in requests
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.