diff options
author | lloyd <[email protected]> | 2006-09-06 07:06:27 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-06 07:06:27 +0000 |
commit | 7f176fd2259fcb395ca03751f19790eac15bd9ce (patch) | |
tree | 6c0c398a44cee6970a724c887eec15cdd8588b37 /src/x509_key.cpp | |
parent | 747a5f4f1934c09e938315d4ae6fd0ff1cfcaa60 (diff) |
Implement codec objects for private keys as well.
Diffstat (limited to 'src/x509_key.cpp')
-rw-r--r-- | src/x509_key.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/x509_key.cpp b/src/x509_key.cpp index 00b565df1..2825cf836 100644 --- a/src/x509_key.cpp +++ b/src/x509_key.cpp @@ -20,12 +20,11 @@ namespace Botan { *************************************************/ u64bit X509_PublicKey::key_id() const { - Pipe pipe(new Hash_Filter("SHA-1", 8)); - std::auto_ptr<X509_Encoder> encoder(x509_encoder()); if(!encoder.get()) throw Internal_Error("X509_PublicKey:key_id: No encoder found"); + Pipe pipe(new Hash_Filter("SHA-1", 8)); pipe.start_msg(); pipe.write(algo_name()); pipe.write(encoder->alg_id().parameters); |