| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent be82372 commit edc1f21
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -953,10 +953,13 @@ KeyObjectData::KeyObjectData(std::nullptr_t) | |||
| 953 | 953 | ||
| 954 | 954 | KeyObjectData::KeyObjectData(ByteSource symmetric_key) | |
| 955 | 955 | : key_type_(KeyType::kKeyTypeSecret), | |
| 956 | + mutex_(std::make_shared<Mutex>()), | ||
| 956 | 957 | data_(std::make_shared<Data>(std::move(symmetric_key))) {} | |
| 957 | 958 | ||
| 958 | 959 | KeyObjectData::KeyObjectData(KeyType type, EVPKeyPointer&& pkey) | |
| 959 | - : key_type_(type), data_(std::make_shared<Data>(std::move(pkey))) {} | ||
| 960 | + : key_type_(type), | ||
| 961 | + mutex_(std::make_shared<Mutex>()), | ||
| 962 | + data_(std::make_shared<Data>(std::move(pkey))) {} | ||
| 960 | 963 | ||
| 961 | 964 | void KeyObjectData::MemoryInfo(MemoryTracker* tracker) const { | |
| 962 | 965 | if (!*this) return; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments