Mercurial > dropbear
diff rsa.h @ 1459:06d52bcb8094
Pointer parameter could be declared as pointing to const
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 19 Aug 2017 17:16:13 +0200 |
parents | 750ec4ec4cbe |
children | ba6fc7afe1c5 |
line wrap: on
line diff
--- a/rsa.h Sat Aug 12 20:51:58 2017 +0200 +++ b/rsa.h Sat Aug 19 17:16:13 2017 +0200 @@ -43,14 +43,14 @@ } dropbear_rsa_key; -void buf_put_rsa_sign(buffer* buf, dropbear_rsa_key *key, buffer *data_buf); +void buf_put_rsa_sign(buffer* buf, const dropbear_rsa_key *key, const buffer *data_buf); #if DROPBEAR_SIGNKEY_VERIFY -int buf_rsa_verify(buffer * buf, dropbear_rsa_key *key, buffer *data_buf); +int buf_rsa_verify(buffer * buf, const dropbear_rsa_key *key, const buffer *data_buf); #endif int buf_get_rsa_pub_key(buffer* buf, dropbear_rsa_key *key); int buf_get_rsa_priv_key(buffer* buf, dropbear_rsa_key *key); -void buf_put_rsa_pub_key(buffer* buf, dropbear_rsa_key *key); -void buf_put_rsa_priv_key(buffer* buf, dropbear_rsa_key *key); +void buf_put_rsa_pub_key(buffer* buf, const dropbear_rsa_key *key); +void buf_put_rsa_priv_key(buffer* buf, const dropbear_rsa_key *key); void rsa_key_free(dropbear_rsa_key *key); #endif /* DROPBEAR_RSA */