aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha1/sha160.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-05-22 22:18:21 -0400
committerJack Lloyd <[email protected]>2017-05-22 22:18:21 -0400
commitcb91be3967edab3688b744e150a98d96db89b2fd (patch)
treead818dc31b2a6b2c1fb894cbf3cfcf2a70213bca /src/lib/hash/sha1/sha160.cpp
parent22797129ff2f746f96d3725ab45e043c506664f3 (diff)
parentb136d4e7ca350bb388a1a6d638b1010a2b1e5b73 (diff)
Merge GH #1056 Add HashFunction::copy_state and port to OpenSSL 1.1.0
Diffstat (limited to 'src/lib/hash/sha1/sha160.cpp')
-rw-r--r--src/lib/hash/sha1/sha160.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/hash/sha1/sha160.cpp b/src/lib/hash/sha1/sha160.cpp
index 6ebdba73f..fcca67341 100644
--- a/src/lib/hash/sha1/sha160.cpp
+++ b/src/lib/hash/sha1/sha160.cpp
@@ -10,6 +10,11 @@
namespace Botan {
+std::unique_ptr<HashFunction> SHA_160::copy_state() const
+ {
+ return std::unique_ptr<HashFunction>(new SHA_160(*this));
+ }
+
namespace SHA1_F {
namespace {