From 89e64c631ec8dee41ec4de888548d36887b6ec98 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sat, 19 Aug 2017 17:16:13 +0200 Subject: Pointer parameter could be declared as pointing to const --- signkey.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'signkey.h') diff --git a/signkey.h b/signkey.h index 646c7ab..59df3ee 100644 --- a/signkey.h +++ b/signkey.h @@ -90,14 +90,14 @@ int buf_get_priv_key(buffer* buf, sign_key *key, enum signkey_type *type); void buf_put_pub_key(buffer* buf, sign_key *key, enum signkey_type type); void buf_put_priv_key(buffer* buf, sign_key *key, enum signkey_type type); void sign_key_free(sign_key *key); -void buf_put_sign(buffer* buf, sign_key *key, enum signkey_type type, buffer *data_buf); +void buf_put_sign(buffer* buf, sign_key *key, enum signkey_type type, const buffer *data_buf); #if DROPBEAR_SIGNKEY_VERIFY -int buf_verify(buffer * buf, sign_key *key, buffer *data_buf); -char * sign_key_fingerprint(unsigned char* keyblob, unsigned int keybloblen); +int buf_verify(buffer * buf, sign_key *key, const buffer *data_buf); +char * sign_key_fingerprint(const unsigned char* keyblob, unsigned int keybloblen); #endif int cmp_base64_key(const unsigned char* keyblob, unsigned int keybloblen, const unsigned char* algoname, unsigned int algolen, - buffer * line, char ** fingerprint); + const buffer * line, char ** fingerprint); void** signkey_key_ptr(sign_key *key, enum signkey_type type); -- cgit v1.2.3