feisty meow concerns codebase  2.140
octopi::key_repository Class Reference

#include <key_repository.h>

Public Member Functions

 key_repository ()
 
virtual ~key_repository ()
 
 DEFINE_CLASS_NAME ("key_repository")
 
octenc_key_recordlock (const octopus_entity &ent)
 locates the key for "ent", if it's stored. More...
 
void unlock (octenc_key_record *to_unlock)
 drops the lock on the key record in "to_unlock". More...
 
basis::outcome add (const octopus_entity &ent, const crypto::blowfish_crypto &key)
 adds a "key" for the "ent". this will fail if one is already listed. More...
 
basis::outcome whack (const octopus_entity &ent)
 removes the key for "ent". More...
 

Detailed Description

Definition at line 47 of file key_repository.h.

Constructor & Destructor Documentation

◆ key_repository()

octopi::key_repository::key_repository ( )
inline

Definition at line 50 of file key_repository.h.

◆ ~key_repository()

octopi::key_repository::~key_repository ( )
virtual

Definition at line 33 of file key_repository.cpp.

Member Function Documentation

◆ add()

outcome octopi::key_repository::add ( const octopus_entity ent,
const crypto::blowfish_crypto key 
)

adds a "key" for the "ent". this will fail if one is already listed.

Definition at line 63 of file key_repository.cpp.

References FUNCDEF, LOG, octopi::octopus_entity::mangled_form(), and octopi::octopus_entity::text_form().

Referenced by octopi::encryption_tentacle::consume().

◆ DEFINE_CLASS_NAME()

octopi::key_repository::DEFINE_CLASS_NAME ( "key_repository"  )

◆ lock()

octenc_key_record * octopi::key_repository::lock ( const octopus_entity ent)

locates the key for "ent", if it's stored.

the returned object, unless it's NULL_POINTER, must be unlocked.

Definition at line 35 of file key_repository.cpp.

References FUNCDEF, LOG, octopi::octopus_entity::mangled_form(), NULL_POINTER, and octopi::octopus_entity::text_form().

Referenced by octopi::encryption_tentacle::consume(), cromp::cromp_client::login(), and cromp::cromp_server::wrap_infoton().

◆ unlock()

void octopi::key_repository::unlock ( octenc_key_record to_unlock)

drops the lock on the key record in "to_unlock".

Definition at line 57 of file key_repository.cpp.

Referenced by octopi::encryption_tentacle::consume(), cromp::cromp_client::login(), and cromp::cromp_server::wrap_infoton().

◆ whack()

outcome octopi::key_repository::whack ( const octopus_entity ent)

removes the key for "ent".

Definition at line 75 of file key_repository.cpp.

References FUNCDEF, LOG, octopi::octopus_entity::mangled_form(), and octopi::octopus_entity::text_form().


The documentation for this class was generated from the following files: