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