int SecretKeyStore::releaseSecretKey(const com::Utf8Str &strKeyId) { SecretKeyMap::const_iterator it = m_mapSecretKeys.find(strKeyId); if (it == m_mapSecretKeys.end()) return VERR_NOT_FOUND; SecretKey *pKey = it->second; pKey->release(); return VINF_SUCCESS; }