Skip to content
Snippets Groups Projects
Commit 536f30ec authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

opendht.cpp: fix build

parent b7aec131
No related branches found
No related tags found
No related merge requests found
...@@ -173,7 +173,7 @@ int dht_privatekey_export(const dht_privatekey* k, char* out, size_t* out_size, ...@@ -173,7 +173,7 @@ int dht_privatekey_export(const dht_privatekey* k, char* out, size_t* out_size,
dht_publickey* dht_privatekey_get_publickey(const dht_privatekey* k) { dht_publickey* dht_privatekey_get_publickey(const dht_privatekey* k) {
const auto& key = *reinterpret_cast<const PrivkeySp*>(k); const auto& key = *reinterpret_cast<const PrivkeySp*>(k);
return reinterpret_cast<dht_publickey*>(new PubkeySp(std::make_shared<dht::crypto::PublicKey>(key->getPublicKey()))); return reinterpret_cast<dht_publickey*>(new PubkeySp(key->getSharedPublicKey()));
} }
void dht_privatekey_delete(dht_privatekey* pk) { void dht_privatekey_delete(dht_privatekey* pk) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment