Skip to content
Snippets Groups Projects
Commit b7100830 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

crypto: prevent reference to temporary

parent 1b7ba2a2
Branches
Tags
No related merge requests found
......@@ -724,7 +724,7 @@ generateIdentity(const std::string& name, crypto::Identity ca, unsigned key_leng
// TODO: compute the subject key using the recommended RFC method
auto pk_id = shared_key->getPublicKey().getId();
const std::string& uid_str = pk_id.toString();
const std::string uid_str = pk_id.toString();
gnutls_x509_crt_set_subject_key_id(cert, &pk_id, sizeof(pk_id));
gnutls_x509_crt_set_dn_by_oid(cert, GNUTLS_OID_X520_COMMON_NAME, 0, name.data(), name.length());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment