[#]
http://marc.info/?l=openbsd-cvs&m=140915159801496&w=2
openbsd-cvs(obsdave,2) — All
2014-08-27 19:55:08
Module name: src
Changes by: jsing@cvs.openbsd.org 2014/08/27 08:59:44
Modified files:
usr.bin/openssl: apps.c apps.h rand.c
Log message:
Implement table-driven option parsing that allows an application to
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@