Some code-cleanup/simplification in apps
authorRich Salz <rsalz@akamai.com>
Tue, 11 Dec 2018 17:31:55 +0000 (12:31 -0500)
committerRichard Levitte <levitte@openssl.org>
Wed, 19 Dec 2018 17:55:40 +0000 (18:55 +0100)
commit229446dfae66aed32a738063c9062fea8e7049dc
tree9422d403bdb5af2a96cf964fa780bd59d94c24d5
parentffd2df135a5d9f6d2627bd125f362298430fdc06
Some code-cleanup/simplification in apps

Remove some casts on password callback by adding a wrapper function.
Remove level of indent by doing an early-return on failure.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7873)
apps/apps.c
apps/apps.h