allow X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT

This is needed when installing a server certificate with intermediate
root. Due to the limitation of current implementation, the leaf
certificate has to be the first certificate, followed by any
intermediate root.

This error is similar to the existing one with _LOCALLY.
See https://security.stackexchange.com/questions/144337.

Tested on QEMU.

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I52f3b60c5641f9421cf93a4da628f9b22e4f15d6
diff --git a/certificate.cpp b/certificate.cpp
index 7872d81..4e6defc 100644
--- a/certificate.cpp
+++ b/certificate.cpp
@@ -41,6 +41,7 @@
     ((errnum == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) ||                     \
      (errnum == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN) ||                       \
      (errnum == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY) ||               \
+     (errnum == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT) ||                       \
      (errnum == X509_V_ERR_CERT_UNTRUSTED) ||                                  \
      (errnum == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE))