mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
copy constructor for PrivateKeys
This commit is contained in:
parent
4fef0dd1cb
commit
4f429b3e06
3 changed files with 19 additions and 10 deletions
|
@ -34,8 +34,8 @@ namespace data
|
|||
uint8_t certificate[3];
|
||||
|
||||
Identity& operator=(const Keys& keys);
|
||||
bool FromBase64(const std::string&);
|
||||
IdentHash Hash();
|
||||
bool FromBase64(const std::string& );
|
||||
IdentHash Hash() const;
|
||||
};
|
||||
|
||||
struct PrivateKeys // for eepsites
|
||||
|
@ -44,6 +44,10 @@ namespace data
|
|||
uint8_t privateKey[256];
|
||||
uint8_t signingPrivateKey[20];
|
||||
|
||||
PrivateKeys () = default;
|
||||
PrivateKeys (const PrivateKeys& ) = default;
|
||||
PrivateKeys (const Keys& keys) { *this = keys; };
|
||||
|
||||
PrivateKeys& operator=(const Keys& keys);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue