RT4227: Range-check in apps.
authorRich Salz <rsalz@akamai.com>
Tue, 12 Jan 2016 01:40:38 +0000 (20:40 -0500)
committerRich Salz <rsalz@openssl.org>
Tue, 12 Jan 2016 06:00:31 +0000 (01:00 -0500)
commitbd4850df648bee9d8e0595b7e1147266e6f55a3e
tree4a62e47c26c25cd7b55418cf7fb3b9c7ba9fc45f
parent2bec39eb86986349d2538fffc821f2e1106cee14
RT4227: Range-check in apps.

Implement range-checking in all counts in apps.  Turns out only a couple
of cases were missing.  And make the range-checking code more strict.
Replace almost all opt_ulong() calls with opt_long()

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
apps/dsaparam.c
apps/enc.c
apps/opt.c
apps/pkcs8.c
apps/rand.c