diff --git a/include/dhtcpp/crypto.h b/include/dhtcpp/crypto.h index 5b0606f293425495241f7c9511724f70e9b21ed2..2171e1034dc977a5e108cea1c264a605b9d38623 100644 --- a/include/dhtcpp/crypto.h +++ b/include/dhtcpp/crypto.h @@ -126,10 +126,10 @@ struct Certificate : public Serializable { void pack(Blob& b) const override; void unpack(Blob::const_iterator& begin, Blob::const_iterator& end) override; + gnutls_x509_crt_t cert {}; private: Certificate(const Certificate&) = delete; Certificate& operator=(const Certificate&) = delete; - gnutls_x509_crt_t cert {}; friend dht::crypto::Identity dht::crypto::generateIdentity(const std::string&, dht::crypto::Identity); };