diff options
Diffstat (limited to 'src/cert/x509')
-rw-r--r-- | src/cert/x509/x509_ca.cpp | 1 | ||||
-rw-r--r-- | src/cert/x509/x509_ext.cpp | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/cert/x509/x509_ca.cpp b/src/cert/x509/x509_ca.cpp index 82f854649..2f158e27f 100644 --- a/src/cert/x509/x509_ca.cpp +++ b/src/cert/x509/x509_ca.cpp @@ -7,7 +7,6 @@ #include <botan/x509stor.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> -#include <botan/lookup.h> #include <botan/look_pk.h> #include <botan/bigint.h> #include <botan/parsing.h> 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); } /************************************************* |