diff options
Diffstat (limited to 'testing/softhsm/softhsm-2.5.0-botan_ecb-exception-fix.patch')
| -rw-r--r-- | testing/softhsm/softhsm-2.5.0-botan_ecb-exception-fix.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/softhsm/softhsm-2.5.0-botan_ecb-exception-fix.patch b/testing/softhsm/softhsm-2.5.0-botan_ecb-exception-fix.patch new file mode 100644 index 0000000000..a71081e0ee --- /dev/null +++ b/testing/softhsm/softhsm-2.5.0-botan_ecb-exception-fix.patch @@ -0,0 +1,19 @@ +commit a9a40fc64635cfb924279cae3c42e6946e89718c +Author: tcely <tcely@users.noreply.github.com> +Date: Wed Mar 6 07:14:32 2019 -0500 + + fix protected Exception usage + +diff --git a/src/lib/crypto/Botan_ecb.cpp b/src/lib/crypto/Botan_ecb.cpp +index f27276e..6947aab 100644 +--- a/src/lib/crypto/Botan_ecb.cpp ++++ b/src/lib/crypto/Botan_ecb.cpp +@@ -108,7 +108,7 @@ void ECB_Encryption::finish(secure_vector<byte>& buffer, size_t offset) + padding().add_padding(buffer, bytes_in_final_block, BS); + + if(buffer.size() % BS) +- throw Exception("Did not pad to full block size in " + name()); ++ throw Invalid_State("Did not pad to full block size in " + name()); + + update(buffer, offset); + } |
