svn commit: r329008 - stable/11/tests/sys/opencrypto

John Baldwin jhb at FreeBSD.org
Thu Feb 8 01:00:00 UTC 2018


Author: jhb
Date: Thu Feb  8 00:59:56 2018
New Revision: 329008
URL: https://svnweb.freebsd.org/changeset/base/329008

Log:
  MFC 319454: Honor the requested crid when running a test.
  
  Otherwise, the kernel is free to choose an aribtrary crypto device
  rather than the requested device subverting tests that force the use
  of a specific device.

Modified:
  stable/11/tests/sys/opencrypto/cryptodev.py
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/tests/sys/opencrypto/cryptodev.py
==============================================================================
--- stable/11/tests/sys/opencrypto/cryptodev.py	Thu Feb  8 00:42:28 2018	(r329007)
+++ stable/11/tests/sys/opencrypto/cryptodev.py	Thu Feb  8 00:59:56 2018	(r329008)
@@ -173,10 +173,7 @@ class Crypto:
 
 		if not cipher and not mac:
 			raise ValueError('one of cipher or mac MUST be specified.')
-		ses.crid = CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_HARDWARE
-		#ses.crid = CRYPTOCAP_F_HARDWARE
-		#ses.crid = CRYPTOCAP_F_SOFTWARE
-		#ses.crid = 0
+		ses.crid = crid
 		#print `ses`
 		s = array.array('B', ses.pack_hdr())
 		#print `s`


More information about the svn-src-all mailing list