Commit ddd7c5f8 authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý

Made some function parameters const.

parent fd380a72
......@@ -164,7 +164,7 @@ int kr_request_put_cookie(const struct kr_cookie_comp *clnt_comp,
int kr_answer_write_cookie(const struct knot_sc_private *srvr_data,
const uint8_t *cc, uint16_t cc_len,
struct kr_nonce_input *nonce,
const struct kr_nonce_input *nonce,
const struct knot_sc_alg *alg,
knot_pkt_t *pkt)
{
......
......@@ -55,7 +55,7 @@ int kr_request_put_cookie(const struct kr_cookie_comp *clnt_comp,
KR_EXPORT
int kr_answer_write_cookie(const struct knot_sc_private *srvr_data,
const uint8_t *cc, uint16_t cc_len,
struct kr_nonce_input *nonce,
const struct kr_nonce_input *nonce,
const struct knot_sc_alg *alg,
knot_pkt_t *pkt);
......
......@@ -20,7 +20,7 @@
#include "lib/cookies/nonce.h"
uint16_t kr_nonce_write_wire(uint8_t *buf, uint16_t buf_len,
struct kr_nonce_input *input)
const struct kr_nonce_input *input)
{
if (!buf || buf_len < KR_NONCE_LEN || !input) {
return 0;
......
......@@ -40,4 +40,4 @@ struct kr_nonce_input {
*/
KR_EXPORT
uint16_t kr_nonce_write_wire(uint8_t *buf, uint16_t buf_len,
struct kr_nonce_input *input);
const struct kr_nonce_input *input);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment