Changeset 50904 in vbox
- Timestamp:
- Mar 27, 2014 5:00:13 AM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r50887 r50904 2134 2134 switch(vrc) 2135 2135 { 2136 case VERR_ READING_CERT_FROM_BIO:2136 case VERR_X509_READING_CERT_FROM_BIO: 2137 2137 errStrDesc = "Error during reading a certificate in PEM format from BIO "; 2138 2138 break; 2139 case VERR_ EXTRACT_PUBKEY_FROM_CERT:2139 case VERR_X509_EXTRACT_PUBKEY_FROM_CERT: 2140 2140 errStrDesc = "Error during extraction a public key from the certificate "; 2141 2141 break; 2142 case VERR_ EXTRACT_RSA_FROM_PUBLIC_KEY:2142 case VERR_X509_EXTRACT_RSA_FROM_PUBLIC_KEY: 2143 2143 errStrDesc = "Error during extraction RSA from the public key "; 2144 2144 break; 2145 case VERR_ RSA_VERIFICATION_FUILURE:2145 case VERR_X509_RSA_VERIFICATION_FUILURE: 2146 2146 errStrDesc = "RSA verification failure "; 2147 2147 break; 2148 case VERR_ NO_BASIC_CONSTARAINTS:2148 case VERR_X509_NO_BASIC_CONSTARAINTS: 2149 2149 errStrDesc = "Basic constraints were not found "; 2150 2150 break; 2151 case VERR_ GETTING_EXTENSION_FROM_CERT:2151 case VERR_X509_GETTING_EXTENSION_FROM_CERT: 2152 2152 errStrDesc = "Error during getting extensions from the certificate "; 2153 2153 break; 2154 case VERR_ GETTING_DATA_FROM_EXTENSION:2154 case VERR_X509_GETTING_DATA_FROM_EXTENSION: 2155 2155 errStrDesc = "Error during extraction data from the extension "; 2156 2156 break; 2157 case VERR_ PRINT_EXTENSION_TO_BIO:2157 case VERR_X509_PRINT_EXTENSION_TO_BIO: 2158 2158 errStrDesc = "Error during print out an extension to BIO "; 2159 2159 break; … … 2169 2169 else 2170 2170 { 2171 if(vrc == VINF_ NOT_SELFSIGNED_X509_CERTIFICATE)2171 if(vrc == VINF_X509_NOT_SELFSIGNED_CERTIFICATE) 2172 2172 { 2173 2173 setWarning(VBOX_E_FILE_ERROR, -
trunk/src/VBox/Runtime/common/checksum/x509.cpp
r50887 r50904 82 82 BIO_free(bio_memory); 83 83 if(!*out_cert) 84 rc = VERR_ READING_CERT_FROM_BIO;84 rc = VERR_X509_READING_CERT_FROM_BIO; 85 85 86 86 return rc; … … 204 204 if (evp_key == NULL) 205 205 { 206 rc = VERR_ EXTRACT_PUBKEY_FROM_CERT;206 rc = VERR_X509_EXTRACT_PUBKEY_FROM_CERT; 207 207 break; 208 208 } … … 211 211 if (rsa_key == NULL) 212 212 { 213 rc = VERR_ EXTRACT_RSA_FROM_PUBLIC_KEY;213 rc = VERR_X509_EXTRACT_RSA_FROM_PUBLIC_KEY; 214 214 break; 215 215 } … … 224 224 if (rc != 1) 225 225 { 226 rc = VERR_ RSA_VERIFICATION_FUILURE;226 rc = VERR_X509_RSA_VERIFICATION_FUILURE; 227 227 } 228 228 … … 274 274 if(loc == -1) 275 275 { 276 rc = VERR_ NO_BASIC_CONSTARAINTS;276 rc = VERR_X509_NO_BASIC_CONSTARAINTS; 277 277 break; 278 278 } … … 281 281 if(!ext) 282 282 { 283 rc = VERR_ GETTING_EXTENSION_FROM_CERT;283 rc = VERR_X509_GETTING_EXTENSION_FROM_CERT; 284 284 break; 285 285 } … … 288 288 if(!extdata) 289 289 { 290 rc = VERR_ GETTING_DATA_FROM_EXTENSION;290 rc = VERR_X509_GETTING_DATA_FROM_EXTENSION; 291 291 break; 292 292 } … … 295 295 if(!X509V3_EXT_print(bio_memory, ext, 0, 0)) 296 296 { 297 rc = VERR_ PRINT_EXTENSION_TO_BIO;297 rc = VERR_X509_PRINT_EXTENSION_TO_BIO; 298 298 break; 299 299 } … … 364 364 else 365 365 { 366 rc = VINF_ NOT_SELFSIGNED_X509_CERTIFICATE;366 rc = VINF_X509_NOT_SELFSIGNED_CERTIFICATE; 367 367 } 368 368 } 369 369 else 370 370 { 371 rc = VINF_ NOT_SELFSIGNED_X509_CERTIFICATE;371 rc = VINF_X509_NOT_SELFSIGNED_CERTIFICATE; 372 372 } 373 373
Note:
See TracChangeset
for help on using the changeset viewer.