Changeset 3aff94d in mod_gnutls
- Timestamp:
- Oct 31, 2018, 3:20:28 AM (2 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- b47dc70
- Parents:
- 267a27a
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_cache.c
r267a27a r3aff94d 34 34 35 35 #include <ap_socache.h> 36 #include <mod_status.h> 36 37 #include <apr_escape.h> 37 38 #include <util_mutex.h> … … 519 520 return 0; 520 521 } 522 523 524 525 int mgs_cache_status(mgs_cache_t cache, const char *header_title, 526 request_rec *r, int flags) 527 { 528 if (!(flags & AP_STATUS_SHORT)) 529 ap_rprintf(r, "<h3>%s:</h3>\n", header_title); 530 else 531 ap_rprintf(r, "%s:\n", header_title); 532 533 if (cache->prov->flags & AP_SOCACHE_FLAG_NOTMPSAFE) 534 apr_global_mutex_lock(cache->mutex); 535 cache->prov->status(cache->socache, r, flags); 536 if (cache->prov->flags & AP_SOCACHE_FLAG_NOTMPSAFE) 537 apr_global_mutex_unlock(cache->mutex); 538 539 return OK; 540 } -
src/gnutls_cache.h
r267a27a r3aff94d 163 163 }; 164 164 165 /** 166 * Write cache status to a mod_status report 167 * 168 * @param cache the cache to report on 169 * 170 * @param header_title string to prefix the report with to distinguish 171 * caches 172 * 173 * @param r status output is added to the response for this request 174 * 175 * @param flags request flags, used to toggle "short status" mode 176 * 177 * @return request status, currently always `OK` 178 */ 179 int mgs_cache_status(mgs_cache_t cache, const char *header_title, 180 request_rec *r, int flags); 181 165 182 #endif /** __MOD_GNUTLS_CACHE_H__ */ -
src/gnutls_hooks.c
r267a27a r3aff94d 28 28 #include "http_vhost.h" 29 29 #include "ap_mpm.h" 30 #include "mod_status.h"30 #include <mod_status.h> 31 31 #include <util_mutex.h> 32 32 #include <apr_escape.h> … … 1995 1995 ap_rputs("</dl>\n", r); 1996 1996 1997 if (sc->ocsp_cache) 1998 mgs_cache_status(sc->ocsp_cache, "GnuTLS OCSP Cache", r, flags); 1999 if (sc->cache_enable) 2000 mgs_cache_status(sc->cache, "GnuTLS Session Cache", r, flags); 2001 1997 2002 return OK; 1998 2003 }
Note: See TracChangeset
for help on using the changeset viewer.