diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-06 16:21:22 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-06 16:21:22 +0100 |
commit | 3090a8b9ac820b0cca024cfe0bc3f858ab6778a6 (patch) | |
tree | 1bd662ba46f830d92f869c345aeffb87a6820f05 /openpgp/src/parse | |
parent | c99f7bbc3d59faa243af8f816496e78dada2c962 (diff) |
openpgp: Notation data keys are UTF-8 strings.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/parse.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs index dd0b8789..1f47bf99 100644 --- a/openpgp/src/parse/parse.rs +++ b/openpgp/src/parse/parse.rs @@ -1301,7 +1301,8 @@ impl Subpacket { } SubpacketValue::NotationData( NotationData::new( - &php.parse_bytes("notation name", name_len)?, + std::str::from_utf8( + &php.parse_bytes("notation name", name_len)?)?, &php.parse_bytes("notation value", value_len)?, Some(flags.into()))) }, |