Changeset 99f8375 in mod_gnutls
- Timestamp:
- Aug 9, 2015, 5:49:12 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- efd3cfe
- Parents:
- dbec528
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_hooks.c
rdbec528 r99f8375 1204 1204 static int mgs_cert_verify(request_rec * r, mgs_handle_t * ctxt) { 1205 1205 const gnutls_datum_t *cert_list; 1206 unsigned int cert_list_size, status; 1206 unsigned int cert_list_size; 1207 /* assume the certificate is invalid unless explicitly set 1208 * otherwise */ 1209 unsigned int status = GNUTLS_CERT_INVALID; 1207 1210 int rv = GNUTLS_E_NO_CERTIFICATE_FOUND, ret; 1208 1211 unsigned int ch_size = 0; … … 1338 1341 #endif 1339 1342 default: 1343 /* If this block is reached, that indicates a 1344 * configuration error or bug in mod_gnutls (invalid value 1345 * of ctxt->sc->client_verify_method). */ 1340 1346 ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, 1341 1347 "GnuTLS: Failed to Verify X.509 Peer: method '%s' is not supported", 1342 1348 mgs_readable_cvm(ctxt->sc->client_verify_method)); 1349 rv = GNUTLS_E_UNIMPLEMENTED_FEATURE; 1343 1350 } 1344 1351 … … 1356 1363 #ifdef ENABLE_MSVA 1357 1364 case mgs_cvm_msva: 1358 /* need to set status and rv */1359 1365 ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, 1360 1366 "GnuTLS: OpenPGP verification via MSVA is not yet implemented"); … … 1363 1369 #endif 1364 1370 default: 1371 /* If this block is reached, that indicates a 1372 * configuration error or bug in mod_gnutls (invalid value 1373 * of ctxt->sc->client_verify_method). */ 1365 1374 ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, 1366 1375 "GnuTLS: Failed to Verify OpenPGP Peer: method '%s' is not supported", 1367 1376 mgs_readable_cvm(ctxt->sc->client_verify_method)); 1368 } 1369 } 1370 1377 rv = GNUTLS_E_UNIMPLEMENTED_FEATURE; 1378 } 1379 } 1380 1381 /* "goto exit" at the end of this block skips evaluation of the 1382 * "status" variable */ 1371 1383 if (rv < 0) { 1372 1384 ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
Note: See TracChangeset
for help on using the changeset viewer.