[openssl] OpenSSL_1_1_1-stable update
Matt Caswell
matt at openssl.org
Thu Jan 14 08:33:03 UTC 2021
The branch OpenSSL_1_1_1-stable has been updated
via fc4ca443c7b999bb47bec6b8ea828973e3c4c7e1 (commit)
from 6e3ba20dc49ccbf12ff4c27a4d8b84dcbeb71654 (commit)
- Log -----------------------------------------------------------------
commit fc4ca443c7b999bb47bec6b8ea828973e3c4c7e1
Author: David Carlier <devnexen at gmail.com>
Date: Sat Jan 9 14:17:29 2021 +0000
OPENSSL_cpuid_setup FreeBSD PowerPC update
Reviewed-by: Ben Kaduk <kaduk at mit.edu>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13821)
(cherry picked from commit b57ec7394aace731c460b509aa84039274337600)
-----------------------------------------------------------------------
Summary of changes:
crypto/ppccap.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/crypto/ppccap.c b/crypto/ppccap.c
index b12cd949cc..1d62226965 100644
--- a/crypto/ppccap.c
+++ b/crypto/ppccap.c
@@ -214,6 +214,24 @@ size_t OPENSSL_instrument_bus2(unsigned int *out, size_t cnt, size_t max)
# endif
#endif
+#if defined(__FreeBSD__)
+# include <sys/param.h>
+# if __FreeBSD_version >= 1200000
+# include <sys/auxv.h>
+# define OSSL_IMPLEMENT_GETAUXVAL
+
+static unsigned long getauxval(unsigned long key)
+{
+ unsigned long val = 0ul;
+
+ if (elf_aux_info((int)key, &val, sizeof(val)) != 0)
+ return 0ul;
+
+ return val;
+}
+# endif
+#endif
+
/* I wish <sys/auxv.h> was universally available */
#define HWCAP 16 /* AT_HWCAP */
#define HWCAP_PPC64 (1U << 30)
More information about the openssl-commits
mailing list