summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/rand.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Provide a mechanism for option parsing to return the number of argumentsjsing2014-12-281-2/+2
| | | | | that it has consumed. This allows for the handling of multiple unnamed arguments, including lists of filenames.
* Use arc4random_buf() instead of RAND(_pseudo)?_bytes().jsing2014-10-221-5/+2
| | | | ok bcook@
* prefer C99 array initialization syntax.bcook2014-10-131-2/+2
| | | | | | | | use C99 array initialization syntax for strict C compilers. from kinichiro, found building with HP/UX compiler ok deraadt@, guenther@
* Reset the config struct before calling options_parse(), otherwise configjsing2014-08-271-1/+3
| | | | options from the previous run stick in interactive mode.
* Implement table-driven option parsing that allows an application tojsing2014-08-271-74/+75
| | | | | | | | | | | | | | | | | specify what its valid options are and where it wants them to be stored. This also allows for usage to be generated, almost for free, ensuring that the options and usage are automatically kept in sync. This will allow for a single option parsing implementation, rather than the current one-hand-rolled-option-parsing-and-random-usage-implementation per application. As a starting point, port the openssl(1) rand application to the new option parsing and usage (along with associated code clean up). With input from doug@. ok bcook@ doug@
* Move openssl(1) from /usr/sbin/openssl to /usr/bin/openssl, since it is notjsing2014-08-261-0/+194
a system/superuser binary. At the same time, move the source code from its current lib/libssl/src/apps location to a more appropriate home under usr.bin/openssl. ok deraadt@ miod@