Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2019 03:06:10 +0000 (UTC)
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r348041 - user/ngie/bug-237403/tests/sys/opencrypto
Message-ID:  <201905210306.x4L36AN6065015@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue May 21 03:06:10 2019
New Revision: 348041
URL: https://svnweb.freebsd.org/changeset/base/348041

Log:
  Leverage `str_to_ascii(..)` in `_findop(..)` when encoding `fop.name`

Modified:
  user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py

Modified: user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py
==============================================================================
--- user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py	Tue May 21 03:05:24 2019	(r348040)
+++ user/ngie/bug-237403/tests/sys/opencrypto/cryptodev.py	Tue May 21 03:06:10 2019	(r348041)
@@ -146,7 +146,7 @@ def str_to_ascii(val):
 def _findop(crid, name):
     fop = FindOp()
     fop.crid = crid
-    fop.name = name.encode("ascii")
+    fop.name = str_to_ascii(name)
     s = array.array('B', fop.pack_hdr())
     ioctl(_cryptodev, CIOCFINDDEV, s, 1)
     fop.unpack(s)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905210306.x4L36AN6065015>