summaryrefslogtreecommitdiff
path: root/tests/sys/opencrypto/poly1305_test.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-11-25 01:31:00 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-11-25 01:31:00 +0000
commita4a23d2137d05fdae3af5987dd590da0cb1c21f6 (patch)
treee2687ca69537ab36c6a1072eb4567efdb748058b /tests/sys/opencrypto/poly1305_test.c
parent81870b54d6b2493e9638e4ff84c9afbc8c2b4976 (diff)
downloadsrc-test2-a4a23d2137d05fdae3af5987dd590da0cb1c21f6.tar.gz
src-test2-a4a23d2137d05fdae3af5987dd590da0cb1c21f6.zip
Remove uses of CRIOGET in OCF tests after r368005.
Pointy hat to: jhb Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D27367
Notes
Notes: svn path=/head/; revision=368008
Diffstat (limited to 'tests/sys/opencrypto/poly1305_test.c')
-rw-r--r--tests/sys/opencrypto/poly1305_test.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/sys/opencrypto/poly1305_test.c b/tests/sys/opencrypto/poly1305_test.c
index 64a1f0934263..3687d0c65ec0 100644
--- a/tests/sys/opencrypto/poly1305_test.c
+++ b/tests/sys/opencrypto/poly1305_test.c
@@ -302,17 +302,10 @@ parse_vector(const struct poly1305_kat *kat,
static int
get_handle_fd(void)
{
- int dc_fd, fd;
+ int fd;
- dc_fd = open("/dev/crypto", O_RDWR);
-
- /*
- * Why do we do this dance instead of just operating on /dev/crypto
- * directly? I have no idea.
- */
- ATF_REQUIRE(dc_fd >= 0);
- ATF_REQUIRE(ioctl(dc_fd, CRIOGET, &fd) != -1);
- close(dc_fd);
+ fd = open("/dev/crypto", O_RDWR);
+ ATF_REQUIRE(fd >= 0);
return (fd);
}