"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mod_md.c" between
mod_md-2.4.2.tar.gz and mod_md-2.4.4.tar.gz

About: mod_md is an Apache module that adds Let's Encrypt (ACME) support.

mod_md.c  (mod_md-2.4.2):mod_md.c  (mod_md-2.4.4)
skipping to change at line 1278 skipping to change at line 1278
int i; int i;
if (!servername if (!servername
|| !(protocol = md_protocol_get(c)) || !(protocol = md_protocol_get(c))
|| strcmp(PROTO_ACME_TLS_1, protocol)) { || strcmp(PROTO_ACME_TLS_1, protocol)) {
goto cleanup; goto cleanup;
} }
sc = md_config_get(c->base_server); sc = md_config_get(c->base_server);
if (!sc || !sc->mc->reg) goto cleanup; if (!sc || !sc->mc->reg) goto cleanup;
ap_log_cerror(APLOG_MARK, APLOG_TRACE6, 0, c, ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
"Answer challenge[tls-alpn-01] for %s", servername); "Answer challenge[tls-alpn-01] for %s", servername);
store = md_reg_store_get(sc->mc->reg); store = md_reg_store_get(sc->mc->reg);
for (i = 0; i < md_pkeys_spec_count( sc->pks ); i++) { for (i = 0; i < md_pkeys_spec_count( sc->pks ); i++) {
tls_alpn01_fnames(c->pool, md_pkeys_spec_get(sc->pks,i), tls_alpn01_fnames(c->pool, md_pkeys_spec_get(sc->pks,i),
&pkey_name, &cert_name); &pkey_name, &cert_name);
rv = md_store_load(store, MD_SG_CHALLENGES, servername, cert_name, MD_SV _TEXT, rv = md_store_load(store, MD_SG_CHALLENGES, servername, cert_name, MD_SV _TEXT,
(void**)&cert_pem, c->pool); (void**)&cert_pem, c->pool);
if (APR_STATUS_IS_ENOENT(rv)) continue; if (APR_STATUS_IS_ENOENT(rv)) continue;
skipping to change at line 1506 skipping to change at line 1506
ap_hook_handler(md_status_handler, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_handler(md_status_handler, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_ssl_answer_challenge(md_answer_challenge, NULL, NULL, APR_HOOK_MIDDL E); ap_hook_ssl_answer_challenge(md_answer_challenge, NULL, NULL, APR_HOOK_MIDDL E);
ap_hook_ssl_add_cert_files(md_add_cert_files, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_ssl_add_cert_files(md_add_cert_files, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_ssl_add_fallback_cert_files(md_add_fallback_cert_files, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_ssl_add_fallback_cert_files(md_add_fallback_cert_files, NULL, NULL, APR_HOOK_MIDDLE);
#if AP_MODULE_MAGIC_AT_LEAST(20120211, 105) #if AP_MODULE_MAGIC_AT_LEAST(20120211, 105)
ap_hook_ssl_ocsp_prime_hook(md_ocsp_prime_status, NULL, NULL, APR_HOOK_MIDDL E); ap_hook_ssl_ocsp_prime_hook(md_ocsp_prime_status, NULL, NULL, APR_HOOK_MIDDL E);
ap_hook_ssl_ocsp_get_resp_hook(md_ocsp_provide_status, NULL, NULL, APR_HOOK_ MIDDLE); ap_hook_ssl_ocsp_get_resp_hook(md_ocsp_provide_status, NULL, NULL, APR_HOOK_ MIDDLE);
#else #else
#error "This version of mod_md requires Apache httpd 2.4.48 or newer."
#ifndef SSL_CERT_HOOKS
#error "This version of mod_md requires Apache httpd 2.4.41 or newer."
#endif
APR_OPTIONAL_HOOK(ssl, init_stapling_status, md_ocsp_init_stapling_status, N
ULL, NULL, APR_HOOK_MIDDLE);
APR_OPTIONAL_HOOK(ssl, get_stapling_status, md_ocsp_get_stapling_status, NUL
L, NULL, APR_HOOK_MIDDLE);
#endif /* AP_MODULE_MAGIC_AT_LEAST() */ #endif /* AP_MODULE_MAGIC_AT_LEAST() */
} }
 End of changes. 2 change blocks. 
9 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)