#include <wvrsa.h>
Inheritance diagram for WvRSAKey:
Knows how to encode/decode itself into a string of hex digits for easy transport.
Definition at line 25 of file wvrsa.h.
Public Member Functions | |
WvRSAKey (const WvRSAKey &k) | |
WvRSAKey (struct rsa_st *_rsa, bool priv) | |
WvRSAKey (WvStringParm keystr, bool priv) | |
Populate the RSA key with a hexified() key. | |
WvRSAKey (int bits) | |
Create a new RSA key of bits strength. | |
~WvRSAKey () | |
virtual bool | isok () const |
By default, returns true if geterr() == 0. | |
WvString | private_str () const |
Retrieve the private key as a hexified string returns WvString::null if there is only a public key. | |
WvString | public_str () const |
Retrieve the public key as a hexified string. | |
WvString | getpem (bool privkey) |
Retrieve the public or private key in PEM encoded format. | |
virtual int | geterr () const |
If isok() is false, return the system error number corresponding to the error, -1 for a special error string (which you can obtain with errstr()) or 0 on end of file. | |
virtual WvString | errstr () const |
virtual void | seterr (int _errnum) |
Set the errnum variable -- we have an error. | |
void | seterr (WvStringParm specialerr) |
void | seterr (WVSTRING_FORMAT_DECL) |
void | seterr (const WvErrorBase &err) |
void | seterr_both (int _errnum, WvStringParm specialerr) |
void | noerr () |
Reset our error state - there's no error condition anymore. | |
Static Public Member Functions | |
static WvString | strerror (int errnum) |
A replacement for the operating system strerror() function that can map more kinds of error strings (especially in win32). | |
Public Attributes | |
rsa_st * | rsa |
Protected Attributes | |
int | errnum |
WvString | errstring |
|
By default, returns true if geterr() == 0. Might be overridden so that isok() == false even though no error code has been specified. Reimplemented from WvErrorBase. Definition at line 66 of file wvrsa.cc. References WvErrorBase::errstring, and rsa. Referenced by WvX509Mgr::certreq(), WvX509Mgr::create_selfsigned(), WvRSAStream::WvRSAStream(), and WvX509Mgr::WvX509Mgr(). |
|
If isok() is false, return the system error number corresponding to the error, -1 for a special error string (which you can obtain with errstr()) or 0 on end of file. If isok() is true, returns an undefined number. Reimplemented in WvHTTPStream, WvStreamClone, and WvX509Mgr. Definition at line 48 of file wverror.h. References WvErrorBase::errnum. Referenced by UniIniGen::commit(), WvX509Mgr::errstr(), WvStreamClone::errstr(), WvErrorBase::errstr(), WvError::get(), UniFileSystemGen::get(), WvX509Mgr::geterr(), WvStreamClone::geterr(), WvEncoderStream::isok(), WvConf::load_file(), WvConf::save(), WvStream::seterr(), WvErrorBase::seterr(), WvMagicCircle::WvMagicCircle(), and WvHttpPool::~WvHttpPool(). |
|