use openssl constants (#3534)

4 files changed