Changeset 50887 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Mar 26, 2014 12:55:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r50832 r50887 2103 2103 if (RT_SUCCESS(vrc)) 2104 2104 { 2105 /* 2106 * possible step in the future. Not obligatory due to OVF2.0 standard 2107 * OVF2.0:"A consumer of the OVF package shall verify the signature and should validate the certificate" 2108 */ 2105 2109 vrc = RTX509CertificateVerify(pvCertBuf, (unsigned int)cbCertSize); 2106 2110 } … … 2157 2161 errStrDesc = "X509 certificate verification failure "; 2158 2162 break; 2159 case VERR_NOT_SELFSIGNED_X509_CERTIFICATE:2160 errStrDesc = "Only self signed X509 certificates are supported at moment";2161 break;2162 2163 default: 2163 2164 errStrDesc = "Unknown error during X509 certificate verification"; 2164 2165 } 2165 2166 rc = setError(VBOX_E_FILE_ERROR, tr(errStrDesc.c_str())); 2167 } 2168 } 2169 else 2170 { 2171 if(vrc == VINF_NOT_SELFSIGNED_X509_CERTIFICATE) 2172 { 2173 setWarning(VBOX_E_FILE_ERROR, 2174 tr("Signature from the X509 certificate has been verified. " 2175 "But VirtualBox can't validate the given X509 certificate. " 2176 "Only self signed X509 certificates are supported at moment. \n")); 2166 2177 } 2167 2178 }
Note:
See TracChangeset
for help on using the changeset viewer.