30 #include <openssl/pem.h>
31 #include <openssl/err.h>
37 const std::string SecurityKeyManager::TAG =
"SecurityKeyManager";
45 SecurityKeyManager::SecurityKeyManager()
74 const std::string SecurityKeyManager::hash(
const dtn::data::EID &eid)
78 for (std::string::const_iterator iter = value.begin(); iter != value.end(); ++iter)
80 ss << std::hex << std::setw( 2 ) << std::setfill(
'0' ) << (int)(*iter);
111 keydata.
file = default_key;
120 keydata.
file = keyfile;
138 keydata.
file = keyfile;
154 std::ofstream keystream(keyfile.
getPath().c_str());