Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <keepass.h>

Classes

class  CKeePassEntry
 
class  CKeePassRequest
 
class  CKeePassResponse
 

Public Member Functions

 CKeePassIntegrator ()
 
void init ()
 
void rpcAssociate (std::string &strIdRet, SecureString &sKeyBase64Ret)
 
SecureString retrievePassphrase ()
 
void updatePassphrase (const SecureString &sWalletPassphrase)
 

Static Public Member Functions

static SecureString generateKeePassKey ()
 

Private Member Functions

void doHTTPPost (const std::string &strRequest, int &nStatusRet, std::string &strResponseRet)
 
void rpcTestAssociation (bool bTriggerUnlock)
 
std::vector< CKeePassEntryrpcGetLogins ()
 
void rpcSetLogin (const SecureString &sWalletPass, const SecureString &sEntryId)
 

Static Private Member Functions

static SecureString generateRandomKey (size_t nSize)
 
static std::string constructHTTPPost (const std::string &strMsg, const std::map< std::string, std::string > &mapRequestHeaders)
 

Private Attributes

bool bIsActive
 
unsigned int nPort
 
SecureString sKeyBase64
 
SecureString sKey
 
SecureString sUrl
 
std::string strKeePassId
 
std::string strKeePassEntryName
 

Static Private Attributes

static const int KEEPASS_CRYPTO_KEY_SIZE = 32
 
static const int KEEPASS_CRYPTO_BLOCK_SIZE = 16
 
static const int KEEPASS_HTTP_CONNECT_TIMEOUT = 30
 
static const char * KEEPASS_HTTP_HOST = "localhost"
 

Detailed Description

Definition at line 18 of file keepass.h.

Constructor & Destructor Documentation

◆ CKeePassIntegrator()

CKeePassIntegrator::CKeePassIntegrator ( )

Definition at line 91 of file keepass.cpp.

References bIsActive, DEFAULT_KEEPASS_HTTP_PORT, nPort, sKey, sKeyBase64, and sUrl.

Member Function Documentation

◆ constructHTTPPost()

std::string CKeePassIntegrator::constructHTTPPost ( const std::string &  strMsg,
const std::map< std::string, std::string > &  mapRequestHeaders 
)
staticprivate

Definition at line 237 of file keepass.cpp.

References FormatFullVersion().

◆ doHTTPPost()

void CKeePassIntegrator::doHTTPPost ( const std::string &  strRequest,
int &  nStatusRet,
std::string &  strResponseRet 
)
private

◆ generateKeePassKey()

SecureString CKeePassIntegrator::generateKeePassKey ( )
static

Definition at line 453 of file keepass.cpp.

References EncodeBase64Secure(), generateRandomKey(), KEEPASS_CRYPTO_KEY_SIZE, sKey, and sKeyBase64.

Referenced by keepass().

◆ generateRandomKey()

SecureString CKeePassIntegrator::generateRandomKey ( size_t  nSize)
staticprivate

◆ init()

◆ retrievePassphrase()

SecureString CKeePassIntegrator::retrievePassphrase ( )

Definition at line 499 of file keepass.cpp.

References rpcGetLogins(), sKey, strKeePassEntryName, and strKeePassId.

Referenced by CWallet::ChangeWalletPassphrase(), and CWallet::Unlock().

◆ rpcAssociate()

◆ rpcGetLogins()

◆ rpcSetLogin()

◆ rpcTestAssociation()

void CKeePassIntegrator::rpcTestAssociation ( bool  bTriggerUnlock)
private

◆ updatePassphrase()

void CKeePassIntegrator::updatePassphrase ( const SecureString sWalletPassphrase)

Member Data Documentation

◆ bIsActive

bool CKeePassIntegrator::bIsActive
private

Definition at line 25 of file keepass.h.

Referenced by CKeePassIntegrator(), and init().

◆ KEEPASS_CRYPTO_BLOCK_SIZE

const int CKeePassIntegrator::KEEPASS_CRYPTO_BLOCK_SIZE = 16
staticprivate

Definition at line 21 of file keepass.h.

Referenced by CKeePassIntegrator::CKeePassRequest::init().

◆ KEEPASS_CRYPTO_KEY_SIZE

const int CKeePassIntegrator::KEEPASS_CRYPTO_KEY_SIZE = 32
staticprivate

Definition at line 20 of file keepass.h.

Referenced by generateKeePassKey(), and rpcAssociate().

◆ KEEPASS_HTTP_CONNECT_TIMEOUT

const int CKeePassIntegrator::KEEPASS_HTTP_CONNECT_TIMEOUT = 30
staticprivate

Definition at line 22 of file keepass.h.

Referenced by doHTTPPost().

◆ KEEPASS_HTTP_HOST

const char * CKeePassIntegrator::KEEPASS_HTTP_HOST = "localhost"
staticprivate

Definition at line 23 of file keepass.h.

Referenced by doHTTPPost().

◆ nPort

unsigned int CKeePassIntegrator::nPort
private

Definition at line 26 of file keepass.h.

Referenced by CKeePassIntegrator(), and init().

◆ sKey

◆ sKeyBase64

SecureString CKeePassIntegrator::sKeyBase64
private

Definition at line 27 of file keepass.h.

Referenced by CKeePassIntegrator(), generateKeePassKey(), init(), rpcGetLogins(), and rpcSetLogin().

◆ strKeePassEntryName

std::string CKeePassIntegrator::strKeePassEntryName
private

Definition at line 32 of file keepass.h.

Referenced by init(), retrievePassphrase(), and updatePassphrase().

◆ strKeePassId

std::string CKeePassIntegrator::strKeePassId
private

Definition at line 31 of file keepass.h.

Referenced by init(), retrievePassphrase(), rpcGetLogins(), rpcSetLogin(), and updatePassphrase().

◆ sUrl

SecureString CKeePassIntegrator::sUrl
private

Definition at line 29 of file keepass.h.

Referenced by CKeePassIntegrator(), init(), rpcGetLogins(), and rpcSetLogin().


The documentation for this class was generated from the following files:
Released under the MIT license