aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-11 15:31:37 -0400
committerJack Lloyd <[email protected]>2018-08-11 16:33:47 -0400
commit5cde8edd3ff9f79a9f568a803a5d5189e6993813 (patch)
tree2f60920f12b095affbb451033847a0abc513b661 /src/scripts
parent772830b496b47be647d7b3297caf67557c7867c8 (diff)
Better error checking in Python wrapper
Adopt APIs added in 2.8 Expose botan_error_description which was added in 2.5 but not exported!
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/test_python.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripts/test_python.py b/src/scripts/test_python.py
index fa3f49655..075560670 100644
--- a/src/scripts/test_python.py
+++ b/src/scripts/test_python.py
@@ -80,6 +80,8 @@ def test():
md5 = botan2.hash_function('MD5')
assert md5.output_length() == 16
md5.update('h')
+ md5.clear()
+ md5.update('h')
md5.update('i')
h1 = md5.final()
print("md5 hash: %s (%s)\n" % (hex_encode(h1), '49f68a5c8493ec2c0bf489821c21fc3b'))