#include <PublicKey.hxx>
Inheritance diagram for PublicKey:

Public Member Functions | |
| SERIALIZABLE_DECLS (PublicKey) | |
| std::string | getID () const |
| bool | isValid () const |
| bool | checkSignature (const Buffer &buf, ByteString) const |
| const std::string | getExpiration () const |
| const std::string | getEmail () const |
Static Public Member Functions | |
| static GCPtr< PublicKey > | FromFile (const Path &fileName) |
| Load a public key from an SSL PEM file. | |
Public Attributes | |
| unsigned | type |
| union { | |
| X509 * x509_cert | |
| } | theCert |
Definition at line 49 of file PublicKey.hxx.
|
||||||||||||
|
Definition at line 62 of file PublicKey.cxx. References ExBadValue, Buffer::getChunk(), Buffer::Chunk::len, Buffer::length(), Buffer::Chunk::ptr, theCert, and THROW. |
|
|
Load a public key from an SSL PEM file.
Definition at line 99 of file PublicKey.cxx. References Path::c_str(), Path::exists(), ExNoAccess, ExNoObject, format(), pk_X509, THROW, xfclose, and xfopen. Referenced by FSRepos::Connect(), AuthInfo::findUser(), and Repository::validateSignature(). |
|
|
Definition at line 429 of file PublicKey.cxx. References ExBadValue, pk_X509, theCert, THROW, and type. |
|
|
|
|
|
Definition at line 246 of file PublicKey.cxx. References bad_b64_encode(), ExNoAccess, format(), hex_encode(), theCert, and THROW. |
|
|
Definition at line 291 of file PublicKey.cxx. References ExOutOfMemory, format(), theCert, and THROW. |
|
|
|
|
|
Referenced by checkSignature(), getEmail(), getID(), and isValid(). |
|
|
Definition at line 52 of file PublicKey.hxx. Referenced by getEmail(). |
|
|
Definition at line 55 of file PublicKey.hxx. |
1.4.6