Fix ARMv8 compile for AES

pull/461/head
Jeffrey Walton 2017-08-05 20:52:02 -04:00
parent 8b116a78b8
commit 679000104c
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ bool CPU_TryAES_ARMV8()
// http://github.com/weidai11/cryptopp/issues/24 and http://stackoverflow.com/q/7721854 // http://github.com/weidai11/cryptopp/issues/24 and http://stackoverflow.com/q/7721854
volatile bool result = true; volatile bool result = true;
volatile SigHandler oldHandler = signal(SIGILL, SigIllHandlerAES); volatile SigHandler oldHandler = signal(SIGILL, SigIllHandler);
if (oldHandler == SIG_ERR) if (oldHandler == SIG_ERR)
return false; return false;
@ -99,7 +99,7 @@ bool CPU_TryAES_ARMV8()
if (sigprocmask(0, NULLPTR, (sigset_t*)&oldMask)) if (sigprocmask(0, NULLPTR, (sigset_t*)&oldMask))
return false; return false;
if (setjmp(s_jmpNoAES)) if (setjmp(s_jmpSIGILL))
result = false; result = false;
else else
{ {