mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Correct definitions in sys.opencrypto.runtests.main for 32bit platform
Reviewed by: cem, jhb MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20894
This commit is contained in:
parent
c26541e315
commit
1db8307b66
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349872
|
@ -36,6 +36,7 @@
|
|||
import binascii
|
||||
from fcntl import ioctl
|
||||
import os
|
||||
import platform
|
||||
import random
|
||||
import signal
|
||||
from struct import pack as _pack
|
||||
|
@ -116,14 +117,19 @@ class CryptAEAD(dpkt.Packet):
|
|||
# h2py.py can't handle multiarg macros
|
||||
CRIOGET = 3221513060
|
||||
CIOCGSESSION = 3224396645
|
||||
CIOCGSESSION2 = 3225445226
|
||||
CIOCFSESSION = 2147771238
|
||||
CIOCCRYPT = 3224396647
|
||||
CIOCKEY = 3230688104
|
||||
CIOCASYMFEAT = 1074029417
|
||||
CIOCKEY2 = 3230688107
|
||||
CIOCFINDDEV = 3223610220
|
||||
CIOCCRYPTAEAD = 3225445229
|
||||
if platform.architecture()[0] == '64bit':
|
||||
CIOCGSESSION2 = 3225445226
|
||||
CIOCCRYPT = 3224396647
|
||||
CIOCCRYPTAEAD = 3225445229
|
||||
else:
|
||||
CIOCGSESSION2 = 3224396650
|
||||
CIOCCRYPT = 3223085927
|
||||
CIOCCRYPTAEAD = 3223872365
|
||||
|
||||
def _getdev():
|
||||
buf = array.array('I', [0])
|
||||
|
|
Loading…
Reference in a new issue