feisty meow concerns codebase
2.140
|
#include <key_repository.h>
Public Member Functions | |
key_repository () | |
virtual | ~key_repository () |
DEFINE_CLASS_NAME ("key_repository") | |
octenc_key_record * | lock (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... | |
Definition at line 47 of file key_repository.h.
|
inline |
Definition at line 50 of file key_repository.h.
|
virtual |
Definition at line 33 of file key_repository.cpp.
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().
octopi::key_repository::DEFINE_CLASS_NAME | ( | "key_repository" | ) |
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().
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().
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().