* [PATCH] crypto: digest: mark signature argument as const
@ 2015-05-25 10:48 Marc Kleine-Budde
2015-05-26 7:27 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Marc Kleine-Budde @ 2015-05-25 10:48 UTC (permalink / raw)
To: barebox
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
crypto/digest.c | 10 +++++-----
include/digest.h | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/crypto/digest.c b/crypto/digest.c
index b3f514c8ad73..a90e4ff79f89 100644
--- a/crypto/digest.c
+++ b/crypto/digest.c
@@ -172,7 +172,7 @@ EXPORT_SYMBOL_GPL(digest_free);
int digest_file_window(struct digest *d, const char *filename,
unsigned char *hash,
- unsigned char *sig,
+ const unsigned char *sig,
ulong start, ulong size)
{
ulong len = 0;
@@ -249,8 +249,8 @@ out:
EXPORT_SYMBOL_GPL(digest_file_window);
int digest_file(struct digest *d, const char *filename,
- unsigned char *hash,
- unsigned char *sig)
+ unsigned char *hash,
+ const unsigned char *sig)
{
struct stat st;
int ret;
@@ -265,8 +265,8 @@ int digest_file(struct digest *d, const char *filename,
EXPORT_SYMBOL_GPL(digest_file);
int digest_file_by_name(const char *algo, const char *filename,
- unsigned char *hash,
- unsigned char *sig)
+ unsigned char *hash,
+ const unsigned char *sig)
{
struct digest *d;
int ret;
diff --git a/include/digest.h b/include/digest.h
index 7f8d696eb600..7c6711b32a56 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -68,14 +68,14 @@ void digest_free(struct digest *d);
int digest_file_window(struct digest *d, const char *filename,
unsigned char *hash,
- unsigned char *sig,
+ const unsigned char *sig,
ulong start, ulong size);
int digest_file(struct digest *d, const char *filename,
- unsigned char *hash,
- unsigned char *sig);
+ unsigned char *hash,
+ const unsigned char *sig);
int digest_file_by_name(const char *algo, const char *filename,
- unsigned char *hash,
- unsigned char *sig);
+ unsigned char *hash,
+ const unsigned char *sig);
static inline int digest_init(struct digest *d)
{
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: digest: mark signature argument as const
2015-05-25 10:48 [PATCH] crypto: digest: mark signature argument as const Marc Kleine-Budde
@ 2015-05-26 7:27 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-05-26 7:27 UTC (permalink / raw)
To: Marc Kleine-Budde; +Cc: barebox
On Mon, May 25, 2015 at 12:48:44PM +0200, Marc Kleine-Budde wrote:
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
> ---
> crypto/digest.c | 10 +++++-----
> include/digest.h | 10 +++++-----
> 2 files changed, 10 insertions(+), 10 deletions(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-26 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25 10:48 [PATCH] crypto: digest: mark signature argument as const Marc Kleine-Budde
2015-05-26 7:27 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox