diff options
author | lloyd <[email protected]> | 2008-11-11 00:00:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-11 00:00:10 +0000 |
commit | 894a225d14043cbd0cbd42c677ab4063b461fa24 (patch) | |
tree | d86973c4bc9bcddf4ac1970728479bf04e8f6522 /src/cert/x509 | |
parent | e6abb0fd8289619d559ff430dff84f0de4f82808 (diff) |
Remove lookup.h use from DLIES, PK key agreement, DSA param gen, get_enc.cpp
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); } /************************************************* |