mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix sha224sum panic by registering SHA224 hash name.
@ 2012-06-07 13:03 Krzysztof Halasa
  2012-06-07 17:40 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Halasa @ 2012-06-07 13:03 UTC (permalink / raw)
  To: barebox

barebox:/ sha224sum
BUG: failure at commands/digest.c:40/do_digest()!

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>

diff --git a/crypto/sha2.c b/crypto/sha2.c
index 17303e6..3096efe 100644
--- a/crypto/sha2.c
+++ b/crypto/sha2.c
@@ -313,6 +313,7 @@ static int digest_sha224_init(struct digest *d)
 
 static struct sha2 m224 = {
 	.d = {
+		.name = "sha224",
 		.init = digest_sha224_init,
 		.update = digest_sha2_update,
 		.final = digest_sha2_final,

-- 
Krzysztof Halasa

_______________________________________________
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] Fix sha224sum panic by registering SHA224 hash name.
  2012-06-07 13:03 [PATCH] Fix sha224sum panic by registering SHA224 hash name Krzysztof Halasa
@ 2012-06-07 17:40 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-06-07 17:40 UTC (permalink / raw)
  To: Krzysztof Halasa; +Cc: barebox

Hi Krzysztof,

On Thu, Jun 07, 2012 at 03:03:15PM +0200, Krzysztof Halasa wrote:
> barebox:/ sha224sum
> BUG: failure at commands/digest.c:40/do_digest()!
> 
> Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
> 

Applied to master (also the other two patches)

Thanks
 Sascha

> diff --git a/crypto/sha2.c b/crypto/sha2.c
> index 17303e6..3096efe 100644
> --- a/crypto/sha2.c
> +++ b/crypto/sha2.c
> @@ -313,6 +313,7 @@ static int digest_sha224_init(struct digest *d)
>  
>  static struct sha2 m224 = {
>  	.d = {
> +		.name = "sha224",
>  		.init = digest_sha224_init,
>  		.update = digest_sha2_update,
>  		.final = digest_sha2_final,
> 
> -- 
> Krzysztof Halasa
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
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:[~2012-06-07 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-07 13:03 [PATCH] Fix sha224sum panic by registering SHA224 hash name Krzysztof Halasa
2012-06-07 17:40 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox