diff options
Diffstat (limited to 'src/x509_key.cpp')
-rw-r--r-- | src/x509_key.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/x509_key.cpp b/src/x509_key.cpp index f327aac16..26ce16a72 100644 --- a/src/x509_key.cpp +++ b/src/x509_key.cpp @@ -11,7 +11,6 @@ #include <botan/pk_algs.h> #include <botan/oids.h> #include <botan/pem.h> -#include <botan/libstate.h> #include <memory> namespace Botan { @@ -98,8 +97,7 @@ Public_Key* load_key(DataSource& source) throw Decoding_Error("Unknown PK algorithm/OID: " + alg_name + ", " + alg_id.oid.as_string()); - std::auto_ptr<X509_Decoder> decoder( - key_obj->x509_decoder(global_state().prng_reference())); + std::auto_ptr<X509_Decoder> decoder(key_obj->x509_decoder()); if(!decoder.get()) throw Decoding_Error("Key does not support X.509 decoding"); |