From 4ed66622fe2687e3bd9f3adf015f0152719b08e5 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Mon, 16 May 2022 21:15:44 +0200 Subject: [PATCH] Silence openssl 3.0 deprecation warnings --- Cargo.toml | 2 +- src/md5sum.c | 1 + src/sha512sum.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5db3a30..63a0785 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hashtoc" -version = "0.1.7" +version = "0.1.8" authors = ["Anders Blomdell <anders.blomdell@control.lth.se>"] build = "build.rs" links = "libhash.a,libssl" diff --git a/src/md5sum.c b/src/md5sum.c index 898f992..ab850b3 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -26,6 +26,7 @@ General Public License for more details. #include <fcntl.h> #include <time.h> #include <unistd.h> +#define OPENSSL_API_COMPAT 10101 #include <openssl/md5.h> #include <errno.h> #include <limits.h> diff --git a/src/sha512sum.c b/src/sha512sum.c index 09f2554..d70e60a 100644 --- a/src/sha512sum.c +++ b/src/sha512sum.c @@ -26,6 +26,7 @@ General Public License for more details. #include <fcntl.h> #include <time.h> #include <unistd.h> +#define OPENSSL_API_COMPAT 10101 #include <openssl/sha.h> #include <errno.h> #include <limits.h> -- GitLab