diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-23 01:18:50 +0100 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2018-12-23 12:33:07 -0800 |
commit | e1147d2f2eb98ef5a39a37fd63d98dae9a301ee2 (patch) | |
tree | a3160f07f7cc957404035d268633c701533c2057 /rand/rand_core | |
parent | 048c97adcedab552e8c5b33567a06de4cb5c0f81 (diff) | |
download | nitrocli-e1147d2f2eb98ef5a39a37fd63d98dae9a301ee2.tar.gz nitrocli-e1147d2f2eb98ef5a39a37fd63d98dae9a301ee2.tar.bz2 |
Return UTF-8 error when handling the passphrase
Currently, invalid UTF-8 code points in the passphrase returned by
pinentry are replaced with replacement characters by
`String::from_utf8_lossy`. This patch changes the code to use
`String::from_utf8` and returns an UTF-8 error if encountered.
Diffstat (limited to 'rand/rand_core')
0 files changed, 0 insertions, 0 deletions