mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed compile error (unused var)
This commit is contained in:
@@ -129,7 +129,7 @@ string Key::export_secret(const string &passphrase) {
|
|||||||
string Key::export_public() {
|
string Key::export_public() {
|
||||||
Buffer *exported_pk;
|
Buffer *exported_pk;
|
||||||
|
|
||||||
exported_pk = pcp_export_rfc_pub(K);
|
exported_pk = pcp_export_rfc_pub(PTX->ptx, K);
|
||||||
|
|
||||||
if(exported_pk == NULL)
|
if(exported_pk == NULL)
|
||||||
throw pcp::exception(PTX);
|
throw pcp::exception(PTX);
|
||||||
|
|||||||
@@ -716,6 +716,9 @@ Buffer *pcp_export_rfc_pub (PCPCTX *ptx, pcp_key_t *sk) {
|
|||||||
memset(sig, 0, crypto_sign_BYTES + crypto_generichash_BYTES_MAX);
|
memset(sig, 0, crypto_sign_BYTES + crypto_generichash_BYTES_MAX);
|
||||||
free(sig);
|
free(sig);
|
||||||
|
|
||||||
|
if(out->end < 32)
|
||||||
|
fatal(ptx, "failed to export public key");
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user