Support openssl 1.0.2b and above
Newer versions of openssl return a different error with alternate certificate chains; update for compatibility. Signed-off-by: Marc Deslauriers <marc.deslauriers@canonical.com> Bug-Ubuntu: https://bugs.launchpad.net/bugs/1474541 Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
ca6ad33055
commit
2c2f71313e
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ static int x509_verify_cb(int status, X509_STORE_CTX *ctx)
|
||||||
|
|
||||||
else if (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY ||
|
else if (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY ||
|
||||||
err == X509_V_ERR_CERT_UNTRUSTED ||
|
err == X509_V_ERR_CERT_UNTRUSTED ||
|
||||||
|
err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT ||
|
||||||
err == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE) {
|
err == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE) {
|
||||||
/* all certs given with the --cert argument are trusted */
|
/* all certs given with the --cert argument are trusted */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue