diff --git a/0007-User-interface-to-DRBG.patch b/0007-User-interface-to-DRBG.patch index e6a153d..d89b353 100644 --- a/0007-User-interface-to-DRBG.patch +++ b/0007-User-interface-to-DRBG.patch @@ -1,11 +1,12 @@ Changes v4: - * add fail_seed_source to struct drbg_test_data + * add explicit type casting from void to unsigned char as reported + in https://bugzilla.novell.com/show_bug.cgi?id=877233 -Signed-off-by: Stephan Mueller +Signed-off-by: Stephan Mueller --- diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in -index c84a3f7..2a17dcd 100644 +index c84a3f7..569d7a0 100644 --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -193,7 +193,7 @@ gcry_error_t gcry_err_make_from_errno (gcry_err_source_t source, int err); @@ -147,7 +148,7 @@ index c84a3f7..2a17dcd 100644 +/* DRBG input data structure for DRBG generate with additional information + * string */ +struct drbg_gen { -+ void *outbuf; /* output buffer for random numbers */ ++ unsigned char *outbuf; /* output buffer for random numbers */ + unsigned int outlen; /* size of output buffer */ + struct drbg_string *addtl; /* input buffer for + * additional information string */ @@ -185,7 +186,7 @@ index c84a3f7..2a17dcd 100644 + struct drbg_string *addtl) +{ + struct drbg_gen genbuf; -+ genbuf.outbuf = outbuf; ++ genbuf.outbuf = (unsigned char *)outbuf; + genbuf.outlen = outlen; + genbuf.addtl = addtl; + genbuf.test_data = NULL; @@ -199,7 +200,7 @@ index c84a3f7..2a17dcd 100644 + struct drbg_test_data *test_data) +{ + struct drbg_gen genbuf; -+ genbuf.outbuf = outbuf; ++ genbuf.outbuf = (unsigned char *)outbuf; + genbuf.outlen = outlen; + genbuf.addtl = addtl; + genbuf.test_data = test_data; diff --git a/libgcrypt.changes b/libgcrypt.changes index 521ebc8..ad706c9 100644 --- a/libgcrypt.changes +++ b/libgcrypt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 13 10:47:51 UTC 2014 - vcizek@suse.com + +- add new 0007-User-interface-to-DRBG.patch from upstream + * fixes bnc#877233 + * supersedes the patch from previous entry + ------------------------------------------------------------------- Sun May 12 13:25:33 UTC 2014 - tittiatcoke@gmail.com