Fix the major version number calculation
Add check for X509_VERIFY_PARAM_new