REF_RELEASE (priv->buf);
}
- priv->encrypted = FALSE;
-
rspamd_http_parser_reset (conn);
if (priv->out != NULL) {
bodylen += crypto_box_NONCEBYTES + crypto_box_ZEROBYTES;
}
+ peer_key = (struct rspamd_http_keypair *)msg->peer_key;
+
if (conn->type == RSPAMD_HTTP_SERVER) {
/* Format reply */
if (msg->method < HTTP_SYMBOLS) {
bodylen);
}
if (encrypted) {
- peer_key = (struct rspamd_http_keypair *)msg->peer_key;
memcpy (id, peer_key->id, sizeof (id));
b32_key = rspamd_encode_base32 (priv->local_key->pk,
sizeof (priv->local_key->pk));