1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-16 12:03:03 -05:00
Simon Tatham 092c51afed uxutils.c: add special case for M1 macOS.
The M1 chip in the new range of Macs includes the crypto extension
that permits AES, SHA-1 and SHA-256 acceleration. But you can't find
that out by querying the ELF aux vector, because macOS isn't even
ELF-based at all, so there isn't an ELF aux vector, and no web search
I've tried has turned up any MachO thing obviously analogous to it.

Running 'sysctl -a' does show some flags indicating CPU architecture
extensions, but they're more advanced ones than this. So I think we
have to assume that if we're on the new M1 macOS at all, then we have
the basic crypto extension available.

Accordingly, I've added a special case to all the query functions that
simply returns true if defined __APPLE__.
2020-12-24 13:37:08 +00:00
..
2019-03-31 10:35:10 +01:00
2019-10-14 19:42:37 +01:00
2020-06-21 16:39:47 +01:00
2020-03-10 21:27:57 +00:00
2020-02-09 08:51:37 +00:00
2020-03-10 21:11:14 +00:00
2020-12-13 12:36:38 +00:00
2020-06-14 15:49:36 +01:00
2020-06-21 16:39:47 +01:00
2019-10-14 19:42:37 +01:00
2020-02-09 08:51:37 +00:00