summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authormiod <>2014-05-02 19:59:16 +0000
committermiod <>2014-05-02 19:59:16 +0000
commitb0c6c09c9b9b8a8b204f2859e27e216be7b63ada (patch)
treeb001363f34bc734a46d4080316ad1c0574f515a3 /src/lib/libssl/ssl_lib.c
parent9a4721cf284d54d80f925c13df3a8bf7a1f51882 (diff)
downloadopenbsd-b0c6c09c9b9b8a8b204f2859e27e216be7b63ada.tar.gz
openbsd-b0c6c09c9b9b8a8b204f2859e27e216be7b63ada.tar.bz2
openbsd-b0c6c09c9b9b8a8b204f2859e27e216be7b63ada.zip
The assembly sha512 code detects at runtime if it is running on a 64-bit
processor (PA2.0) and, if so, switches to 64-bit code. However, when running under a 32-bit OpenBSD/hppa kernel, there is no guarantee that the upper part of the registers will be preserved accross context switches (or even userland->kernel boundaries), which causes this code to fail. Wrap the generated code within #ifndef __OpenBSD__ in that case, to avoid using the 64-bit code completely. (OpenBSD/hppa64, once stable, will not be affected by this)
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions