commit | aee172010aacf8963fa4e56d3a973a2771b0859d | [log] [tgz] |
---|---|---|
author | Robert Kuska <rkuska@redhat.com> | Thu Jul 16 13:48:15 2015 +0200 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Thu Jul 16 13:06:02 2015 -0400 |
tree | a833feb8827c7d25dd992258f0ed69ce4a2a7ca8 | |
parent | 788f5dba54f779310cf0e9ad558b923e729d5d29 [diff] |
sepolgen: Unicode-objects must be encoded before hashing. sha256 hash operates with bytes and in Python3 all strings are unicode by default, we must encode the data before hashing to ensure they are bytes in Python3 Signed-off-by: Robert Kuska <rkuska@redhat.com>