From c9c609463fab9bcfb35694627bca1429a21fdbb2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 31 Oct 2022 21:06:00 +0000 Subject: gentoo auto-resync : 31:10:2022 - 21:05:59 --- app-crypt/shash/files/0.2.6-manpage-fixes.patch | 5 +- app-crypt/shash/files/shash-0.2.6-C99-decls.patch | 195 +++++++++++++++++++++ .../shash/files/shash-0.2.6-binary-files.patch | 4 +- .../shash/files/shash-0.2.6-format-security.patch | 4 +- 4 files changed, 201 insertions(+), 7 deletions(-) create mode 100644 app-crypt/shash/files/shash-0.2.6-C99-decls.patch (limited to 'app-crypt/shash/files') diff --git a/app-crypt/shash/files/0.2.6-manpage-fixes.patch b/app-crypt/shash/files/0.2.6-manpage-fixes.patch index 0376e15c3572..111730c57823 100644 --- a/app-crypt/shash/files/0.2.6-manpage-fixes.patch +++ b/app-crypt/shash/files/0.2.6-manpage-fixes.patch @@ -1,6 +1,5 @@ -diff -pruN shash-0.2.6/doc/shash.1 shash-0.2.6-r1/doc/shash.1 ---- shash-0.2.6/doc/shash.1 2004-09-18 09:51:04.004647112 +0100 -+++ shash-0.2.6-r1/doc/shash.1 2004-09-18 09:57:26.062565480 +0100 +--- a/doc/shash.1 ++++ b/doc/shash.1 @@ -31,7 +31,7 @@ Because of this shash also supports HMAC a mechanism for message authentication using cryptographic hash functions. So shash can use a key with a hash algorithm to produce hashes that can only diff --git a/app-crypt/shash/files/shash-0.2.6-C99-decls.patch b/app-crypt/shash/files/shash-0.2.6-C99-decls.patch new file mode 100644 index 000000000000..bf2f3ab79d85 --- /dev/null +++ b/app-crypt/shash/files/shash-0.2.6-C99-decls.patch @@ -0,0 +1,195 @@ +--- a/src/environ.c ++++ b/src/environ.c +@@ -4,7 +4,7 @@ + #endif + #include "environ.h" + +-int check_env() ++int check_env(void) + { + + if (getenv(SHASH_KEY) != NULL +@@ -15,7 +15,7 @@ + } + + char * +- get_env_key() ++ get_env_key(void) + { + + if (getenv(SHASH_KEY) != NULL) { +@@ -26,7 +26,7 @@ + + } + +-char *get_env_bit_mode() ++char *get_env_bit_mode(void) + { + + return getenv(SHASH_KEYMODE); +--- a/src/environ.h ++++ b/src/environ.h +@@ -3,7 +3,7 @@ + #define SHASH_KEY "SHASH_KEY" + #define SHASH_KEYMODE "SHASH_KEYMODE" + +-int check_env(); +-char * get_env_key(); +-char * get_env_bit_mode(); ++int check_env(void); ++char * get_env_key(void); ++char * get_env_bit_mode(void); + +--- a/src/errors.c ++++ b/src/errors.c +@@ -1,5 +1,7 @@ + #include + ++#include ++ + extern int quiet; + + void err_quit(char *errmsg) +--- a/src/extra.c ++++ b/src/extra.c +@@ -1,5 +1,10 @@ + #include + ++#include ++#include ++#include ++#include ++ + #ifdef HAVE_STAT + + int check_file(char *filename) +--- a/src/gaaout.c ++++ b/src/gaaout.c +@@ -11,6 +11,11 @@ + #endif + #endif + ++void hash_license(void); ++void hash_version(void); ++void list_keygen_algorithms(void); ++int hash_list(void); ++ + void* gaa_malloc( size_t size) { + void* ret; + ret = malloc(size); +--- a/src/random.c ++++ b/src/random.c +@@ -24,7 +24,7 @@ + static FILE *ffd; + + word32 +-get_rand32() ++get_rand32(void) + { + int fd, x; + word32 rand_data; +@@ -46,7 +46,7 @@ + + + word8 +-get_rand8() ++get_rand8(void) + { + + int fd, x; +@@ -69,7 +69,7 @@ + + + word32 +-get_safe_rand32() ++get_safe_rand32(void) + { + int fd, x; + word32 rand_data; +@@ -91,7 +91,7 @@ + + + word8 +-get_safe_rand8() ++get_safe_rand8(void) + { + + int fd, x; +@@ -131,13 +131,13 @@ + return 0; + } + +-void close_rand() ++void close_rand(void) + { + fclose(ffd); + } + + word32 +-get_o_rand32() ++get_o_rand32(void) + { + int x; + word32 rand_data; +@@ -152,7 +152,7 @@ + } + + word8 +-get_o_rand8() ++get_o_rand8(void) + { + + int x; +--- a/src/random.h ++++ b/src/random.h +@@ -1,14 +1,14 @@ + + #ifdef HAVE_DEV_RANDOM + +-word32 get_rand32(); +-word8 get_rand8(); +-word32 get_safe_rand32(); +-word8 get_safe_rand8(); ++word32 get_rand32(void); ++word8 get_rand8(void); ++word32 get_safe_rand32(void); ++word8 get_safe_rand8(void); + + int open_rand(int); +-void close_rand(); +-word32 get_o_rand32(); +-word8 get_o_rand8(); ++void close_rand(void); ++word32 get_o_rand32(void); ++word8 get_o_rand8(void); + + #endif +--- a/src/shash.c ++++ b/src/shash.c +@@ -485,7 +485,7 @@ + } + } + +-int hash_list() ++int hash_list(void) + { + hashid i; + char *y; +@@ -715,7 +715,7 @@ + return counter; + } + +-void hash_license() ++void hash_license(void) + { + fprintf(stdout, ("\nCopyright (C) 1999,2001,2002 Nikos Mavroyanopoulos\n" + "This program is free software; you can redistribute it and/or modify \n" +@@ -733,7 +733,7 @@ + "Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\n")); + } + +-void hash_version() ++void hash_version(void) + { + fprintf(stderr, ("shash v.%s (%s-%s-%s)\n"), VERSION, T_CPU, + T_VENDOR, T_OS); diff --git a/app-crypt/shash/files/shash-0.2.6-binary-files.patch b/app-crypt/shash/files/shash-0.2.6-binary-files.patch index 1eb0cba17613..9cb5a7dc4c09 100644 --- a/app-crypt/shash/files/shash-0.2.6-binary-files.patch +++ b/app-crypt/shash/files/shash-0.2.6-binary-files.patch @@ -1,5 +1,5 @@ ---- shash-0.2.6/src/shash.c -+++ shash-0.2.6/src/shash.c +--- a/src/shash.c ++++ b/src/shash.c @@ -631,11 +631,11 @@ if (nosalt == FALSE && hmac == 1) { diff --git a/app-crypt/shash/files/shash-0.2.6-format-security.patch b/app-crypt/shash/files/shash-0.2.6-format-security.patch index 4e46639e2807..20f850316ccc 100644 --- a/app-crypt/shash/files/shash-0.2.6-format-security.patch +++ b/app-crypt/shash/files/shash-0.2.6-format-security.patch @@ -1,5 +1,5 @@ ---- shash-0.2.6/src/errors.c -+++ shash-0.2.6/src/errors.c +--- a/src/errors.c ++++ b/src/errors.c @@ -4,7 +4,7 @@ void err_quit(char *errmsg) -- cgit v1.2.3