mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
C++ API changes+fixes:
- context is now a pointer to make sure there's only one all the time - fixed a couple of double free's - some minor bug fixes
This commit is contained in:
@@ -35,7 +35,7 @@ namespace pcp {
|
||||
|
||||
class Crypto {
|
||||
private:
|
||||
PcpContext PTX;
|
||||
PcpContext *PTX;
|
||||
bool havevault;
|
||||
|
||||
public:
|
||||
@@ -44,8 +44,11 @@ namespace pcp {
|
||||
Vault vault;
|
||||
|
||||
// constructors
|
||||
Crypto(PcpContext &C, Key &skey, PubKey &pkey);
|
||||
Crypto(PcpContext &C, Vault &v, Key &skey, PubKey &pkey);
|
||||
Crypto(PcpContext *C, Key &skey, PubKey &pkey);
|
||||
Crypto(PcpContext *C, Vault &v, Key &skey, PubKey &pkey);
|
||||
|
||||
// destructor
|
||||
~Crypto();
|
||||
|
||||
// PK encryption methods
|
||||
// sender pubkey is P
|
||||
|
||||
Reference in New Issue
Block a user