mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
make sure verifier gets created once
This commit is contained in:
parent
f83ebbcd3a
commit
f91f3796a8
2 changed files with 19 additions and 8 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <string.h>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <atomic>
|
||||
#include "Base.h"
|
||||
#include "Signature.h"
|
||||
|
||||
|
@ -104,6 +105,7 @@ namespace data
|
|||
Identity m_StandardIdentity;
|
||||
IdentHash m_IdentHash;
|
||||
mutable std::unique_ptr<i2p::crypto::Verifier> m_Verifier;
|
||||
mutable std::atomic_bool m_IsVerifierCreated; // make sure we don't create twice
|
||||
size_t m_ExtendedLen;
|
||||
uint8_t * m_ExtendedBuffer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue