PrivateKey Struct Reference

#include <PrivateKey.hxx>

Inheritance diagram for PrivateKey:

Serializable Countable List of all members.

Public Member Functions

 SERIALIZABLE_DECLS (PrivateKey)
 PrivateKey (const PrivateKey &)
ByteString signThis (const Buffer &buf) const

Static Public Member Functions

static GCPtr< PrivateKeyFromFile (const Path &theFile)
 Load a public key from an SSL PEM file.

Protected Attributes

EVP_PKEY * key

Detailed Description

Definition at line 45 of file PrivateKey.hxx.


Constructor & Destructor Documentation

PrivateKey::PrivateKey const PrivateKey  ) 
 

Referenced by FromFile().


Member Function Documentation

GCPtr< PrivateKey > PrivateKey::FromFile const Path theFile  )  [static]
 

Load a public key from an SSL PEM file.

Definition at line 55 of file PrivateKey.cxx.

References Path::c_str(), Path::exists(), ExNoAccess, ExNoObject, format(), PrivateKey(), THROW, xfclose, and xfopen.

Referenced by FSRepos::Connect(), and AuthInfo::findUser().

PrivateKey::SERIALIZABLE_DECLS PrivateKey   ) 
 

ByteString PrivateKey::signThis const Buffer buf  )  const
 

Definition at line 99 of file PrivateKey.cxx.

References ExBadValue, format(), Buffer::getChunk(), key, Buffer::Chunk::len, Buffer::length(), Buffer::Chunk::ptr, and THROW.


Member Data Documentation

EVP_PKEY* PrivateKey::key [protected]
 

Definition at line 49 of file PrivateKey.hxx.

Referenced by signThis().


The documentation for this struct was generated from the following files:
Generated on Sun Apr 23 22:42:41 2006 for OpenCM by  doxygen 1.4.6