From df3dfc3e0fd2752a935fcaf837a1fbae9b76d9ca7f41efa2040e3e73194ee727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 14 May 2014 20:01:57 +0000 Subject: [PATCH] Accepting request 233696 from home:vitezslav_cizek:branches:devel:libraries:c_c++ - add new 0007-User-interface-to-DRBG.patch from upstream * fixes bnc#877233 * supersedes the patch from previous entry OBS-URL: https://build.opensuse.org/request/show/233696 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=55 --- 0007-User-interface-to-DRBG.patch | 13 +++++++------ libgcrypt.changes | 7 +++++++ 2 files changed, 14 insertions(+), 6 deletions(-) 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