FreeBSD Bugzilla – Attachment 223755 Details for
Bug 254643
security/openssl 1.1.1k and SSL webservers do not work when cryptodev.ko is loaded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test case
cryptodev-test-case.c (text/plain), 849 bytes, created by
Garrett Wollman
on 2021-04-01 21:07:34 UTC
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Garrett Wollman
Created:
2021-04-01 21:07:34 UTC
Size:
849 bytes
patch
obsolete
>#include <sys/types.h> >#include <sys/ioctl.h> >#include <sys/fcntl.h> >#include <sys/wait.h> >#include <err.h> >#include <stdio.h> >#include <stdlib.h> >#include <unistd.h> >#include <crypto/cryptodev.h> > >int >main(void) >{ > int fd, cfd; > int i, status; > > fd = open("/dev/crypto", O_RDWR, 0); > if (fd < 0) > err(1, "/dev/crypto"); > > i = ioctl(fd, CRIOGET, &cfd); > if (i < 0) > err(1, "CRIOCGET"); > if (close(fd) < 0) > err(1, "close(fd)"); > > i = fork(); > if (i < 0) > err(1, "fork"); > > if (i == 0) { /* child process */ > if (close(cfd) < 0) > err(1, "child: close(cfd)"); > exit(0); > } else { > if (waitpid(i, &status, 0) < 0) > err(1, "parent: waitpid"); > if (WIFEXITED(status) && WEXITSTATUS(status) != 0) > warnx("parent: child exited with status %d", > WEXITSTATUS(status)); > if (close(cfd) < 0) > err(1, "parent: close(cfd)"); > } > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 254643
: 223755 |
223773
|
223774