diff options
author | lloyd <[email protected]> | 2012-03-28 23:35:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-03-28 23:35:36 +0000 |
commit | 9594979caf775dc4062850044715b804d1fda60c (patch) | |
tree | 0eb8470483a12e64cca065d5e8bfad3cd28dfeef /src/cert/x509/x509_obj.cpp | |
parent | 0da08c29d55ddea710767267af3ec690e91a77a6 (diff) |
Kill off the quite vestigal pubkey_enums header. Move most of the code
to key_constraints.{h,cpp} in cert/x509. Move the X509_Encoding enum
to x509_key.h
Constify argument to X509_Object::check_signature, accidental ommision
Diffstat (limited to 'src/cert/x509/x509_obj.cpp')
-rw-r--r-- | src/cert/x509/x509_obj.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cert/x509/x509_obj.cpp b/src/cert/x509/x509_obj.cpp index c58081225..670bd8da6 100644 --- a/src/cert/x509/x509_obj.cpp +++ b/src/cert/x509/x509_obj.cpp @@ -168,16 +168,16 @@ std::string X509_Object::hash_used_for_signature() const /* * Check the signature on an object */ -bool X509_Object::check_signature(Public_Key* pub_key) const +bool X509_Object::check_signature(const Public_Key* pub_key) const { - std::auto_ptr<Public_Key> key(pub_key); + std::auto_ptr<const Public_Key> key(pub_key); return check_signature(*key); } /* * Check the signature on an object */ -bool X509_Object::check_signature(Public_Key& pub_key) const +bool X509_Object::check_signature(const Public_Key& pub_key) const { try { std::vector<std::string> sig_info = |