diff options
author | lloyd <[email protected]> | 2008-06-27 14:29:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-27 14:29:33 +0000 |
commit | 34d5da54da524018580935da11525bd72b5a560e (patch) | |
tree | 398e07f035b4e72bf7a315f0d9f1e6e55b46795f /src/x509_key.cpp | |
parent | d1bc1ae91003bc10b46b0d1e38f0ac64080b4c81 (diff) |
Remove load checking, as it requires an RNG (at least at the moment).
Probably some variation of it will be added back in later, at least
to do basic checks like that primes are really odd (and we can do
basic primality checks, etc, even with an RNG).
Alternative: call check_key() manually on public keys you load with an
RNG object.
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"); |