diff options
Diffstat (limited to 'src/cert/x509/x509_ext.cpp')
-rw-r--r-- | src/cert/x509/x509_ext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cert/x509/x509_ext.cpp b/src/cert/x509/x509_ext.cpp index 3595a0492..54e8be8bd 100644 --- a/src/cert/x509/x509_ext.cpp +++ b/src/cert/x509/x509_ext.cpp @@ -4,9 +4,9 @@ *************************************************/ #include <botan/x509_ext.h> +#include <botan/sha160.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> -#include <botan/lookup.h> #include <botan/oids.h> #include <botan/libstate.h> #include <botan/bit_ops.h> @@ -303,8 +303,8 @@ void Subject_Key_ID::contents_to(Data_Store& subject, Data_Store&) const *************************************************/ Subject_Key_ID::Subject_Key_ID(const MemoryRegion<byte>& pub_key) { - std::auto_ptr<HashFunction> hash(get_hash("SHA-1")); - key_id = hash->process(pub_key); + SHA_160 hash; + key_id = hash.process(pub_key); } /************************************************* |