Replace magic numbers with named symbols

Magic numbers were used for the return codes from the openssl
command. These are replaced with named symbols for readability.

Change-Id: I01a77927bd577bcf81b728a1df23c2058c1a9ae3
Merge "Replace magic numbers with named symbols"