CVSROOT:        /cvs
Module name:    src
Changes by:     inogu...@cvs.openbsd.org        2019/07/08 05:56:18

Modified files:
        lib/libcrypto/pem: pvkfmt.c 

Log message:
Clean up pvkfmt.c

- Replace EVP_CIPHER_CTX_init with EVP_CIPHER_CTX_new and handle return value
- Replace EVP_CIPHER_CTX_cleanup with EVP_CIPHER_CTX_free
- Change two 'return -1;' to 'goto err;' for avoiding leak
- Remove the case if enclevel == 0
- Change enclevel checking to make more consistent
- Change all goto label to 'err' and insert space before goto label

ok and advise from tb@

Reply via email to