Some cleanups to apps/ca.c
authorFdaSilvaYY <fdasilvayy@gmail.com>
Mon, 16 Oct 2017 19:46:50 +0000 (15:46 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 16 Oct 2017 19:46:50 +0000 (15:46 -0400)
commitb5895815abad1b108902a55525daad7bdca02721
treee95112e8178460245a83d99903dde7a31540992d
parent8176431d5901ed09c8cd99c85178f43172741ddc
Some cleanups to apps/ca.c

Few code format fixup
Fix limit computation; was too strict by 2 bytes.
Simplify computation of buffer limits
Checking is strictly same as sizeof(".pem") == 5
Simplify loop of code for certificate filename creation
Fix MAX_PATH usage

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1936)
apps/ca.c