oidc_cache_mutex_create:
   63|      4|oidc_cache_mutex_t *oidc_cache_mutex_create(apr_pool_t *pool, apr_byte_t global) {
   64|      4|	oidc_cache_mutex_t *ctx = apr_pcalloc(pool, sizeof(oidc_cache_mutex_t));
  ------------------
  |  |  465|      4|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
   65|      4|	ctx->gmutex = NULL;
   66|      4|	ctx->tmutex = NULL;
   67|      4|	ctx->mutex_filename = NULL;
   68|      4|	ctx->is_parent = TRUE;
  ------------------
  |  |   55|      4|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      4|#define FALSE 0
  |  |  ------------------
  ------------------
   69|      4|	ctx->is_global = global;
   70|      4|	return ctx;
   71|      4|}
oidc_cache_mutex_post_config:
  145|      4|apr_byte_t oidc_cache_mutex_post_config(apr_pool_t *pool, server_rec *s, oidc_cache_mutex_t *m, const char *type) {
  146|      4|	apr_byte_t rc = TRUE;
  ------------------
  |  |   55|      4|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      4|#define FALSE 0
  |  |  ------------------
  ------------------
  147|      4|	apr_status_t rv = APR_SUCCESS;
  ------------------
  |  |  225|      4|#define APR_SUCCESS 0
  ------------------
  148|       |
  149|      4|	if (m->is_global) {
  ------------------
  |  Branch (149:6): [True: 4, False: 0]
  ------------------
  150|      4|		rc = oidc_cache_mutex_global_create(pool, s, m, type);
  151|      4|		goto end;
  152|      4|	}
  153|       |
  154|       |	// NB: see the note above at apr_global_mutex_create on the pool/pre-cleanup ordering requirement
  155|      0|	rv = apr_thread_mutex_create(&m->tmutex, APR_THREAD_MUTEX_DEFAULT, pool);
  ------------------
  |  |   43|      0|#define APR_THREAD_MUTEX_DEFAULT  0x0   /**< platform-optimal lock behavior */
  ------------------
  156|      0|	if (rv != APR_SUCCESS) {
  ------------------
  |  |  225|      0|#define APR_SUCCESS 0
  ------------------
  |  Branch (156:6): [True: 0, False: 0]
  ------------------
  157|      0|		oidc_serror(s, "apr_thread_mutex_create failed: %s (%d)", oidc_cache_status2str(pool, rv), rv);
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  158|      0|		rc = FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  159|      0|		goto end;
  160|      0|	}
  161|       |
  162|      4|end:
  163|       |
  164|      4|	return rc;
  165|      0|}
common.c:oidc_cache_mutex_global_create:
   88|      4|						 const char *type) {
   89|       |
   90|      4|	apr_status_t rv = APR_SUCCESS;
  ------------------
  |  |  225|      4|#define APR_SUCCESS 0
  ------------------
   91|      4|	const char *dir;
   92|       |
   93|       |	/* construct the mutex filename */
   94|      4|	rv = apr_temp_dir_get(&dir, pool);
   95|      4|	if (rv != APR_SUCCESS) {
  ------------------
  |  |  225|      4|#define APR_SUCCESS 0
  ------------------
  |  Branch (95:6): [True: 0, False: 4]
  ------------------
   96|      0|		oidc_serror(s, "apr_temp_dir_get failed: could not find a temp dir: %s",
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
   97|      0|			    oidc_cache_status2str(pool, rv));
   98|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
   99|      0|	}
  100|       |
  101|      4|	m->mutex_filename =
  102|      4|	    apr_psprintf(pool, "%s/mod_auth_openidc_%s_mutex.%ld.%pp", dir, type, (long int)getpid(), s);
  103|       |
  104|       |	/* set the lock type */
  105|      4|	apr_lockmech_e mech =
  106|       |#ifdef OIDC_LOCK
  107|       |	    OIDC_LOCK
  108|       |#elif APR_HAS_POSIXSEM_SERIALIZE
  109|       |	    APR_LOCK_POSIXSEM
  110|       |#else
  111|       |	    APR_LOCK_DEFAULT
  112|       |#endif
  113|      4|	    ;
  114|       |
  115|       |	/*
  116|       |	 * The server pre-cleanup must destroy this mutex before APR's regular cleanup tears down its
  117|       |	 * semaphore. Changing that order can crash graceful restarts.
  118|       |	 */
  119|      4|	rv = apr_global_mutex_create(&m->gmutex, (const char *)m->mutex_filename, mech, pool);
  120|       |
  121|      4|	if (rv != APR_SUCCESS) {
  ------------------
  |  |  225|      4|#define APR_SUCCESS 0
  ------------------
  |  Branch (121:6): [True: 0, False: 4]
  ------------------
  122|      0|		oidc_serror(s, "apr_global_mutex_create failed to create mutex (%d) on file %s: %s (%d)", mech,
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  123|      0|			    m->mutex_filename, oidc_cache_status2str(pool, rv), rv);
  124|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  125|      0|	}
  126|       |
  127|       |	/* need this on Linux */
  128|      4|#ifdef AP_NEED_SET_MUTEX_PERMS
  129|      4|	rv = ap_unixd_set_global_mutex_perms(m->gmutex);
  130|      4|	if (rv != APR_SUCCESS) {
  ------------------
  |  |  225|      4|#define APR_SUCCESS 0
  ------------------
  |  Branch (130:6): [True: 0, False: 4]
  ------------------
  131|      0|		oidc_serror(s, "unixd_set_global_mutex_perms failed; could not set permissions: %s (%d)",
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  132|      0|			    oidc_cache_status2str(pool, rv), rv);
  133|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  134|      0|	}
  135|      4|#endif
  136|       |
  137|      4|	oidc_slog(s, APLOG_TRACE1, "create: %pp (m=%pp,s=%pp, p=%d)", m, m->gmutex ? m->gmutex : 0, s, m->is_parent);
  ------------------
  |  |  183|      4|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  ------------------
  |  |  |  |  363|      4|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      4|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  183|      4|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   60|      4|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   48|      4|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (183:13): [Folded, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  184|      4|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  185|      4|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  626|      4|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  621|      8|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 4, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  622|      4|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  623|      4|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  186|      4|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   60|      4|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  367|      4|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (367:65): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  368|      4|    } while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 4]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  184|      4|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  ------------------
  138|       |
  139|      4|	return TRUE;
  ------------------
  |  |   55|      4|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      4|#define FALSE 0
  |  |  ------------------
  ------------------
  140|      4|}

oidc_cache_shm_segment_size:
  121|      2|apr_byte_t oidc_cache_shm_segment_size(int size_max, int entry_size_max, apr_uint32_t nbuckets, apr_size_t *result) {
  122|       |	/* Calculate in 64 bits first: apr_size_t is only 32 bits on supported 32-bit APR builds. */
  123|      2|	const apr_uint64_t header_size = ((apr_uint64_t)sizeof(oidc_cache_shm_header_t) + 63) & ~63ULL;
  124|      2|	const apr_uint64_t bucket_size = ((apr_uint64_t)nbuckets * sizeof(apr_uint32_t) + 63) & ~63ULL;
  125|      2|	const apr_uint64_t slot_size = ((apr_uint64_t)entry_size_max + 63) & ~63ULL;
  126|      2|	const apr_uint64_t slots_size = slot_size * (apr_uint64_t)size_max;
  127|      2|	const apr_uint64_t total = 64 + header_size + bucket_size + slots_size;
  128|       |
  129|      2|	if ((result == NULL) || (size_max <= 0) || (entry_size_max <= 0) || (nbuckets == 0) ||
  ------------------
  |  Branch (129:6): [True: 0, False: 2]
  |  Branch (129:26): [True: 0, False: 2]
  |  Branch (129:45): [True: 0, False: 2]
  |  Branch (129:70): [True: 0, False: 2]
  ------------------
  130|      2|	    (slots_size / slot_size != (apr_uint64_t)size_max) || (total < slots_size) ||
  ------------------
  |  Branch (130:6): [True: 0, False: 2]
  |  Branch (130:60): [True: 0, False: 2]
  ------------------
  131|      2|	    (total > (apr_uint64_t)SIZE_MAX) || (total > OIDC_CACHE_SHM_SEGMENT_SIZE_MAX))
  ------------------
  |  |   60|      2|#define OIDC_CACHE_SHM_SEGMENT_SIZE_MAX ((apr_uint64_t)16 * 1024 * 1024 * 1024)
  ------------------
  |  Branch (131:6): [True: 0, False: 2]
  |  Branch (131:42): [True: 0, False: 2]
  ------------------
  132|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  133|       |
  134|      2|	*result = (apr_size_t)total;
  135|      2|	return TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  136|      2|}
shm.c:oidc_cache_shm_base:
  117|      2|static oidc_cache_shm_header_t *oidc_cache_shm_base(const oidc_cache_cfg_shm_t *context) {
  118|      2|	return (oidc_cache_shm_header_t *)APR_ALIGN((uintptr_t)apr_shm_baseaddr_get(context->shm), 64);
  ------------------
  |  |  137|      2|    (((size) + ((boundary) - 1)) & ~((boundary) - 1))
  ------------------
  119|      2|}
shm.c:oidc_cache_shm_buckets:
  102|  1.00k|static apr_uint32_t *oidc_cache_shm_buckets(oidc_cache_shm_header_t *hdr) {
  103|  1.00k|	return (apr_uint32_t *)((uint8_t *)hdr + APR_ALIGN(sizeof(oidc_cache_shm_header_t), 64));
  ------------------
  |  |  137|  1.00k|    (((size) + ((boundary) - 1)) & ~((boundary) - 1))
  ------------------
  104|  1.00k|}
shm.c:oidc_cache_shm_slot:
  106|  1.00k|static oidc_cache_shm_entry_t *oidc_cache_shm_slot(oidc_cache_shm_header_t *hdr, apr_uint32_t idx) {
  107|  1.00k|	uint8_t *slots =
  108|  1.00k|	    (uint8_t *)oidc_cache_shm_buckets(hdr) + APR_ALIGN((apr_size_t)hdr->nbuckets * sizeof(apr_uint32_t), 64);
  ------------------
  |  |  137|  1.00k|    (((size) + ((boundary) - 1)) & ~((boundary) - 1))
  ------------------
  109|  1.00k|	return (oidc_cache_shm_entry_t *)(slots + (apr_size_t)(idx - 1) * hdr->entry_size);
  110|  1.00k|}
shm.c:oidc_cache_shm_post_config:
  295|      2|static int oidc_cache_shm_post_config(apr_pool_t *pool, server_rec *s) {
  296|      2|	oidc_cfg_t *cfg = (oidc_cfg_t *)ap_get_module_config(s->module_config, &auth_openidc_module);
  ------------------
  |  |  551|      2|    (((void **)(v))[(m)->module_index])
  ------------------
  297|      2|	const int size_max = oidc_cfg_cache_shm_size_max_get(cfg);
  298|      2|	const int entry_size_max = oidc_cfg_cache_shm_entry_size_max_get(cfg);
  299|       |
  300|      2|	if (cfg->cache.cfg != NULL)
  ------------------
  |  Branch (300:6): [True: 0, False: 2]
  ------------------
  301|      0|		return OK;
  ------------------
  |  |  456|      0|#define OK 0                    /**< Module has handled this stage. */
  ------------------
  302|      2|	oidc_cache_cfg_shm_t *context = oidc_cache_shm_cfg_create(pool);
  303|      2|	cfg->cache.cfg = context;
  304|       |
  305|       |	/* a power-of-two number of hash buckets >= the number of slots */
  306|      2|	apr_uint32_t nbuckets = 1;
  307|     20|	while ((nbuckets < (apr_uint32_t)size_max) && (nbuckets <= UINT32_MAX / 2))
  ------------------
  |  Branch (307:9): [True: 18, False: 2]
  |  Branch (307:48): [True: 18, False: 0]
  ------------------
  308|     18|		nbuckets <<= 1;
  309|      2|	if (nbuckets < (apr_uint32_t)size_max) {
  ------------------
  |  Branch (309:6): [True: 0, False: 2]
  ------------------
  310|      0|		oidc_serror(s, "could not size the shared memory hash bucket array");
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  311|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
  312|      0|	}
  313|       |
  314|      2|	apr_size_t segment_size = 0;
  315|      2|	if (oidc_cache_shm_segment_size(size_max, entry_size_max, nbuckets, &segment_size) == FALSE) {
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  |  Branch (315:6): [True: 0, False: 2]
  ------------------
  316|      0|		oidc_serror(s,
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  317|      0|			    "requested shared memory cache is too large; reduce " OIDCCacheShmMax
  318|      0|			    " or " OIDCCacheShmEntrySizeMax " (maximum segment size is %" APR_UINT64_T_FMT " bytes)",
  319|      0|			    OIDC_CACHE_SHM_SEGMENT_SIZE_MAX);
  320|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
  321|      0|	}
  322|       |
  323|       |	/* create the shared memory segment */
  324|      2|	apr_status_t rv = apr_shm_create(&context->shm, segment_size, NULL, pool);
  325|      2|	if (rv != APR_SUCCESS) {
  ------------------
  |  |  225|      2|#define APR_SUCCESS 0
  ------------------
  |  Branch (325:6): [True: 0, False: 2]
  ------------------
  326|      0|		oidc_serror(s, "apr_shm_create failed to create shared memory segment");
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  327|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
  328|      0|	}
  329|       |
  330|       |	/* initialize the header, the (empty) hash buckets and the free list holding all slots */
  331|      2|	oidc_cache_shm_header_t *hdr = oidc_cache_shm_base(context);
  332|      2|	hdr->nslots = (apr_uint32_t)size_max;
  333|      2|	hdr->nbuckets = nbuckets;
  334|       |	/* round the slot stride up to the entry's 64-byte alignment (see oidc_cache_shm_segment_size) */
  335|      2|	hdr->entry_size = (apr_uint32_t)APR_ALIGN((apr_size_t)entry_size_max, 64);
  ------------------
  |  |  137|      2|    (((size) + ((boundary) - 1)) & ~((boundary) - 1))
  ------------------
  336|      2|	if (apr_generate_random_bytes((unsigned char *)hdr->hash_key, sizeof(hdr->hash_key)) != APR_SUCCESS) {
  ------------------
  |  |  225|      2|#define APR_SUCCESS 0
  ------------------
  |  Branch (336:6): [True: 0, False: 2]
  ------------------
  337|      0|		oidc_serror(s, "apr_generate_random_bytes failed to seed the shared memory cache hash");
  ------------------
  |  |  193|      0|#define oidc_serror(s, fmt, ...) oidc_slog(s, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      0|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      0|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      0|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      0|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      0|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      0|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      0|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      0|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  338|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
  339|      0|	}
  340|      2|	hdr->last_pressure_warning = 0;
  341|      2|	_oidc_memset(oidc_cache_shm_buckets(hdr), 0, (apr_size_t)nbuckets * sizeof(apr_uint32_t));
  ------------------
  |  |   84|      2|#define _oidc_memset(b, c, __len) memset(b, c, __len)
  ------------------
  342|  1.00k|	for (apr_uint32_t i = 1; i <= hdr->nslots; i++) {
  ------------------
  |  Branch (342:27): [True: 1.00k, False: 2]
  ------------------
  343|  1.00k|		oidc_cache_shm_entry_t *t = oidc_cache_shm_slot(hdr, i);
  344|  1.00k|		t->section_key[0] = '\0';
  345|  1.00k|		t->access = 0;
  346|  1.00k|		t->next = i < hdr->nslots ? i + 1 : 0;
  ------------------
  |  Branch (346:13): [True: 998, False: 2]
  ------------------
  347|  1.00k|	}
  348|      2|	hdr->free_head = 1;
  349|       |
  350|      2|	if (oidc_cache_mutex_post_config(pool, s, context->mutex, "shm") == FALSE)
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  |  Branch (350:6): [True: 0, False: 2]
  ------------------
  351|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
  352|      2|	context->mutex_ready = TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  353|       |
  354|      2|	oidc_sdebug(s,
  ------------------
  |  |  191|      2|#define oidc_sdebug(s, fmt, ...) oidc_slog(s, OIDC_DEBUG, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  183|      2|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  363|      2|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  366|      2|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  183|      2|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      2|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      2|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (183:13): [Folded, False: 2]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  184|      2|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  185|      2|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  626|      2|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      4|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      2|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      2|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  186|      2|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      2|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  367|      4|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (367:40): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  368|      2|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      2|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  |  |  ------------------
  ------------------
  355|      2|		    "initialized shared memory with a cache size (# entries) of: %d, a max (single) entry size of: %d, "
  356|      2|		    "and a segment size of: %" APR_SIZE_T_FMT,
  357|      2|		    size_max, entry_size_max, segment_size);
  358|       |
  359|      2|	oidc_slog(s, APLOG_TRACE1, "create: %pp (shm=%pp,s=%pp, p=%d)", context, context ? context->shm : 0, s,
  ------------------
  |  |  183|      2|	ap_log_error(APLOG_MARK, level, 0, s, "%s: %s", __FUNCTION__,                                                  \
  |  |  ------------------
  |  |  |  |  363|      2|#define ap_log_error(...) ap_log_error__(__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|      2|    do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  183|      2|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   60|      2|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   48|      2|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (183:13): [Folded, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  184|      2|            (s == NULL) ||                                       \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (184:13): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  185|      2|            (ap_get_server_module_loglevel(s, module_index)      \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  626|      2|    (ap_get_module_loglevel(&(s)->log,i))
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  621|      4|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  622|      2|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  623|      2|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (185:13): [True: 0, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  186|      2|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   60|      2|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  367|      2|             ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__);    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (367:40): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (367:65): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (367:65): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  368|      2|    } while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (368:13): [Folded, False: 2]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  184|      2|		     apr_psprintf(s->process->pconf, fmt, ##__VA_ARGS__))
  ------------------
  360|      2|		  context ? context->is_parent : -1);
  361|       |
  362|      2|	return OK;
  ------------------
  |  |  456|      2|#define OK 0                    /**< Module has handled this stage. */
  ------------------
  363|      2|}
shm.c:oidc_cache_shm_cfg_create:
  284|      2|static void *oidc_cache_shm_cfg_create(apr_pool_t *pool) {
  285|      2|	oidc_cache_cfg_shm_t *context = apr_pcalloc(pool, sizeof(oidc_cache_cfg_shm_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  286|      2|	context->shm = NULL;
  287|      2|	context->mutex = oidc_cache_mutex_create(pool, TRUE);
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  288|      2|	context->is_parent = TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  289|      2|	return context;
  290|      2|}

oidc_cfg_cache_shm_size_max_get:
   61|      2|	type oidc_cfg_cache_##member##_get(const oidc_cfg_t *cfg) {                                                    \
   62|      2|		if (cfg->cache.member == unset_val)                                                                    \
  ------------------
  |  Branch (62:7): [True: 0, False: 2]
  ------------------
   63|      2|			return def_val;                                                                                \
   64|      2|		return cfg->cache.member;                                                                              \
   65|      2|	}
oidc_cfg_cache_shm_entry_size_max_get:
   61|      2|	type oidc_cfg_cache_##member##_get(const oidc_cfg_t *cfg) {                                                    \
   62|      2|		if (cfg->cache.member == unset_val)                                                                    \
  ------------------
  |  Branch (62:7): [True: 0, False: 2]
  ------------------
   63|      2|			return def_val;                                                                                \
   64|      2|		return cfg->cache.member;                                                                              \
   65|      2|	}
oidc_cfg_cache_create_server_config:
  267|      2|void oidc_cfg_cache_create_server_config(oidc_cfg_t *c) {
  268|      2|	c->cache.impl = NULL;
  269|      2|	c->cache.cfg = NULL;
  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  ------------------
  |  |  111|      2|	INT(int, encrypt)                                                                                              \
  |  |  ------------------
  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  261|      2|#define OIDC_CACHE_M_CREATE_INT(type, name) c->cache.name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  112|      2|	/* shm: size of the segment (max number of cached entries) and max size in bytes of one entry */               \
  |  |  113|      2|	INT(int, shm_size_max)                                                                                         \
  |  |  ------------------
  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  261|      2|#define OIDC_CACHE_M_CREATE_INT(type, name) c->cache.name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  114|      2|	INT(int, shm_entry_size_max)                                                                                   \
  |  |  ------------------
  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  261|      2|#define OIDC_CACHE_M_CREATE_INT(type, name) c->cache.name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|      2|	/* file: directory holding the cache files (OS default like "/tmp" if unset) + clean interval */               \
  |  |  116|      2|	PTR(char *, file_dir)                                                                                          \
  |  |  ------------------
  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  260|      2|#define OIDC_CACHE_M_CREATE_PTR(type, name) c->cache.name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  117|      2|	INT(int, file_clean_interval)                                                                                  \
  |  |  ------------------
  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  261|      2|#define OIDC_CACHE_M_CREATE_INT(type, name) c->cache.name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  118|      2|	OIDC_CACHE_CFG_MEMCACHE_MEMBERS(PTR, INT, TIMEOUT)                                                             \
  |  |  ------------------
  |  |  |  |   81|      2|	PTR(char *, memcache_servers)                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  260|      2|#define OIDC_CACHE_M_CREATE_PTR(type, name) c->cache.name = NULL;
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   82|      2|	/* cache_type= memcache: minimum number of connections to each memcache server per process*/                   \
  |  |  |  |   83|      2|	INT(int, memcache_min)                                                                                         \
  |  |  |  |  ------------------
  |  |  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  261|      2|#define OIDC_CACHE_M_CREATE_INT(type, name) c->cache.name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   84|      2|	/* cache_type= memcache: soft maximum number of connections to each memcache server per process */             \
  |  |  |  |   85|      2|	INT(int, memcache_smax)                                                                                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  261|      2|#define OIDC_CACHE_M_CREATE_INT(type, name) c->cache.name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   86|      2|	/* cache_type= memcache: hard maximum number of connections to each memcache server per process */             \
  |  |  |  |   87|      2|	INT(int, memcache_hmax)                                                                                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  261|      2|#define OIDC_CACHE_M_CREATE_INT(type, name) c->cache.name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   88|      2|	/* cache_type= memcache: maximum time in microseconds a connection to a memcache server can be idle before     \
  |  |  |  |   89|      2|	 * being closed */                                                                                             \
  |  |  |  |   90|      2|	TIMEOUT(memcache_ttl)
  |  |  |  |  ------------------
  |  |  |  |  |  |  270|      2|	OIDC_CACHE_CFG_SIMPLE_MEMBERS(OIDC_CACHE_M_CREATE_PTR, OIDC_CACHE_M_CREATE_INT, OIDC_CACHE_M_CREATE_TIMEOUT)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  262|      2|#define OIDC_CACHE_M_CREATE_TIMEOUT(name) c->cache.name = OIDC_CONFIG_POS_TIMEOUT_UNSET;
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   59|      2|#define OIDC_CONFIG_POS_TIMEOUT_UNSET (apr_interval_time_t) - 2
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  119|      2|	OIDC_CACHE_CFG_REDIS_MEMBERS(PTR, INT, TIMEOUT)
  ------------------
  271|      2|}

oidc_cfg_claim_prefix_get:
  540|  3.67k|const char *oidc_cfg_claim_prefix_get(const oidc_cfg_t *cfg) {
  541|  3.67k|	return (cfg->claim_prefix != NULL) ? cfg->claim_prefix : OIDC_DEFAULT_CLAIM_PREFIX;
  ------------------
  |  |  538|  7.34k|#define OIDC_DEFAULT_CLAIM_PREFIX "OIDC_CLAIM_"
  ------------------
  |  Branch (541:9): [True: 0, False: 3.67k]
  ------------------
  542|  3.67k|}
oidc_cfg_server_create:
  862|      2|void *oidc_cfg_server_create(apr_pool_t *pool, server_rec *svr) {
  863|      2|	oidc_cfg_t *c = oidc_cfg_server_alloc(pool, svr);
  864|      2|	c->svr = svr;
  865|       |
  866|      2|	c->merged = FALSE;
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  867|       |	/* nothing to inherit from: whatever OIDCRedirectURI this config ends up with is its own */
  868|      2|	c->redirect_uri_inherited = FALSE;
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  869|       |
  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  ------------------
  |  |  138|      2|	PTR(char *, redirect_uri)                                                                                      \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  139|      2|	/* (optional) default URL for 3rd-party initiated SSO */                                                       \
  |  |  140|      2|	PTR(char *, default_sso_url)                                                                                   \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  141|      2|	/* (optional) default URL to go to after logout */                                                             \
  |  |  142|      2|	PTR(char *, default_slo_url)                                                                                   \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  143|      2|	/* Javascript template to preserve POST data */                                                                \
  |  |  144|      2|	PTR(char *, post_preserve_template)                                                                            \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  145|      2|	/* Javascript template to restore POST data */                                                                 \
  |  |  146|      2|	PTR(char *, post_restore_template)                                                                             \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  147|      2|	/* type of session management/storage */                                                                       \
  |  |  148|      2|	INT(session_type)                                                                                              \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  149|      2|	/* whether secrets/tokens are masked in the debug log */                                                       \
  |  |  150|      2|	INT(debug_mask_secrets)                                                                                        \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  151|      2|	INT(session_cache_fallback_to_cookie)                                                                          \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  152|      2|	/* session cookie or persistent cookie */                                                                      \
  |  |  153|      2|	INT(persistent_session_cookie)                                                                                 \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  154|      2|	/* store the id_token in the session */                                                                        \
  |  |  155|      2|	INT(store_id_token)                                                                                            \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  156|      2|	/* session cookie chunk size */                                                                                \
  |  |  157|      2|	INT(session_cookie_chunk_size)                                                                                 \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  158|      2|	PTR(char *, cookie_domain)                                                                                     \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  159|      2|	INT(cookie_http_only)                                                                                          \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  160|      2|	/* samesite cookie settings */                                                                                 \
  |  |  161|      2|	INT(cookie_same_site_session)                                                                                  \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  162|      2|	INT(cookie_same_site_state)                                                                                    \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  163|      2|	INT(cookie_same_site_discovery_csrf)                                                                           \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  164|      2|	INT(state_timeout)                                                                                             \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  165|      2|	INT(max_number_of_state_cookies)                                                                               \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  166|      2|	INT(delete_oldest_state_cookies)                                                                               \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  167|      2|	INT(state_input_headers)                                                                                       \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  168|      2|	INT(session_inactivity_timeout)                                                                                \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  169|      2|	INT(provider_metadata_refresh_interval)                                                                        \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  170|      2|	PTR(char *, claim_delimiter)                                                                                   \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  171|      2|	PTR(char *, claim_prefix)                                                                                      \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  172|      2|	PTR(char *, ca_bundle_path)                                                                                    \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  173|      2|	PTR(char *, logout_x_frame_options)                                                                            \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|	INT(x_forwarded_headers)                                                                                       \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  175|      2|	INT(action_on_userinfo_error)                                                                                  \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  176|      2|	INT(trace_parent)                                                                                              \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  177|      2|	PTR(char *, metrics_path)                                                                                      \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|	INT(metrics_cache_storage_interval)                                                                            \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  179|      2|	INT(metrics_cache_json_max)                                                                                    \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  180|      2|	INT(dpop_api_enabled)                                                                                          \
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  858|      2|#define OIDC_SVR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  181|      2|	/* directory that holds the provider & client metadata files */                                                \
  |  |  182|      2|	PTR(char *, metadata_dir)
  |  |  ------------------
  |  |  |  |  870|      2|	OIDC_SVR_CFG_SIMPLE_MEMBERS(OIDC_SVR_M_CREATE_PTR, OIDC_SVR_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  857|      2|#define OIDC_SVR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  871|      2|	c->public_keys = NULL;
  872|      2|	c->private_keys = NULL;
  873|       |
  874|      2|	c->provider = oidc_cfg_provider_create(pool);
  875|      2|	c->oauth = oidc_cfg_oauth_create(pool);
  876|      2|	oidc_cfg_cache_create_server_config(c);
  877|       |
  878|      2|	c->http_timeout_long.request_timeout = OIDC_CONFIG_POS_INT_UNSET;
  ------------------
  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  ------------------
  879|      2|	c->http_timeout_long.connect_timeout = OIDC_DEFAULT_HTTP_CONNECT_TIMEOUT_LONG;
  ------------------
  |  |   90|      2|#define OIDC_DEFAULT_HTTP_CONNECT_TIMEOUT_LONG 10
  ------------------
  880|      2|	c->http_timeout_long.retries = OIDC_DEFAULT_HTTP_RETRIES_LONG;
  ------------------
  |  |   92|      2|#define OIDC_DEFAULT_HTTP_RETRIES_LONG 1
  ------------------
  881|      2|	c->http_timeout_long.retry_interval = OIDC_DEFAULT_HTTP_RETRY_INTERVAL_LONG;
  ------------------
  |  |   94|      2|#define OIDC_DEFAULT_HTTP_RETRY_INTERVAL_LONG 500
  ------------------
  882|      2|	c->http_timeout_short.request_timeout = OIDC_CONFIG_POS_INT_UNSET;
  ------------------
  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  ------------------
  883|      2|	c->http_timeout_short.connect_timeout = OIDC_DEFAULT_HTTP_CONNECT_TIMEOUT_SHORT;
  ------------------
  |  |   98|      2|#define OIDC_DEFAULT_HTTP_CONNECT_TIMEOUT_SHORT 2
  ------------------
  884|      2|	c->http_timeout_short.retries = OIDC_DEFAULT_HTTP_RETRIES_SHORT;
  ------------------
  |  |  100|      2|#define OIDC_DEFAULT_HTTP_RETRIES_SHORT 1
  ------------------
  885|      2|	c->http_timeout_short.retry_interval = OIDC_DEFAULT_HTTP_RETRY_INTERVAL_SHORT;
  ------------------
  |  |  102|      2|#define OIDC_DEFAULT_HTTP_RETRY_INTERVAL_SHORT 300
  ------------------
  886|       |
  887|      2|	c->remote_user_claim.claim_name = NULL;
  888|      2|	c->remote_user_claim.reg_exp = NULL;
  889|      2|	c->remote_user_claim.replace = NULL;
  890|       |
  891|      2|	c->outgoing_proxy.host_port = NULL;
  892|      2|	c->outgoing_proxy.username_password = NULL;
  893|      2|	c->outgoing_proxy.auth_type = OIDC_CONFIG_POS_INT_UNSET;
  ------------------
  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  ------------------
  894|       |
  895|      2|	c->crypto_passphrase.secret1 = NULL;
  896|      2|	c->crypto_passphrase.secret2 = NULL;
  897|      2|	c->crypto_passphrase.derived_key1_set = FALSE;
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  898|      2|	c->crypto_passphrase.derived_key2_set = FALSE;
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  899|       |
  900|      2|	c->info_hook_data = NULL;
  901|      2|	c->metrics_hook_data = NULL;
  902|       |
  903|      2|	c->black_listed_claims = NULL;
  904|      2|	c->white_listed_claims = NULL;
  905|      2|	c->filter_claims_expr = NULL;
  906|       |
  907|      2|	c->redirect_urls_allowed = NULL;
  908|      2|	c->discover_issuers_allowed = NULL;
  909|       |
  910|      2|	return c;
  911|      2|}
oidc_pre_config_init:
 1024|      2|void oidc_pre_config_init(void) {
 1025|      2|#if OPENSSL_API_COMPAT < 0x10100000L
 1026|      2|	ERR_load_crypto_strings();
 1027|      2|	OpenSSL_add_all_algorithms();
 1028|      2|	OpenSSL_add_all_digests();
 1029|       |#else
 1030|       |	OPENSSL_init_crypto(0, NULL);
 1031|       |#endif
 1032|      2|}
oidc_cfg_provider_get:
 1034|      6|oidc_provider_t *oidc_cfg_provider_get(oidc_cfg_t *cfg) {
 1035|      6|	return cfg->provider;
 1036|      6|}
oidc_cfg_post_config:
 1052|      2|int oidc_cfg_post_config(apr_pool_t *pool, oidc_cfg_t *cfg, server_rec *s) {
 1053|      2|	if (cfg->cache.impl == NULL)
  ------------------
  |  Branch (1053:6): [True: 0, False: 2]
  ------------------
 1054|      0|		cfg->cache.impl = &oidc_cache_shm;
 1055|      2|	if ((cfg->cache.impl->post_config != NULL) && (cfg->cache.impl->post_config(pool, s) != OK))
  ------------------
  |  |  456|      2|#define OK 0                    /**< Module has handled this stage. */
  ------------------
  |  Branch (1055:6): [True: 2, False: 0]
  |  Branch (1055:48): [True: 0, False: 2]
  ------------------
 1056|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
 1057|      2|	if (_oidc_refresh_mutex == NULL) {
  ------------------
  |  Branch (1057:6): [True: 2, False: 0]
  ------------------
 1058|       |		// NB: use the process pool here as the mutex is a process-wide singleton
 1059|      2|		_oidc_refresh_mutex = oidc_cache_mutex_create(s->process->pool, TRUE);
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
 1060|      2|		if (oidc_cache_mutex_post_config(s->process->pool, s, _oidc_refresh_mutex, "refresh") != TRUE)
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  |  Branch (1060:7): [True: 0, False: 2]
  ------------------
 1061|      0|			return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
 1062|      2|	}
 1063|      2|	if ((cfg->metrics_hook_data != NULL) && (oidc_metrics_post_config(pool, s) != TRUE))
  ------------------
  |  |   55|      0|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      0|#define FALSE 0
  |  |  ------------------
  ------------------
  |  Branch (1063:6): [True: 0, False: 2]
  |  Branch (1063:42): [True: 0, False: 0]
  ------------------
 1064|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
 1065|      2|	return OK;
  ------------------
  |  |  456|      2|#define OK 0                    /**< Module has handled this stage. */
  ------------------
 1066|      2|}
cfg.c:oidc_cfg_server_alloc:
  835|      2|static oidc_cfg_t *oidc_cfg_server_alloc(apr_pool_t *pool, server_rec *s) {
  836|      2|	oidc_cfg_t *c = apr_pcalloc(pool, sizeof(oidc_cfg_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  837|      2|	oidc_cfg_cleanup_ctx_t *ctx = apr_pcalloc(pool, sizeof(oidc_cfg_cleanup_ctx_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  838|      2|	ctx->cfg = c;
  839|       |	// pconf pool used at destruction time
  840|      2|	ctx->pool = pool;
  841|      2|	ctx->svr = s;
  842|       |	// register a cleanup handler on the config pool to handle graceful restarts without increasing
  843|       |	// memory consumption; this MUST be a *pre*-cleanup: libapr registers its own regular cleanups
  844|       |	// for the cache global mutex's POSIX semaphore and the shm segment on this same pool when they
  845|       |	// are created at post_config time, and regular cleanups run in reverse order of registration,
  846|       |	// so a regular registration here (which happens much earlier, at config-parse time) would run
  847|       |	// only AFTER libapr has already closed/unmapped those objects, making the mutex unlock/destroy
  848|       |	// in oidc_cache_shm_destroy() dereference an unmapped semaphore and segfault the parent process
  849|       |	// on a graceful restart; pre-cleanups are guaranteed to run before all regular cleanups
  850|      2|	apr_pool_pre_cleanup_register(pool, ctx, oidc_cfg_server_cleanup);
  851|      2|	return c;
  852|      2|}

oidc_cfg_state_input_headers_get:
  256|  3.67k|	type oidc_cfg_##member##_get(const oidc_cfg_t *cfg) {                                                          \
  257|  3.67k|		if (cfg->member == OIDC_CONFIG_POS_INT_UNSET)                                                          \
  ------------------
  |  |   57|  3.67k|#define OIDC_CONFIG_POS_INT_UNSET -1
  ------------------
  |  Branch (257:7): [True: 3.67k, False: 0]
  ------------------
  258|  3.67k|			return def_val;                                                                                \
  259|  3.67k|		return cfg->member;                                                                                    \
  260|  3.67k|	}
oidc_cfg_debug_mask_secrets_get:
  256|  7.34k|	type oidc_cfg_##member##_get(const oidc_cfg_t *cfg) {                                                          \
  257|  7.34k|		if (cfg->member == OIDC_CONFIG_POS_INT_UNSET)                                                          \
  ------------------
  |  |   57|  7.34k|#define OIDC_CONFIG_POS_INT_UNSET -1
  ------------------
  |  Branch (257:7): [True: 7.34k, False: 0]
  ------------------
  258|  7.34k|			return def_val;                                                                                \
  259|  7.34k|		return cfg->member;                                                                                    \
  260|  7.34k|	}

oidc_cfg_dir_post_config:
  672|      2|int oidc_cfg_dir_post_config(server_rec *s) {
  673|      2|	oidc_pass_user_info_as_t *p = NULL;
  674|      2|	if (pass_userinfo_as_default != NULL)
  ------------------
  |  Branch (674:6): [True: 0, False: 2]
  ------------------
  675|      0|		return OK;
  ------------------
  |  |  456|      0|#define OK 0                    /**< Module has handled this stage. */
  ------------------
  676|       |	/* the configuration pool, not the process pool: this cleanup lives in the module, and httpd unloads
  677|       |	 * the module's DSO when it destroys pconf, which happens before the process pool's own cleanups run
  678|       |	 * at exit; one registered on the process pool would then jump into unmapped code, crashing every
  679|       |	 * shutdown of the parent process. pconf is also cleared on a restart, after which the next
  680|       |	 * post-config phase creates the default again. */
  681|      2|	pass_userinfo_as_default = apr_array_make(s->process->pconf, 3, sizeof(const oidc_pass_user_info_as_t *));
  682|      2|	apr_pool_cleanup_register(s->process->pconf, &pass_userinfo_as_default,
  683|      2|				  oidc_cfg_dir_pass_userinfo_as_default_cleanup, apr_pool_cleanup_null);
  684|      2|	if (oidc_cfg_dir_parse_pass_userinfo_as(s->process->pconf, OIDC_DEFAULT_PASS_USERINFO_AS, &p) != NULL)
  ------------------
  |  |  651|      2|#define OIDC_DEFAULT_PASS_USERINFO_AS OIDC_PASS_USERINFO_AS_CLAIMS_STR
  |  |  ------------------
  |  |  |  |  143|      2|#define OIDC_PASS_USERINFO_AS_CLAIMS_STR "claims"
  |  |  ------------------
  ------------------
  |  Branch (684:6): [True: 0, False: 2]
  ------------------
  685|      0|		return HTTP_INTERNAL_SERVER_ERROR;
  ------------------
  |  |  535|      0|#define HTTP_INTERNAL_SERVER_ERROR           500
  ------------------
  686|      2|	APR_ARRAY_PUSH(pass_userinfo_as_default, const oidc_pass_user_info_as_t *) = p;
  ------------------
  |  |  150|      2|#define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
  ------------------
  687|      2|	return OK;
  ------------------
  |  |  456|      2|#define OK 0                    /**< Module has handled this stage. */
  ------------------
  688|      2|}
oidc_cfg_dir_config_create:
  714|      2|void *oidc_cfg_dir_config_create(apr_pool_t *pool, char *path) {
  715|      2|	oidc_dir_cfg_t *c = apr_pcalloc(pool, sizeof(oidc_dir_cfg_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  ------------------
  |  |   64|      2|	PTR(char *, discover_url)                                                                                      \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   65|      2|	PTR(char *, cookie_path)                                                                                       \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      2|	PTR(char *, cookie)                                                                                            \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   67|      2|	PTR(char *, authn_header)                                                                                      \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|      2|	PTR(char *, unauthz_arg)                                                                                       \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|      2|	PTR(apr_array_header_t *, pass_cookies)                                                                        \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   70|      2|	PTR(apr_array_header_t *, strip_cookies)                                                                       \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   71|      2|	PTR(oidc_apr_expr_t *, path_auth_request_expr)                                                                 \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   72|      2|	PTR(oidc_apr_expr_t *, path_scope_expr)                                                                        \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   73|      2|	PTR(oidc_apr_expr_t *, unauth_expression)                                                                      \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   74|      2|	PTR(oidc_apr_expr_t *, userinfo_claims_expr)                                                                   \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   75|      2|	PTR(char *, state_cookie_prefix)                                                                               \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   76|      2|	PTR(apr_array_header_t *, pass_userinfo_as)                                                                    \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   94|      2|#define OIDC_DIR_M_CREATE_PTR(type, name) c->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   77|      2|	INT(unauth_action)                                                                                             \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   78|      2|	INT(unautz_action)                                                                                             \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   79|      2|	INT(pass_info_in)                                                                                              \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   80|      2|	INT(pass_info_encoding)                                                                                        \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   81|      2|	INT(oauth_accept_token_in)                                                                                     \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      2|	INT(preserve_post)                                                                                             \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   83|      2|	INT(pass_access_token)                                                                                         \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   84|      2|	INT(pass_refresh_token)                                                                                        \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   85|      2|	INT(action_on_error_refresh)                                                                                   \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   86|      2|	INT(pass_idtoken_as)                                                                                           \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      2|#define OIDC_DIR_M_CREATE_INT(name) c->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   87|      2|	INT_OFF(oauth_token_introspect_interval)                                                                       \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   96|      2|#define OIDC_DIR_M_CREATE_INT_OFF(name) c->name = OIDC_DIR_INT_OFF_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   53|      2|#define OIDC_DIR_INT_OFF_UNSET -2
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   88|      2|	INT_OFF(refresh_access_token_before_expiry)                                                                    \
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   96|      2|#define OIDC_DIR_M_CREATE_INT_OFF(name) c->name = OIDC_DIR_INT_OFF_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   53|      2|#define OIDC_DIR_INT_OFF_UNSET -2
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   89|      2|	INT_OFF(refresh_access_token_interval)
  |  |  ------------------
  |  |  |  |  716|      2|	OIDC_DIR_CFG_SIMPLE_MEMBERS(OIDC_DIR_M_CREATE_PTR, OIDC_DIR_M_CREATE_INT, OIDC_DIR_M_CREATE_INT_OFF)
  |  |  |  |  ------------------
  |  |  |  |  |  |   96|      2|#define OIDC_DIR_M_CREATE_INT_OFF(name) c->name = OIDC_DIR_INT_OFF_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   53|      2|#define OIDC_DIR_INT_OFF_UNSET -2
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  717|      2|	c->oauth_accept_token_options = apr_hash_make(pool);
  718|      2|	return c;
  719|      2|}
dir.c:oidc_cfg_dir_parse_pass_userinfo_as:
  152|      2|						       oidc_pass_user_info_as_t **result) {
  153|      2|	const char *rv = NULL;
  154|       |	/* only read when the parse below succeeds and has written it; seeded so the optimizer does not
  155|       |	 * have to prove that across the call (-Wmaybe-uninitialized) */
  156|      2|	oidc_pass_userinfo_enum_t type = OIDC_PASS_USERINFO_AS_CLAIMS;
  157|      2|	static const oidc_cfg_option_t options[] = {
  158|      2|	    {OIDC_PASS_USERINFO_AS_CLAIMS, OIDC_PASS_USERINFO_AS_CLAIMS_STR},
  ------------------
  |  |  143|      2|#define OIDC_PASS_USERINFO_AS_CLAIMS_STR "claims"
  ------------------
  159|      2|	    {OIDC_PASS_USERINFO_AS_JSON_OBJECT, OIDC_PASS_USERINFO_AS_JSON_OBJECT_STR},
  ------------------
  |  |  144|      2|#define OIDC_PASS_USERINFO_AS_JSON_OBJECT_STR "json"
  ------------------
  160|      2|	    {OIDC_PASS_USERINFO_AS_JWT, OIDC_PASS_USERINFO_AS_JWT_STR},
  ------------------
  |  |  145|      2|#define OIDC_PASS_USERINFO_AS_JWT_STR "jwt"
  ------------------
  161|      2|	    {OIDC_PASS_USERINFO_AS_SIGNED_JWT, OIDC_PASS_USERINFO_AS_SIGNED_JWT_STR}};
  ------------------
  |  |  146|      2|#define OIDC_PASS_USERINFO_AS_SIGNED_JWT_STR "signed_jwt"
  ------------------
  162|       |
  163|       |	/* split "<type>:<name>" without writing into `v`: oidc_cfg_dir_post_config passes the default
  164|       |	 * as a string literal, so truncating it in place would write to read-only memory. Copying out
  165|       |	 * just the type also avoids duplicating the whole string when there is no separator at all. */
  166|      2|	const char *sep = _oidc_strstr(v, ":");
  167|      2|	const char *value = (sep != NULL) ? apr_pstrndup(pool, v, (apr_size_t)(sep - v)) : v;
  ------------------
  |  Branch (167:22): [True: 0, False: 2]
  ------------------
  168|      2|	const char *name = (sep != NULL) ? sep + 1 : NULL;
  ------------------
  |  Branch (168:21): [True: 0, False: 2]
  ------------------
  169|       |
  170|      2|	rv = oidc_cfg_parse_option(pool, options, OIDC_CFG_OPTIONS_SIZE(options), value, (int *)&type);
  ------------------
  |  |  152|      2|#define OIDC_CFG_OPTIONS_SIZE(options) ((int)(sizeof(options) / sizeof(oidc_cfg_option_t)))
  ------------------
  171|      2|	if (rv != NULL)
  ------------------
  |  Branch (171:6): [True: 0, False: 2]
  ------------------
  172|      0|		return rv;
  173|       |
  174|      2|	*result = apr_pcalloc(pool, sizeof(oidc_pass_user_info_as_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  175|      2|	(*result)->type = type;
  176|      2|	if (name)
  ------------------
  |  Branch (176:6): [True: 0, False: 2]
  ------------------
  177|      0|		(*result)->name = apr_pstrdup(pool, name);
  178|       |
  179|       |	return NULL;
  180|      2|}

oidc_cfg_oauth_create:
  380|      2|oidc_oauth_t *oidc_cfg_oauth_create(apr_pool_t *pool) {
  381|      2|	oidc_oauth_t *o = apr_pcalloc(pool, sizeof(oidc_oauth_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  ------------------
  |  |   54|      2|	PTR(char *, metadata_url)                                                                                      \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   55|      2|	PTR(char *, verify_jwks_uri)                                                                                   \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|      2|	PTR(apr_array_header_t *, verify_aud_values)                                                                   \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      2|	PTR(char *, verify_issuer)                                                                                     \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|      2|	PTR(apr_hash_t *, verify_shared_keys)                                                                          \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      2|	PTR(apr_hash_t *, decrypt_shared_keys)                                                                         \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   60|      2|	PTR(char *, client_id)                                                                                         \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   61|      2|	PTR(char *, client_secret)                                                                                     \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   62|      2|	PTR(char *, introspection_endpoint_url)                                                                        \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|      2|	INT(introspection_endpoint_method)                                                                             \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      2|#define OIDC_OAUTH_M_CREATE_INT(name) o->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   64|      2|	PTR(char *, introspection_token_param_name)                                                                    \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   65|      2|	PTR(char *, introspection_endpoint_params)                                                                     \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      2|	PTR(char *, introspection_endpoint_auth)                                                                       \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   67|      2|	PTR(char *, introspection_endpoint_auth_alg)                                                                   \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|      2|	PTR(char *, introspection_endpoint_auth_aud)                                                                   \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|      2|	PTR(const char *, introspection_client_auth_bearer_token)                                                      \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   70|      2|	PTR(char *, introspection_endpoint_tls_client_key)                                                             \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   71|      2|	PTR(char *, introspection_endpoint_tls_client_key_pwd)                                                         \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   72|      2|	PTR(char *, introspection_endpoint_tls_client_cert)                                                            \
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|      2|#define OIDC_OAUTH_M_CREATE_PTR(type, name) o->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   73|      2|	INT(ssl_validate_server)
  |  |  ------------------
  |  |  |  |  382|      2|	OIDC_OAUTH_CFG_SIMPLE_MEMBERS(OIDC_OAUTH_M_CREATE_PTR, OIDC_OAUTH_M_CREATE_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      2|#define OIDC_OAUTH_M_CREATE_INT(name) o->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  383|      2|	o->verify_public_keys = NULL;
  384|      2|	o->introspection_token_expiry_claim_name = NULL;
  385|      2|	o->introspection_token_expiry_claim_format = OIDC_TOKEN_EXPIRY_CLAIM_FORMAT_RELATIVE;
  386|      2|	o->introspection_token_expiry_claim_required = OIDC_TOKEN_EXPIRY_CLAIM_REQUIRED_MANDATORY;
  387|      2|	o->remote_user_claim.claim_name = NULL;
  388|      2|	o->remote_user_claim.reg_exp = NULL;
  389|       |	o->remote_user_claim.replace = NULL;
  390|      2|	return o;
  391|      2|}

oidc_cfg_parse_option:
  125|      2|char *oidc_cfg_parse_option(apr_pool_t *pool, const oidc_cfg_option_t options[], int n, const char *arg, int *v) {
  126|      2|	return oidc_cfg_parse_option_impl(pool, options, n, arg, v, _oidc_strcmp);
  127|      2|}
oidc_cfg_parse_is_valid_url:
  298|  1.83k|const char *oidc_cfg_parse_is_valid_url(apr_pool_t *pool, const char *arg, const char *scheme) {
  299|       |	return oidc_cfg_parse_is_valid_url_scheme(pool, arg, scheme, NULL);
  300|  1.83k|}
oidc_cfg_parse_is_valid_http_url:
  305|  1.83k|const char *oidc_cfg_parse_is_valid_http_url(apr_pool_t *pool, const char *arg) {
  306|  1.83k|	return oidc_cfg_parse_is_valid_url_scheme(pool, arg, "https", "http");
  307|  1.83k|}
parse.c:oidc_cfg_parse_option_impl:
  110|      2|					int *v, int (*fstrcmp)(const char *, const char *)) {
  111|      2|	int i = 0;
  112|      2|	while ((i < n) && (fstrcmp(arg, options[i].str) != 0))
  ------------------
  |  Branch (112:9): [True: 2, False: 0]
  |  Branch (112:20): [True: 0, False: 2]
  ------------------
  113|      0|		i++;
  114|      2|	if (i < n) {
  ------------------
  |  Branch (114:6): [True: 2, False: 0]
  ------------------
  115|      2|		*v = options[i].val;
  116|      2|		return NULL;
  117|      2|	}
  118|      0|	return apr_psprintf(pool, "invalid value %s%s%s, must be one of %s", OIDC_LIST_OPTIONS_QUOTE, arg,
  ------------------
  |  |   56|      0|#define OIDC_LIST_OPTIONS_QUOTE "'"
  ------------------
  119|      0|			    OIDC_LIST_OPTIONS_QUOTE, oidc_cfg_parse_options_flatten(pool, options, n));
  ------------------
  |  |   56|      0|#define OIDC_LIST_OPTIONS_QUOTE "'"
  ------------------
  120|      2|}
parse.c:oidc_cfg_parse_is_valid_url_scheme:
  265|  3.67k|						      const char *scheme2) {
  266|       |
  267|  3.67k|	apr_uri_t uri;
  268|       |
  269|  3.67k|	if (arg == NULL)
  ------------------
  |  Branch (269:6): [True: 0, False: 3.67k]
  ------------------
  270|      0|		return apr_psprintf(pool, "input cannot be empty");
  271|       |
  272|  3.67k|	if (apr_uri_parse(pool, arg, &uri) != APR_SUCCESS)
  ------------------
  |  |  225|  3.67k|#define APR_SUCCESS 0
  ------------------
  |  Branch (272:6): [True: 438, False: 3.23k]
  ------------------
  273|    438|		return apr_psprintf(pool, "'%s' cannot be parsed as a URL", arg);
  274|       |
  275|  3.23k|	if (uri.scheme == NULL)
  ------------------
  |  Branch (275:6): [True: 2.73k, False: 500]
  ------------------
  276|  2.73k|		return apr_psprintf(pool, "'%s' cannot be parsed as a URL (no scheme set)", arg);
  277|       |
  278|    500|	if ((scheme1 != NULL) && (_oidc_strnatcasecmp(uri.scheme, scheme1) != 0)) {
  ------------------
  |  Branch (278:6): [True: 500, False: 0]
  |  Branch (278:27): [True: 138, False: 362]
  ------------------
  279|    138|		if ((scheme2 != NULL) && (_oidc_strnatcasecmp(uri.scheme, scheme2) != 0)) {
  ------------------
  |  Branch (279:7): [True: 69, False: 69]
  |  Branch (279:28): [True: 66, False: 3]
  ------------------
  280|     66|			return apr_psprintf(pool, "'%s' cannot be parsed as a \"%s\" or \"%s\" URL (scheme == %s)!",
  281|     66|					    arg, scheme1, scheme2, uri.scheme);
  282|     72|		} else if (scheme2 == NULL) {
  ------------------
  |  Branch (282:14): [True: 69, False: 3]
  ------------------
  283|     69|			return apr_psprintf(pool, "'%s' cannot be parsed as a \"%s\" URL (scheme == %s)!", arg, scheme1,
  284|     69|					    uri.scheme);
  285|     69|		}
  286|    138|	}
  287|       |
  288|    365|	if (uri.hostname == NULL)
  ------------------
  |  Branch (288:6): [True: 75, False: 290]
  ------------------
  289|     75|		return apr_psprintf(pool, "'%s' cannot be parsed as a valid URL (no hostname set, check your slashes)",
  290|     75|				    arg);
  291|       |
  292|    290|	return NULL;
  293|    365|}

oidc_cfg_provider_authorization_endpoint_url_valid:
  189|      2|	const char *oidc_cfg_provider_##member##_valid(apr_pool_t *pool, const char *arg) {                            \
  190|      2|		return fvalid(pool, arg);                                                                              \
  191|      2|	}                                                                                                              \
oidc_cfg_provider_create:
  819|      2|oidc_provider_t *oidc_cfg_provider_create(apr_pool_t *pool) {
  820|      2|	oidc_provider_t *provider = apr_pcalloc(pool, sizeof(oidc_provider_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  821|      2|	oidc_cfg_provider_init(provider);
  822|      2|	return provider;
  823|      2|}
provider.c:oidc_cfg_provider_init:
  792|      2|static void oidc_cfg_provider_init(oidc_provider_t *provider) {
  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  ------------------
  |  |   53|      2|	PTR(char *, metadata_url)                                                                                      \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   54|      2|	PTR(char *, issuer)                                                                                            \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   55|      2|	PTR(char *, authorization_endpoint_url)                                                                        \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|      2|	PTR(char *, token_endpoint_url)                                                                                \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      2|	PTR(char *, token_endpoint_auth)                                                                               \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|      2|	PTR(char *, token_endpoint_auth_alg)                                                                           \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      2|	PTR(char *, token_endpoint_params)                                                                             \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   60|      2|	PTR(char *, userinfo_endpoint_url)                                                                             \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   61|      2|	PTR(char *, revocation_endpoint_url)                                                                           \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   62|      2|	PTR(char *, registration_endpoint_url)                                                                         \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|      2|	PTR(char *, pushed_authorization_request_endpoint_url)                                                         \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   64|      2|	PTR(char *, check_session_iframe)                                                                              \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   65|      2|	PTR(char *, end_session_endpoint)                                                                              \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   66|      2|	PTR(char *, client_id)                                                                                         \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   67|      2|	PTR(char *, client_secret)                                                                                     \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   68|      2|	PTR(char *, token_endpoint_tls_client_key)                                                                     \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   69|      2|	PTR(char *, token_endpoint_tls_client_key_pwd)                                                                 \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   70|      2|	PTR(char *, token_endpoint_tls_client_cert)                                                                    \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   71|      2|	PTR(char *, client_name)                                                                                       \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   72|      2|	PTR(char *, client_contact)                                                                                    \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   73|      2|	PTR(char *, registration_token)                                                                                \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   74|      2|	PTR(char *, registration_endpoint_json)                                                                        \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   75|      2|	PTR(char *, scope)                                                                                             \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   76|      2|	PTR(char *, response_type)                                                                                     \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   77|      2|	PTR(char *, response_mode)                                                                                     \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   78|      2|	PTR(char *, auth_request_params)                                                                               \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   79|      2|	PTR(char *, logout_request_params)                                                                             \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   80|      2|	PTR(char *, client_jwks_uri)                                                                                   \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   81|      2|	PTR(char *, id_token_signed_response_alg)                                                                      \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   82|      2|	PTR(char *, id_token_encrypted_response_alg)                                                                   \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   83|      2|	PTR(char *, id_token_encrypted_response_enc)                                                                   \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   84|      2|	PTR(char *, userinfo_signed_response_alg)                                                                      \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   85|      2|	PTR(char *, userinfo_encrypted_response_alg)                                                                   \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   86|      2|	PTR(char *, userinfo_encrypted_response_enc)                                                                   \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   87|      2|	PTR(char *, request_object)                                                                                    \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   88|      2|	PTR(oidc_proto_pkce_t *, pkce)                                                                                 \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   89|      2|	PTR(apr_array_header_t *, id_token_aud_values)                                                                 \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  106|      2|#define OIDC_PROVIDER_M_INIT_PTR(type, name) provider->name = NULL;
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   90|      2|	INT(int, backchannel_logout_supported)                                                                         \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   91|      2|	INT(int, ssl_validate_server)                                                                                  \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   92|      2|	INT(int, validate_issuer)                                                                                      \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   93|      2|	INT(int, idtoken_iat_slack)                                                                                    \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   94|      2|	INT(int, session_max_duration)                                                                                 \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   95|      2|	INT(oidc_dpop_mode_t, dpop_mode)                                                                               \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   96|      2|	INT(oidc_cert_bound_tokens_t, cert_bound_tokens)                                                               \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   97|      2|	INT(int, dpop_supported)                                                                                       \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   98|      2|	INT(int, userinfo_refresh_interval)                                                                            \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   99|      2|	INT(oidc_userinfo_token_method_t, userinfo_token_method)                                                       \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  100|      2|	INT(oidc_auth_request_method_t, auth_request_method)                                                           \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  101|      2|	INT(oidc_profile_t, profile)                                                                                   \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  102|      2|	INT(oidc_endpoint_auth_aud_t, token_endpoint_auth_aud)                                                         \
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  103|      2|	INT(int, response_require_iss)
  |  |  ------------------
  |  |  |  |  793|      2|	OIDC_PROVIDER_CFG_SIMPLE_MEMBERS(OIDC_PROVIDER_M_INIT_PTR, OIDC_PROVIDER_M_INIT_INT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|      2|#define OIDC_PROVIDER_M_INIT_INT(type, name) provider->name = OIDC_CONFIG_POS_INT_UNSET;
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  794|      2|	provider->jwks_uri.uri = NULL;
  795|      2|	provider->jwks_uri.refresh_interval = OIDC_CONFIG_POS_INT_UNSET;
  ------------------
  |  |   57|      2|#define OIDC_CONFIG_POS_INT_UNSET -1
  ------------------
  796|      2|	provider->jwks_uri.signed_uri = NULL;
  797|      2|	provider->jwks_uri.jwk_list = NULL;
  798|      2|	provider->verify_public_keys = NULL;
  799|       |	provider->client_keys = NULL;
  800|      2|}

util.c:_oidc_strlen:
   90|  25.6k|static inline size_t _oidc_strlen(const char *s) {
   91|  25.6k|	return (s ? strlen(s) : 0);
  ------------------
  |  Branch (91:10): [True: 25.6k, False: 0]
  ------------------
   92|  25.6k|}
util.c:_oidc_strcmp:
   98|  3.67k|static inline int _oidc_strcmp(const char *a, const char *b) {
   99|  3.67k|	return ((a && b) ? strcmp(a, b) : -1);
  ------------------
  |  Branch (99:11): [True: 3.67k, False: 0]
  |  Branch (99:16): [True: 3.67k, False: 0]
  ------------------
  100|  3.67k|}
util.c:_oidc_ascii_tolower:
  101|  21.4k|static inline int _oidc_ascii_tolower(const char c) {
  102|  21.4k|	return (((c >= 'A') && (c <= 'Z')) ? (c - 'A' + 'a') : (unsigned char)c);
  ------------------
  |  Branch (102:11): [True: 16.9k, False: 4.43k]
  |  Branch (102:25): [True: 527, False: 16.4k]
  ------------------
  103|  21.4k|}
util.c:_oidc_strcasecmp:
  109|  4.30k|static inline int _oidc_strcasecmp(const char *a, const char *b) {
  110|  4.30k|	size_t i = 0;
  111|  4.30k|	if ((a == NULL) || (b == NULL))
  ------------------
  |  Branch (111:6): [True: 0, False: 4.30k]
  |  Branch (111:21): [True: 0, False: 4.30k]
  ------------------
  112|      0|		return -1;
  113|  6.58k|	while ((a[i] != '\0') && (_oidc_ascii_tolower(a[i]) == _oidc_ascii_tolower(b[i])))
  ------------------
  |  Branch (113:9): [True: 6.40k, False: 176]
  |  Branch (113:27): [True: 2.28k, False: 4.12k]
  ------------------
  114|  2.28k|		i++;
  115|  4.30k|	return _oidc_ascii_tolower(a[i]) - _oidc_ascii_tolower(b[i]);
  116|  4.30k|}
util.c:_oidc_strncmp:
  120|    145|static inline int _oidc_strncmp(const char *a, const char *b, size_t n) {
  121|    145|	return ((a && b) ? strncmp(a, b, n) : -1);
  ------------------
  |  Branch (121:11): [True: 145, False: 0]
  |  Branch (121:16): [True: 145, False: 0]
  ------------------
  122|    145|}
state.c:_oidc_strlen:
   90|  1.83k|static inline size_t _oidc_strlen(const char *s) {
   91|  1.83k|	return (s ? strlen(s) : 0);
  ------------------
  |  Branch (91:10): [True: 1.83k, False: 0]
  ------------------
   92|  1.83k|}
dir.c:_oidc_strstr:
  123|      2|static inline char *_oidc_strstr(const char *a, const char *b) {
  124|      2|	return ((a && b) ? (char *)strstr(a, b) : NULL);
  ------------------
  |  Branch (124:11): [True: 2, False: 0]
  |  Branch (124:16): [True: 2, False: 0]
  ------------------
  125|      2|}
parse.c:_oidc_strcmp:
   98|      2|static inline int _oidc_strcmp(const char *a, const char *b) {
   99|      2|	return ((a && b) ? strcmp(a, b) : -1);
  ------------------
  |  Branch (99:11): [True: 2, False: 0]
  |  Branch (99:16): [True: 2, False: 0]
  ------------------
  100|      2|}
parse.c:_oidc_strnatcasecmp:
  117|    569|static inline int _oidc_strnatcasecmp(const char *a, const char *b) {
  118|    569|	return ((a && b) ? apr_strnatcasecmp(a, b) : -1);
  ------------------
  |  Branch (118:11): [True: 569, False: 0]
  |  Branch (118:16): [True: 569, False: 0]
  ------------------
  119|    569|}
jwt.c:_oidc_strstr:
  123|  3.67k|static inline char *_oidc_strstr(const char *a, const char *b) {
  124|  3.67k|	return ((a && b) ? (char *)strstr(a, b) : NULL);
  ------------------
  |  Branch (124:11): [True: 3.67k, False: 0]
  |  Branch (124:16): [True: 3.67k, False: 0]
  ------------------
  125|  3.67k|}
jwt.c:_oidc_strlen:
   90|  2.10k|static inline size_t _oidc_strlen(const char *s) {
   91|  2.10k|	return (s ? strlen(s) : 0);
  ------------------
  |  Branch (91:10): [True: 2.10k, False: 0]
  ------------------
   92|  2.10k|}
base64.c:_oidc_strlen:
   90|  1.05k|static inline size_t _oidc_strlen(const char *s) {
   91|  1.05k|	return (s ? strlen(s) : 0);
  ------------------
  |  Branch (91:10): [True: 1.05k, False: 0]
  ------------------
   92|  1.05k|}
html.c:_oidc_strlen:
   90|  22.6M|static inline size_t _oidc_strlen(const char *s) {
   91|  22.6M|	return (s ? strlen(s) : 0);
  ------------------
  |  Branch (91:10): [True: 22.6M, False: 0]
  ------------------
   92|  22.6M|}
key.c:_oidc_strlen:
   90|      4|static inline size_t _oidc_strlen(const char *s) {
   91|      4|	return (s ? strlen(s) : 0);
  ------------------
  |  Branch (91:10): [True: 4, False: 0]
  ------------------
   92|      4|}
http.c:_oidc_strlen:
   90|  1.87M|static inline size_t _oidc_strlen(const char *s) {
   91|  1.87M|	return (s ? strlen(s) : 0);
  ------------------
  |  Branch (91:10): [True: 1.87M, False: 0]
  ------------------
   92|  1.87M|}
http.c:_oidc_strstr:
  123|  27.3k|static inline char *_oidc_strstr(const char *a, const char *b) {
  124|  27.3k|	return ((a && b) ? (char *)strstr(a, b) : NULL);
  ------------------
  |  Branch (124:11): [True: 27.3k, False: 0]
  |  Branch (124:16): [True: 27.3k, False: 0]
  ------------------
  125|  27.3k|}
http.c:_oidc_strcasecmp:
  109|  29.3k|static inline int _oidc_strcasecmp(const char *a, const char *b) {
  110|  29.3k|	size_t i = 0;
  111|  29.3k|	if ((a == NULL) || (b == NULL))
  ------------------
  |  Branch (111:6): [True: 0, False: 29.3k]
  |  Branch (111:21): [True: 0, False: 29.3k]
  ------------------
  112|      0|		return -1;
  113|  58.7k|	while ((a[i] != '\0') && (_oidc_ascii_tolower(a[i]) == _oidc_ascii_tolower(b[i])))
  ------------------
  |  Branch (113:9): [True: 55.0k, False: 3.67k]
  |  Branch (113:27): [True: 29.3k, False: 25.6k]
  ------------------
  114|  29.3k|		i++;
  115|  29.3k|	return _oidc_ascii_tolower(a[i]) - _oidc_ascii_tolower(b[i]);
  116|  29.3k|}
http.c:_oidc_ascii_tolower:
  101|   168k|static inline int _oidc_ascii_tolower(const char c) {
  102|   168k|	return (((c >= 'A') && (c <= 'Z')) ? (c - 'A' + 'a') : (unsigned char)c);
  ------------------
  |  Branch (102:11): [True: 157k, False: 11.0k]
  |  Branch (102:25): [True: 106k, False: 51.3k]
  ------------------
  103|   168k|}
http.c:_oidc_strcmp:
   98|  20.1k|static inline int _oidc_strcmp(const char *a, const char *b) {
   99|  20.1k|	return ((a && b) ? strcmp(a, b) : -1);
  ------------------
  |  Branch (99:11): [True: 20.1k, False: 0]
  |  Branch (99:16): [True: 20.1k, False: 0]
  ------------------
  100|  20.1k|}
http.c:_oidc_strncmp:
  120|  1.53M|static inline int _oidc_strncmp(const char *a, const char *b, size_t n) {
  121|  1.53M|	return ((a && b) ? strncmp(a, b, n) : -1);
  ------------------
  |  Branch (121:11): [True: 1.53M, False: 0]
  |  Branch (121:16): [True: 1.53M, False: 0]
  ------------------
  122|  1.53M|}

oidc_http_url_encode:
   73|  3.67k|char *oidc_http_url_encode(const request_rec *r, const char *str) {
   74|  3.67k|	static const char hex[] = "0123456789ABCDEF";
   75|  3.67k|	char *rv = NULL;
   76|  3.67k|	char *p = NULL;
   77|  3.67k|	size_t len = 0;
   78|       |
   79|  3.67k|	if (str == NULL)
  ------------------
  |  Branch (79:6): [True: 0, False: 3.67k]
  ------------------
   80|      0|		return "";
   81|       |
   82|  3.67k|	len = _oidc_strlen(str);
   83|       |
   84|       |	/* worst case each input byte expands to a 3-byte %XX sequence */
   85|  3.67k|	rv = apr_palloc(r->pool, len * 3 + 1);
   86|  3.67k|	p = rv;
   87|  65.9M|	for (size_t i = 0; i < len; i++) {
  ------------------
  |  Branch (87:21): [True: 65.9M, False: 3.67k]
  ------------------
   88|  65.9M|		const unsigned char c = (unsigned char)str[i];
   89|  65.9M|		if (((c >= 'A') && (c <= 'Z')) || ((c >= 'a') && (c <= 'z')) || ((c >= '0') && (c <= '9')) ||
  ------------------
  |  Branch (89:8): [True: 31.2M, False: 34.6M]
  |  Branch (89:22): [True: 8.46M, False: 22.8M]
  |  Branch (89:38): [True: 22.4M, False: 35.0M]
  |  Branch (89:52): [True: 15.8M, False: 6.52M]
  |  Branch (89:68): [True: 14.5M, False: 27.0M]
  |  Branch (89:82): [True: 7.47M, False: 7.10M]
  ------------------
   90|  34.4M|		    (c == '-') || (c == '.') || (c == '_') || (c == '~')) {
  ------------------
  |  Branch (90:7): [True: 159k, False: 33.9M]
  |  Branch (90:21): [True: 2.41M, False: 31.5M]
  |  Branch (90:35): [True: 54.1k, False: 31.4M]
  |  Branch (90:49): [True: 1.36k, False: 31.4M]
  ------------------
   91|  34.4M|			*p++ = (char)c;
   92|  34.4M|		} else {
   93|  31.4M|			*p++ = '%';
   94|  31.4M|			*p++ = hex[c >> 4];
   95|  31.4M|			*p++ = hex[c & 0x0f];
   96|  31.4M|		}
   97|  65.9M|	}
   98|  3.67k|	*p = '\0';
   99|       |
  100|  3.67k|	return rv;
  101|  3.67k|}
oidc_http_url_decode:
  118|  3.67k|char *oidc_http_url_decode(const request_rec *r, const char *str) {
  119|  3.67k|	char *rv = NULL;
  120|  3.67k|	char *p = NULL;
  121|  3.67k|	size_t i = 0;
  122|  3.67k|	size_t len = 0;
  123|       |
  124|  3.67k|	if (str == NULL)
  ------------------
  |  Branch (124:6): [True: 0, False: 3.67k]
  ------------------
  125|      0|		return "";
  126|       |
  127|  3.67k|	len = _oidc_strlen(str);
  128|       |
  129|  3.67k|	rv = apr_palloc(r->pool, len + 1);
  130|  3.67k|	p = rv;
  131|  66.1M|	while (i < len) {
  ------------------
  |  Branch (131:9): [True: 66.1M, False: 3.67k]
  ------------------
  132|  66.1M|		const char c = str[i];
  133|  66.1M|		if (c == '+') {
  ------------------
  |  Branch (133:7): [True: 47.6k, False: 66.1M]
  ------------------
  134|  47.6k|			*p++ = ' ';
  135|  47.6k|			i++;
  136|  66.1M|		} else if (c == '%') {
  ------------------
  |  Branch (136:14): [True: 15.8M, False: 50.2M]
  ------------------
  137|       |			/* str[i + 1] is within bounds (at worst the NUL terminator); str[i + 2] is only
  138|       |			 * read when str[i + 1] is a hex digit and thus not the terminator */
  139|  15.8M|			const int hi = oidc_http_url_decode_hex_digit(str[i + 1]);
  140|  15.8M|			const int lo = (hi >= 0) ? oidc_http_url_decode_hex_digit(str[i + 2]) : -1;
  ------------------
  |  Branch (140:19): [True: 15.8M, False: 49.2k]
  ------------------
  141|  15.8M|			if (lo >= 0) {
  ------------------
  |  Branch (141:8): [True: 15.7M, False: 98.8k]
  ------------------
  142|  15.7M|				*p++ = (char)((hi << 4) | lo);
  143|  15.7M|				i += 3;
  144|  15.7M|			} else {
  145|  98.8k|				*p++ = c;
  146|  98.8k|				i++;
  147|  98.8k|			}
  148|  50.2M|		} else {
  149|  50.2M|			*p++ = c;
  150|  50.2M|			i++;
  151|  50.2M|		}
  152|  66.1M|	}
  153|  3.67k|	*p = '\0';
  154|       |
  155|  3.67k|	return rv;
  156|  3.67k|}
oidc_http_hdr_value_for_log:
  202|  3.67k|const char *oidc_http_hdr_value_for_log(const request_rec *r, const char *name, const char *value) {
  203|  3.67k|	const oidc_cfg_t *c = ap_get_module_config(r->server->module_config, &auth_openidc_module);
  ------------------
  |  |  551|  3.67k|    (((void **)(v))[(m)->module_index])
  ------------------
  204|  3.67k|	const char *claim_prefix = oidc_cfg_claim_prefix_get(c);
  205|  3.67k|	const size_t prefix_len = _oidc_strlen(OIDC_DEFAULT_HEADER_PREFIX);
  ------------------
  |  |   59|  3.67k|#define OIDC_DEFAULT_HEADER_PREFIX "OIDC_"
  ------------------
  206|       |
  207|  3.67k|	if ((name == NULL) || (value == NULL) || (oidc_util_log_mask_secrets(r) == FALSE))
  ------------------
  |  |   51|  3.67k|#define FALSE 0
  ------------------
  |  Branch (207:6): [True: 0, False: 3.67k]
  |  Branch (207:24): [True: 0, False: 3.67k]
  |  Branch (207:43): [True: 0, False: 3.67k]
  ------------------
  208|      0|		return value;
  209|       |
  210|  3.67k|	if (oidc_http_hdr_name_in(name, _oidc_http_hdr_log_plain))
  ------------------
  |  Branch (210:6): [True: 3.67k, False: 0]
  ------------------
  211|  3.67k|		return value;
  212|       |
  213|       |	/* the tokens and what is derived from them are passed under the fixed prefix, which may be the claim
  214|       |	 * prefix as well */
  215|      0|	if (oidc_util_strnenvcmp(name, OIDC_DEFAULT_HEADER_PREFIX, (int)prefix_len) == 0) {
  ------------------
  |  |   59|      0|#define OIDC_DEFAULT_HEADER_PREFIX "OIDC_"
  ------------------
  |  Branch (215:6): [True: 0, False: 0]
  ------------------
  216|      0|		if (oidc_http_hdr_name_in(name + prefix_len, _oidc_http_hdr_log_plain_info))
  ------------------
  |  Branch (216:7): [True: 0, False: 0]
  ------------------
  217|      0|			return value;
  218|      0|		if (_oidc_strstr(name + prefix_len, "token") || _oidc_strstr(name + prefix_len, "jwt") ||
  ------------------
  |  Branch (218:7): [True: 0, False: 0]
  |  Branch (218:51): [True: 0, False: 0]
  ------------------
  219|      0|		    _oidc_strstr(name + prefix_len, "userinfo"))
  ------------------
  |  Branch (219:7): [True: 0, False: 0]
  ------------------
  220|      0|			return oidc_util_mask_value(r, value);
  221|      0|	}
  222|       |
  223|       |	/* claims are logged as they were; without a prefix there is no telling them from any other header */
  224|      0|	if ((_oidc_strlen(claim_prefix) > 0) &&
  ------------------
  |  Branch (224:6): [True: 0, False: 0]
  ------------------
  225|      0|	    (oidc_util_strnenvcmp(name, claim_prefix, (int)_oidc_strlen(claim_prefix)) == 0))
  ------------------
  |  Branch (225:6): [True: 0, False: 0]
  ------------------
  226|      0|		return value;
  227|       |
  228|       |	/* a redirect is logged with the values of the parameters that carry a token or a code masked */
  229|      0|	if (_oidc_strcasecmp(name, OIDC_HTTP_HDR_LOCATION) == 0) {
  ------------------
  |  |   82|      0|#define OIDC_HTTP_HDR_LOCATION "Location"
  ------------------
  |  Branch (229:6): [True: 0, False: 0]
  ------------------
  230|      0|		const char *query = strchr(value, OIDC_CHAR_QUERY);
  ------------------
  |  |  208|      0|#define OIDC_CHAR_QUERY '?'
  ------------------
  231|      0|		if (query == NULL)
  ------------------
  |  Branch (231:7): [True: 0, False: 0]
  ------------------
  232|      0|			return value;
  233|      0|		return apr_pstrcat(r->pool, apr_pstrmemdup(r->pool, value, (apr_size_t)(query - value) + 1),
  234|      0|				   oidc_http_redact_body_for_log(r, query + 1), NULL);
  235|      0|	}
  236|       |
  237|      0|	return oidc_util_mask_value(r, value);
  238|      0|}
oidc_http_hdr_in_user_agent_get:
  383|  1.83k|const char *oidc_http_hdr_in_user_agent_get(const request_rec *r) {
  384|  1.83k|	return oidc_http_hdr_in_get(r, OIDC_HTTP_HDR_USER_AGENT);
  ------------------
  |  |   68|  1.83k|#define OIDC_HTTP_HDR_USER_AGENT "User-Agent"
  ------------------
  385|  1.83k|}
oidc_http_hdr_in_accept_contains:
  439|  1.83k|apr_byte_t oidc_http_hdr_in_accept_contains(const request_rec *r, const char *needle) {
  440|  1.83k|	return oidc_http_hdr_in_contains(r, OIDC_HTTP_HDR_ACCEPT, OIDC_STR_COMMA, OIDC_CHAR_SEMI_COLON, needle);
  ------------------
  |  |   75|  1.83k|#define OIDC_HTTP_HDR_ACCEPT "Accept"
  ------------------
              	return oidc_http_hdr_in_contains(r, OIDC_HTTP_HDR_ACCEPT, OIDC_STR_COMMA, OIDC_CHAR_SEMI_COLON, needle);
  ------------------
  |  |  225|  1.83k|#define OIDC_STR_COMMA ","
  ------------------
              	return oidc_http_hdr_in_contains(r, OIDC_HTTP_HDR_ACCEPT, OIDC_STR_COMMA, OIDC_CHAR_SEMI_COLON, needle);
  ------------------
  |  |  214|  1.83k|#define OIDC_CHAR_SEMI_COLON ';'
  ------------------
  441|  1.83k|}
oidc_http_hdr_normalize_name:
  533|  1.83k|char *oidc_http_hdr_normalize_name(const request_rec *r, const char *str) {
  534|       |	/* token = 1*<any CHAR except CTLs or separators>
  535|       |	 * CTL = <any US-ASCII control character
  536|       |	 *          (octets 0 - 31) and DEL (127)>
  537|       |	 * separators = "(" | ")" | "<" | ">" | "@"
  538|       |	 *              | "," | ";" | ":" | "\" | <">
  539|       |	 *              | "/" | "[" | "]" | "?" | "="
  540|       |	 *              | "{" | "}" | SP | HT */
  541|  1.83k|	const char *separators = "()<>@,;:\\\"/[]?={} \t";
  542|       |
  543|  1.83k|	char *ns = apr_pstrdup(r->pool, str);
  544|  1.83k|	const size_t len = _oidc_strlen(ns);
  545|  33.0M|	for (size_t i = 0; i < len; i++) {
  ------------------
  |  Branch (545:21): [True: 33.0M, False: 1.83k]
  ------------------
  546|  33.0M|		if (ns[i] < 32 || ns[i] == 127)
  ------------------
  |  Branch (546:7): [True: 2.34M, False: 30.7M]
  |  Branch (546:21): [True: 1.54M, False: 29.2M]
  ------------------
  547|  3.88M|			ns[i] = '-';
  548|  29.2M|		else if (strchr(separators, ns[i]) != NULL)
  ------------------
  |  Branch (548:12): [True: 7.54M, False: 21.6M]
  ------------------
  549|  7.54M|			ns[i] = '-';
  550|  33.0M|	}
  551|  1.83k|	return ns;
  552|  1.83k|}
oidc_http_param_is_sensitive:
  683|  1.83k|apr_byte_t oidc_http_param_is_sensitive(const char *key) {
  684|  21.9k|	for (int i = 0; _oidc_http_sensitive_params[i] != NULL; i++)
  ------------------
  |  Branch (684:18): [True: 20.1k, False: 1.83k]
  ------------------
  685|  20.1k|		if (_oidc_strcmp(key, _oidc_http_sensitive_params[i]) == 0)
  ------------------
  |  Branch (685:7): [True: 5, False: 20.1k]
  ------------------
  686|      5|			return TRUE;
  ------------------
  |  |   55|      5|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      5|#define FALSE 0
  |  |  ------------------
  ------------------
  687|  1.83k|	return FALSE;
  ------------------
  |  |   51|  1.83k|#define FALSE 0
  ------------------
  688|  1.83k|}
oidc_http_redact_body_for_log:
  707|  1.83k|const char *oidc_http_redact_body_for_log(const request_rec *r, const char *data) {
  708|  1.83k|	size_t n_params = 1;
  709|       |
  710|  1.83k|	if (data == NULL)
  ------------------
  |  Branch (710:6): [True: 0, False: 1.83k]
  ------------------
  711|      0|		return NULL;
  712|       |	/* OIDCDebugMaskSecrets Off, or no request pool to build the redacted copy in */
  713|  1.83k|	if ((r == NULL) || (oidc_util_log_mask_secrets(r) == FALSE))
  ------------------
  |  |   51|  1.83k|#define FALSE 0
  ------------------
  |  Branch (713:6): [True: 0, False: 1.83k]
  |  Branch (713:21): [True: 0, False: 1.83k]
  ------------------
  714|      0|		return data;
  715|  1.83k|	apr_pool_t *pool = r->pool;
  716|       |
  717|       |	/*
  718|       |	 * one pass over the "&"-separated parameters into a single buffer: rewriting the whole
  719|       |	 * string with an apr_psprintf() per redacted value made the work quadratic in the number
  720|       |	 * of sensitive parameters, which a request-sized body turned into an OOM (OSS-Fuzz
  721|       |	 * 554483423); a redacted value only ever grows to the 3 bytes of "***", so the result fits
  722|       |	 * in the input length plus 3 bytes per parameter
  723|       |	 */
  724|  33.0M|	for (const char *c = data; *c != '\0'; c++)
  ------------------
  |  Branch (724:29): [True: 33.0M, False: 1.83k]
  ------------------
  725|  33.0M|		if (*c == OIDC_CHAR_AMP)
  ------------------
  |  |  213|  33.0M|#define OIDC_CHAR_AMP '&'
  ------------------
  |  Branch (725:7): [True: 4.11M, False: 28.9M]
  ------------------
  726|  4.11M|			n_params++;
  727|  1.83k|	char *result = apr_palloc(pool, _oidc_strlen(data) + (3 * n_params) + 1);
  728|  1.83k|	char *out = result;
  729|  1.83k|	const char *param = data;
  730|       |
  731|  4.11M|	for (;;) {
  732|  4.11M|		const char *param_end = strchr(param, OIDC_CHAR_AMP);
  ------------------
  |  |  213|  4.11M|#define OIDC_CHAR_AMP '&'
  ------------------
  733|  4.11M|		const size_t param_len = (param_end != NULL) ? (size_t)(param_end - param) : _oidc_strlen(param);
  ------------------
  |  Branch (733:28): [True: 4.11M, False: 1.83k]
  ------------------
  734|  4.11M|		const char *eq = memchr(param, OIDC_CHAR_EQUAL, param_len);
  ------------------
  |  |  203|  4.11M|#define OIDC_CHAR_EQUAL '='
  ------------------
  735|       |		/* only a "<name>=" at the parameter boundary is redacted, so that e.g. "xcode=" is not taken for
  736|       |		 * "code=" */
  737|  4.11M|		const apr_byte_t redact =
  738|  4.11M|		    ((eq != NULL) && (oidc_http_param_name_is_sensitive(param, (size_t)(eq - param)) == TRUE)) ? TRUE
  ------------------
  |  |   55|  28.2k|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|  28.2k|#define FALSE 0
  |  |  ------------------
  ------------------
              		    ((eq != NULL) && (oidc_http_param_name_is_sensitive(param, (size_t)(eq - param)) == TRUE)) ? TRUE
  ------------------
  |  |   55|    916|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|    916|#define FALSE 0
  |  |  ------------------
  ------------------
  |  Branch (738:8): [True: 28.2k, False: 4.08M]
  |  Branch (738:24): [True: 916, False: 27.3k]
  ------------------
  739|  4.11M|													       : FALSE;
  ------------------
  |  |   51|  8.22M|#define FALSE 0
  ------------------
  740|       |		/* everything up to and including the "<name>=" is kept */
  741|  4.11M|		const size_t keep = (redact == TRUE) ? (size_t)(eq - param) + 1 : param_len;
  ------------------
  |  |   55|  4.11M|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|  4.11M|#define FALSE 0
  |  |  ------------------
  ------------------
  |  Branch (741:23): [True: 916, False: 4.11M]
  ------------------
  742|       |
  743|  4.11M|		_oidc_memcpy(out, param, keep);
  ------------------
  |  |   85|  4.11M|#define _oidc_memcpy(__dst, __src, __n) memcpy(__dst, __src, __n)
  ------------------
  744|  4.11M|		out += keep;
  745|  4.11M|		if (redact == TRUE) {
  ------------------
  |  |   55|  4.11M|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|  4.11M|#define FALSE 0
  |  |  ------------------
  ------------------
  |  Branch (745:7): [True: 916, False: 4.11M]
  ------------------
  746|    916|			_oidc_memcpy(out, "***", 3);
  ------------------
  |  |   85|    916|#define _oidc_memcpy(__dst, __src, __n) memcpy(__dst, __src, __n)
  ------------------
  747|    916|			out += 3;
  748|    916|		}
  749|  4.11M|		if (param_end == NULL)
  ------------------
  |  Branch (749:7): [True: 1.83k, False: 4.11M]
  ------------------
  750|  1.83k|			break;
  751|  4.11M|		*out = OIDC_CHAR_AMP;
  ------------------
  |  |  213|  4.11M|#define OIDC_CHAR_AMP '&'
  ------------------
  752|  4.11M|		out++;
  753|  4.11M|		param = param_end + 1;
  754|  4.11M|	}
  755|  1.83k|	*out = '\0';
  756|       |
  757|  1.83k|	return result;
  758|  1.83k|}
oidc_http_redact_json_for_log:
  829|  1.83k|const char *oidc_http_redact_json_for_log(const request_rec *r, const char *data) {
  830|  1.83k|	const char *result = NULL;
  831|       |
  832|  1.83k|	if (data == NULL)
  ------------------
  |  Branch (832:6): [True: 0, False: 1.83k]
  ------------------
  833|      0|		return NULL;
  834|       |	/* OIDCDebugMaskSecrets Off, or no request pool to build the redacted copy in */
  835|  1.83k|	if ((r == NULL) || (oidc_util_log_mask_secrets(r) == FALSE))
  ------------------
  |  |   51|  1.83k|#define FALSE 0
  ------------------
  |  Branch (835:6): [True: 0, False: 1.83k]
  |  Branch (835:21): [True: 0, False: 1.83k]
  ------------------
  836|      0|		return data;
  837|  1.83k|	apr_pool_t *pool = r->pool;
  838|       |
  839|  1.83k|	result = data;
  840|  11.0k|	for (int i = 0; _oidc_http_sensitive_json_members[i] != NULL; i++)
  ------------------
  |  Branch (840:18): [True: 9.17k, False: 1.83k]
  ------------------
  841|  9.17k|		result = oidc_http_redact_json_member(
  842|  9.17k|		    pool, result, apr_pstrcat(pool, "\"", _oidc_http_sensitive_json_members[i], "\"", NULL));
  843|       |
  844|  1.83k|	return result;
  845|  1.83k|}
oidc_http_curl_pool_init:
 1752|      2|void oidc_http_curl_pool_init(apr_pool_t *pool) {
 1753|      2|	if (_oidc_http_curl_pool_enabled == TRUE)
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  |  Branch (1753:6): [True: 0, False: 2]
  ------------------
 1754|      0|		return;
 1755|      2|#if APR_HAS_THREADS
 1756|      2|	if (apr_thread_mutex_create(&_oidc_http_curl_pool_mutex, APR_THREAD_MUTEX_DEFAULT, pool) != APR_SUCCESS)
  ------------------
  |  |   43|      2|#define APR_THREAD_MUTEX_DEFAULT  0x0   /**< platform-optimal lock behavior */
  ------------------
              	if (apr_thread_mutex_create(&_oidc_http_curl_pool_mutex, APR_THREAD_MUTEX_DEFAULT, pool) != APR_SUCCESS)
  ------------------
  |  |  225|      2|#define APR_SUCCESS 0
  ------------------
  |  Branch (1756:6): [True: 0, False: 2]
  ------------------
 1757|      0|		return;
 1758|      2|#endif
 1759|      2|	_oidc_http_curl_pool_num = 0;
 1760|      2|	_oidc_http_curl_pool_enabled = TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
 1761|       |	apr_pool_cleanup_register(pool, NULL, oidc_http_curl_pool_cleanup, apr_pool_cleanup_null);
 1762|      2|}
http.c:oidc_http_url_decode_hex_digit:
  103|  31.7M|static int oidc_http_url_decode_hex_digit(const char c) {
  104|  31.7M|	if ((c >= '0') && (c <= '9'))
  ------------------
  |  Branch (104:6): [True: 31.6M, False: 54.2k]
  |  Branch (104:20): [True: 24.1M, False: 7.47M]
  ------------------
  105|  24.1M|		return c - '0';
  106|  7.52M|	if ((c >= 'A') && (c <= 'F'))
  ------------------
  |  Branch (106:6): [True: 7.47M, False: 54.3k]
  |  Branch (106:20): [True: 7.37M, False: 94.5k]
  ------------------
  107|  7.37M|		return c - 'A' + 10;
  108|   148k|	if ((c >= 'a') && (c <= 'f'))
  ------------------
  |  Branch (108:6): [True: 94.1k, False: 54.7k]
  |  Branch (108:20): [True: 50.1k, False: 44.0k]
  ------------------
  109|  50.1k|		return c - 'a' + 10;
  110|  98.8k|	return -1;
  111|   148k|}
http.c:oidc_http_hdr_name_in:
  187|  3.67k|static apr_byte_t oidc_http_hdr_name_in(const char *name, const char *const *names) {
  188|  29.3k|	for (; *names != NULL; names++)
  ------------------
  |  Branch (188:9): [True: 29.3k, False: 0]
  ------------------
  189|  29.3k|		if (_oidc_strcasecmp(name, *names) == 0)
  ------------------
  |  Branch (189:7): [True: 3.67k, False: 25.6k]
  ------------------
  190|  3.67k|			return TRUE;
  ------------------
  |  |   55|  3.67k|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|  3.67k|#define FALSE 0
  |  |  ------------------
  ------------------
  191|      0|	return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  192|  3.67k|}
http.c:oidc_http_hdr_in_get:
  243|  3.67k|static const char *oidc_http_hdr_in_get(const request_rec *r, const char *name) {
  244|  3.67k|	const char *value = apr_table_get(r->headers_in, name);
  245|  3.67k|	if (value)
  ------------------
  |  Branch (245:6): [True: 3.67k, False: 0]
  ------------------
  246|       |		oidc_debug(r, "%s=%s", name, oidc_http_hdr_value_for_log(r, name, value));
  ------------------
  |  |  186|  3.67k|#define oidc_debug(r, fmt, ...) oidc_log(r, OIDC_DEBUG, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|  3.67k|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|  3.67k|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|  3.67k|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|  3.67k|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|  3.67k|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|  3.67k|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [Folded, False: 3.67k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|  3.67k|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|  3.67k|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|  14.6k|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 3.67k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 3.67k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 3.67k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 3.67k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 3.67k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|  14.6k|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 3.67k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 3.67k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|  3.67k|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 3.67k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|  3.67k|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|  3.67k|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|  7.34k|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 3.67k, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|  3.67k|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 3.67k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  247|  3.67k|	return value;
  248|  3.67k|}
http.c:oidc_http_hdr_in_contains:
  265|  1.83k|					    const char postfix_separator, const char *needle) {
  266|  1.83k|	char *ctx = NULL;
  267|  1.83k|	const char *elem = NULL;
  268|  1.83k|	const char *value = oidc_http_hdr_in_get(r, name);
  269|  1.83k|	apr_byte_t rc = FALSE;
  ------------------
  |  |   51|  1.83k|#define FALSE 0
  ------------------
  270|  1.83k|	if (value) {
  ------------------
  |  Branch (270:6): [True: 1.83k, False: 0]
  ------------------
  271|  1.83k|		elem = apr_strtok(apr_pstrdup(r->pool, value), separator, &ctx);
  272|  1.52M|		while (elem != NULL) {
  ------------------
  |  Branch (272:10): [True: 1.52M, False: 1.82k]
  ------------------
  273|  1.53M|			while (*elem == OIDC_CHAR_SPACE)
  ------------------
  |  |  206|  1.53M|#define OIDC_CHAR_SPACE ' '
  ------------------
  |  Branch (273:11): [True: 2.12k, False: 1.52M]
  ------------------
  274|  2.12k|				elem++;
  275|  1.52M|			if ((_oidc_strncmp(elem, needle, _oidc_strlen(needle)) == 0) &&
  ------------------
  |  Branch (275:8): [True: 335, False: 1.52M]
  ------------------
  276|    335|			    ((elem[_oidc_strlen(needle)] == '\0') ||
  ------------------
  |  Branch (276:9): [True: 5, False: 330]
  ------------------
  277|    330|			     (elem[_oidc_strlen(needle)] == postfix_separator))) {
  ------------------
  |  Branch (277:9): [True: 2, False: 328]
  ------------------
  278|      7|				rc = TRUE;
  ------------------
  |  |   55|      7|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      7|#define FALSE 0
  |  |  ------------------
  ------------------
  279|      7|				break;
  280|      7|			}
  281|  1.52M|			elem = apr_strtok(NULL, separator, &ctx);
  282|  1.52M|		}
  283|  1.83k|	}
  284|  1.83k|	return rc;
  285|  1.83k|}
http.c:oidc_http_param_name_is_sensitive:
  693|  28.2k|static apr_byte_t oidc_http_param_name_is_sensitive(const char *name, size_t name_len) {
  694|   333k|	for (int i = 0; _oidc_http_sensitive_params[i] != NULL; i++)
  ------------------
  |  Branch (694:18): [True: 305k, False: 27.3k]
  ------------------
  695|   305k|		if ((_oidc_strlen(_oidc_http_sensitive_params[i]) == name_len) &&
  ------------------
  |  Branch (695:7): [True: 2.78k, False: 303k]
  ------------------
  696|  2.78k|		    (_oidc_strncmp(name, _oidc_http_sensitive_params[i], name_len) == 0))
  ------------------
  |  Branch (696:7): [True: 916, False: 1.87k]
  ------------------
  697|    916|			return TRUE;
  ------------------
  |  |   55|    916|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|    916|#define FALSE 0
  |  |  ------------------
  ------------------
  698|  27.3k|	return FALSE;
  ------------------
  |  |   51|  27.3k|#define FALSE 0
  ------------------
  699|  28.2k|}
http.c:oidc_http_redact_json_member:
  775|  9.17k|static const char *oidc_http_redact_json_member(apr_pool_t *pool, const char *data, const char *needle) {
  776|  9.17k|	const apr_size_t needle_len = _oidc_strlen(needle);
  777|  9.17k|	const apr_size_t data_len = _oidc_strlen(data);
  778|  9.17k|	char *result = apr_palloc(pool, data_len + (3 * ((data_len / (needle_len + 2)) + 1)) + 1);
  779|  9.17k|	char *out = result;
  780|       |	/* the input up to here has been copied to the output */
  781|  9.17k|	const char *copied = data;
  782|       |	/* the scan cursor */
  783|  9.17k|	const char *pos = data;
  784|  9.17k|	size_t len = 0;
  785|       |
  786|  27.3k|	for (;;) {
  787|  27.3k|		const char *match = _oidc_strstr(pos, needle);
  788|  27.3k|		if (match == NULL)
  ------------------
  |  Branch (788:7): [True: 9.17k, False: 18.2k]
  ------------------
  789|  9.17k|			break;
  790|       |		/* step over the member name and expect ": " then a quoted value; anything
  791|       |		 * else (a non-string value, a member name appearing inside a value) is
  792|       |		 * skipped rather than guessed at */
  793|  18.2k|		const char *p = match + needle_len;
  794|  18.8k|		while ((*p == ' ') || (*p == '\t'))
  ------------------
  |  Branch (794:10): [True: 339, False: 18.5k]
  |  Branch (794:25): [True: 297, False: 18.2k]
  ------------------
  795|    636|			p++;
  796|  18.2k|		if (*p != OIDC_CHAR_COLON) {
  ------------------
  |  |  204|  18.2k|#define OIDC_CHAR_COLON ':'
  ------------------
  |  Branch (796:7): [True: 2.39k, False: 15.8k]
  ------------------
  797|  2.39k|			pos = match + needle_len;
  798|  2.39k|			continue;
  799|  2.39k|		}
  800|  15.8k|		p++;
  801|  16.3k|		while ((*p == ' ') || (*p == '\t'))
  ------------------
  |  Branch (801:10): [True: 194, False: 16.1k]
  |  Branch (801:25): [True: 317, False: 15.8k]
  ------------------
  802|    511|			p++;
  803|  15.8k|		if (*p != OIDC_CHAR_DQUOTE) {
  ------------------
  |  |  215|  15.8k|#define OIDC_CHAR_DQUOTE '"'
  ------------------
  |  Branch (803:7): [True: 1.34k, False: 14.4k]
  ------------------
  804|  1.34k|			pos = match + needle_len;
  805|  1.34k|			continue;
  806|  1.34k|		}
  807|  14.4k|		p++;
  808|       |		/* copy everything up to and including the opening quote, then the mask */
  809|  14.4k|		len = (size_t)(p - copied);
  810|  14.4k|		_oidc_memcpy(out, copied, len);
  ------------------
  |  |   85|  14.4k|#define _oidc_memcpy(__dst, __src, __n) memcpy(__dst, __src, __n)
  ------------------
  811|  14.4k|		out += len;
  812|  14.4k|		_oidc_memcpy(out, "***", 3);
  ------------------
  |  |   85|  14.4k|#define _oidc_memcpy(__dst, __src, __n) memcpy(__dst, __src, __n)
  ------------------
  813|  14.4k|		out += 3;
  814|       |		/* If the closing quote is missing, mask to the end rather than leak a partial token; the
  815|       |		 * closing quote itself is copied with the next chunk and the scan resumes after the mask. */
  816|  14.4k|		const char *value_end = strchr(p, OIDC_CHAR_DQUOTE);
  ------------------
  |  |  215|  14.4k|#define OIDC_CHAR_DQUOTE '"'
  ------------------
  817|  14.4k|		copied = (value_end != NULL) ? value_end : p + _oidc_strlen(p);
  ------------------
  |  Branch (817:12): [True: 14.4k, False: 3]
  ------------------
  818|  14.4k|		pos = copied;
  819|  14.4k|	}
  820|       |
  821|  9.17k|	len = _oidc_strlen(copied);
  822|  9.17k|	_oidc_memcpy(out, copied, len);
  ------------------
  |  |   85|  9.17k|#define _oidc_memcpy(__dst, __src, __n) memcpy(__dst, __src, __n)
  ------------------
  823|  9.17k|	out += len;
  824|  9.17k|	*out = '\0';
  825|       |
  826|  9.17k|	return result;
  827|  9.17k|}

oidc_jose_hash_bytes:
  535|  1.83k|				oidc_jose_error_t *err) {
  536|  1.83k|	apr_byte_t rv = FALSE;
  ------------------
  |  |   51|  1.83k|#define FALSE 0
  ------------------
  537|  1.83k|	unsigned char md_value[EVP_MAX_MD_SIZE];
  538|  1.83k|	const EVP_MD *evp_digest = NULL;
  539|  1.83k|	EVP_MD_CTX *ctx = EVP_MD_CTX_new();
  540|  1.83k|	EVP_MD_CTX_init(ctx);
  541|       |
  542|  1.83k|	if ((evp_digest = EVP_get_digestbyname(s_digest)) == NULL) {
  ------------------
  |  Branch (542:6): [True: 0, False: 1.83k]
  ------------------
  543|      0|		oidc_jose_error(err, "no OpenSSL digest algorithm found for algorithm \"%s\"", s_digest);
  ------------------
  |  |  130|      0|#define oidc_jose_error(err, msg, ...) _oidc_jose_error_set(err, __FILE__, __LINE__, __FUNCTION__, msg, ##__VA_ARGS__)
  ------------------
  544|      0|		goto end;
  545|      0|	}
  546|       |
  547|  1.83k|	if (!EVP_DigestInit_ex(ctx, evp_digest, NULL)) {
  ------------------
  |  Branch (547:6): [True: 0, False: 1.83k]
  ------------------
  548|      0|		oidc_jose_error_openssl(err, "EVP_DigestInit_ex");
  ------------------
  |  |  132|      0|	_oidc_jose_error_set(err, __FILE__, __LINE__, __FUNCTION__, "%s() failed: %s", msg,                            \
  |  |  133|      0|			     ERR_error_string(ERR_get_error(), NULL), ##__VA_ARGS__)
  ------------------
  549|      0|		goto end;
  550|      0|	}
  551|       |
  552|  1.83k|	if (!EVP_DigestUpdate(ctx, input, input_len)) {
  ------------------
  |  Branch (552:6): [True: 0, False: 1.83k]
  ------------------
  553|      0|		oidc_jose_error_openssl(err, "EVP_DigestUpdate");
  ------------------
  |  |  132|      0|	_oidc_jose_error_set(err, __FILE__, __LINE__, __FUNCTION__, "%s() failed: %s", msg,                            \
  |  |  133|      0|			     ERR_error_string(ERR_get_error(), NULL), ##__VA_ARGS__)
  ------------------
  554|      0|		goto end;
  555|      0|	}
  556|       |
  557|  1.83k|	if (!EVP_DigestFinal(ctx, md_value, output_len)) {
  ------------------
  |  Branch (557:6): [True: 0, False: 1.83k]
  ------------------
  558|      0|		oidc_jose_error_openssl(err, "EVP_DigestFinal");
  ------------------
  |  |  132|      0|	_oidc_jose_error_set(err, __FILE__, __LINE__, __FUNCTION__, "%s() failed: %s", msg,                            \
  |  |  133|      0|			     ERR_error_string(ERR_get_error(), NULL), ##__VA_ARGS__)
  ------------------
  559|      0|		goto end;
  560|      0|	}
  561|       |
  562|  1.83k|	*output = apr_pmemdup(pool, md_value, *output_len);
  563|       |
  564|  1.83k|	rv = TRUE;
  ------------------
  |  |   55|  1.83k|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|  1.83k|#define FALSE 0
  |  |  ------------------
  ------------------
  565|       |
  566|  1.83k|end:
  567|       |
  568|  1.83k|	if (ctx)
  ------------------
  |  Branch (568:6): [True: 1.83k, False: 0]
  ------------------
  569|  1.83k|		EVP_MD_CTX_free(ctx);
  570|       |
  571|  1.83k|	return rv;
  572|  1.83k|}

oidc_json_decref:
  107|    678|void oidc_json_decref(oidc_json_t *json) {
  108|    678|	json_decref(json);
  109|    678|}
oidc_json_is_object:
  144|      6|int oidc_json_is_object(const oidc_json_t *json) {
  145|       |	return json_is_object(json);
  146|      6|}
oidc_json_string_value:
  183|      8|const char *oidc_json_string_value(const oidc_json_t *json) {
  184|      8|	return json_string_value(json);
  185|      8|}
oidc_json_object_get:
  206|      8|oidc_json_t *oidc_json_object_get(const oidc_json_t *json, const char *key) {
  207|      8|	return json_object_get(json, key);
  208|      8|}
oidc_json_parse:
  273|    676|apr_byte_t oidc_json_parse(apr_pool_t *pool, const char *str, int flags, oidc_json_t **json, char **s_err) {
  274|    676|	json_error_t json_error;
  275|       |
  276|    676|	*json = NULL;
  277|    676|	if (s_err != NULL)
  ------------------
  |  Branch (277:6): [True: 676, False: 0]
  ------------------
  278|    676|		*s_err = NULL;
  279|       |
  280|    676|	if (str == NULL) {
  ------------------
  |  Branch (280:6): [True: 0, False: 676]
  ------------------
  281|      0|		if (s_err != NULL)
  ------------------
  |  Branch (281:7): [True: 0, False: 0]
  ------------------
  282|      0|			*s_err = apr_pstrdup(pool, "input string is NULL");
  283|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  284|      0|	}
  285|       |
  286|    676|	*json = json_loads(str, oidc_json_flags2backend(flags), &json_error);
  287|    676|	if (*json == NULL) {
  ------------------
  |  Branch (287:6): [True: 670, False: 6]
  ------------------
  288|    670|		if (s_err != NULL) {
  ------------------
  |  Branch (288:7): [True: 670, False: 0]
  ------------------
  289|    670|#if JANSSON_VERSION_HEX >= 0x020B00
  290|    670|			if (json_error_code(&json_error) == json_error_null_character)
  ------------------
  |  Branch (290:8): [True: 2, False: 668]
  ------------------
  291|      2|				*s_err = apr_pstrdup(pool, json_error.text);
  292|    668|			else
  293|    668|#endif
  294|    668|				*s_err = apr_psprintf(pool, "%s (%s)", json_error.text,
  295|    668|						      apr_pstrndup(pool, str, OIDC_JSON_MAX_ERROR_STR));
  ------------------
  |  |  268|    668|#define OIDC_JSON_MAX_ERROR_STR 4096
  ------------------
  296|    670|		}
  297|    670|		return FALSE;
  ------------------
  |  |   51|    670|#define FALSE 0
  ------------------
  298|    670|	}
  299|       |
  300|      6|	return TRUE;
  ------------------
  |  |   55|      6|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      6|#define FALSE 0
  |  |  ------------------
  ------------------
  301|    676|}
oidc_json_decode_object_err:
  306|    676|apr_byte_t oidc_json_decode_object_err(request_rec *r, const char *str, oidc_json_t **json, apr_byte_t log_err) {
  307|    676|	char *s_err = NULL;
  308|       |
  309|    676|	if (str == NULL)
  ------------------
  |  Branch (309:6): [True: 0, False: 676]
  ------------------
  310|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  311|       |
  312|       |	/* decode the JSON contents of the buffer */
  313|    676|	if (oidc_json_parse(r->pool, str, 0, json, &s_err) == FALSE) {
  ------------------
  |  |   51|    676|#define FALSE 0
  ------------------
  |  Branch (313:6): [True: 670, False: 6]
  ------------------
  314|       |		/* something went wrong */
  315|    670|		if (log_err)
  ------------------
  |  Branch (315:7): [True: 670, False: 0]
  ------------------
  316|    670|			oidc_error(r, "JSON parsing returned an error: %s", s_err);
  ------------------
  |  |  189|    670|#define oidc_error(r, fmt, ...) oidc_log(r, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|    670|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|    670|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|    670|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|    670|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|    670|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|    670|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [True: 670, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|    670|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|      0|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|  1.34k|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 670, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|    670|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 670]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  317|    670|		return FALSE;
  ------------------
  |  |   51|    670|#define FALSE 0
  ------------------
  318|    670|	}
  319|       |
  320|      6|	if (!oidc_json_is_object(*json)) {
  ------------------
  |  Branch (320:6): [True: 2, False: 4]
  ------------------
  321|       |		/* a successfully parsed non-object (e.g. a top-level array) is still not a valid result here;
  322|       |		 * log_err controls only whether we log the rejection, not whether we reject */
  323|      2|		if (log_err)
  ------------------
  |  Branch (323:7): [True: 2, False: 0]
  ------------------
  324|      2|			oidc_error(r, "parsed JSON did not contain a JSON object");
  ------------------
  |  |  189|      2|#define oidc_error(r, fmt, ...) oidc_log(r, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|      2|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|      2|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|      2|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|      2|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      2|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      2|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [True: 2, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|      2|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|      0|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|      4|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 2, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|      2|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 2]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|      2|		oidc_json_decref(*json);
  326|      2|		*json = NULL;
  327|      2|		return FALSE;
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  328|      2|	}
  329|       |
  330|      4|	return TRUE;
  ------------------
  |  |   55|      4|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      4|#define FALSE 0
  |  |  ------------------
  ------------------
  331|      6|}
oidc_json_decode_object:
  333|    676|apr_byte_t oidc_json_decode_object(request_rec *r, const char *str, oidc_json_t **json) {
  334|    676|	return oidc_json_decode_object_err(r, str, json, TRUE);
  ------------------
  |  |   55|    676|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|    676|#define FALSE 0
  |  |  ------------------
  ------------------
  335|    676|}
json.c:oidc_json_flags2backend:
   64|    676|static size_t oidc_json_flags2backend(int flags) {
   65|    676|	size_t f = 0;
   66|    676|	int indent = 0;
   67|    676|	if (flags & OIDC_JSON_COMPACT)
  ------------------
  |  |   78|    676|#define OIDC_JSON_COMPACT 0x01
  ------------------
  |  Branch (67:6): [True: 0, False: 676]
  ------------------
   68|      0|		f |= JSON_COMPACT;
   69|    676|	if (flags & OIDC_JSON_PRESERVE_ORDER)
  ------------------
  |  |   79|    676|#define OIDC_JSON_PRESERVE_ORDER 0x02
  ------------------
  |  Branch (69:6): [True: 0, False: 676]
  ------------------
   70|      0|		f |= JSON_PRESERVE_ORDER;
   71|    676|	if (flags & OIDC_JSON_ENCODE_ANY)
  ------------------
  |  |   80|    676|#define OIDC_JSON_ENCODE_ANY 0x04
  ------------------
  |  Branch (71:6): [True: 0, False: 676]
  ------------------
   72|      0|		f |= JSON_ENCODE_ANY;
   73|    676|	if (flags & OIDC_JSON_DECODE_ANY)
  ------------------
  |  |   81|    676|#define OIDC_JSON_DECODE_ANY 0x08
  ------------------
  |  Branch (73:6): [True: 0, False: 676]
  ------------------
   74|      0|		f |= JSON_DECODE_ANY;
   75|    676|	indent = (flags >> 8) & 0x1F;
   76|    676|	if (indent > 0)
  ------------------
  |  Branch (76:6): [True: 0, False: 676]
  ------------------
   77|      0|		f |= JSON_INDENT(indent);
   78|    676|	return f;
   79|    676|}

oidc_proto_jwt_header_peek:
  274|  3.67k|char *oidc_proto_jwt_header_peek(request_rec *r, const char *compact_encoded_jwt, char **alg, char **enc, char **kid) {
  275|  3.67k|	const char *input = NULL;
  276|  3.67k|	char *result = NULL;
  277|  3.67k|	const char *p = _oidc_strstr(compact_encoded_jwt ? compact_encoded_jwt : "", ".");
  ------------------
  |  Branch (277:31): [True: 3.67k, False: 0]
  ------------------
  278|  3.67k|	if (p == NULL) {
  ------------------
  |  Branch (278:6): [True: 2.61k, False: 1.05k]
  ------------------
  279|  2.61k|		oidc_warn(r, "could not parse first element separated by \".\" from input");
  ------------------
  |  |  187|  2.61k|#define oidc_warn(r, fmt, ...) oidc_log(r, APLOG_WARNING, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|  2.61k|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|  2.61k|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|  2.61k|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|  2.61k|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|  2.61k|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|  2.61k|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [True: 2.61k, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|  2.61k|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|      0|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|  5.23k|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 2.61k, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|  2.61k|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 2.61k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  280|  2.61k|		return NULL;
  281|  2.61k|	}
  282|  1.05k|	input = apr_pstrmemdup(r->pool, compact_encoded_jwt, _oidc_strlen(compact_encoded_jwt) - _oidc_strlen(p));
  283|  1.05k|	if (oidc_util_base64url_decode(r->pool, &result, input) <= 0) {
  ------------------
  |  Branch (283:6): [True: 378, False: 676]
  ------------------
  284|    378|		oidc_warn(r, "oidc_base64url_decode returned an error");
  ------------------
  |  |  187|    378|#define oidc_warn(r, fmt, ...) oidc_log(r, APLOG_WARNING, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|    378|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|    378|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|    378|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|    378|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|    378|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|    378|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [True: 378, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|    378|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|      0|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|    756|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 378, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|    378|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 378]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|    378|		return NULL;
  286|    378|	}
  287|       |	/* Parse when kid alone is requested; otherwise a present key ID would be reported as absent. */
  288|    676|	if ((alg != NULL) || (enc != NULL) || (kid != NULL)) {
  ------------------
  |  Branch (288:6): [True: 338, False: 338]
  |  Branch (288:23): [True: 0, False: 338]
  |  Branch (288:40): [True: 338, False: 0]
  ------------------
  289|    676|		oidc_json_t *json = NULL;
  290|    676|		oidc_json_decode_object(r, result, &json);
  291|    676|		if (json) {
  ------------------
  |  Branch (291:7): [True: 4, False: 672]
  ------------------
  292|      4|			if (alg)
  ------------------
  |  Branch (292:8): [True: 2, False: 2]
  ------------------
  293|      2|				*alg = apr_pstrdup(
  294|      2|				    r->pool, oidc_json_string_value(oidc_json_object_get(json, OIDC_JOSE_HDR_ALG)));
  ------------------
  |  |  101|      2|#define OIDC_JOSE_HDR_ALG "alg"
  ------------------
  295|      4|			if (enc)
  ------------------
  |  Branch (295:8): [True: 2, False: 2]
  ------------------
  296|      2|				*enc = apr_pstrdup(
  297|      2|				    r->pool, oidc_json_string_value(oidc_json_object_get(json, OIDC_JOSE_HDR_ENC)));
  ------------------
  |  |  102|      2|#define OIDC_JOSE_HDR_ENC "enc"
  ------------------
  298|      4|			if (kid)
  ------------------
  |  Branch (298:8): [True: 4, False: 0]
  ------------------
  299|      4|				*kid = apr_pstrdup(
  300|      4|				    r->pool, oidc_json_string_value(oidc_json_object_get(json, OIDC_JOSE_HDR_KID)));
  ------------------
  |  |  103|      4|#define OIDC_JOSE_HDR_KID "kid"
  ------------------
  301|      4|		}
  302|    676|		oidc_json_decref(json);
  303|    676|	}
  304|    676|	return result;
  305|  1.05k|}

oidc_state_browser_fingerprint:
   60|  1.83k|char *oidc_state_browser_fingerprint(request_rec *r, const oidc_cfg_t *c, const char *nonce) {
   61|       |
   62|       |	/* helper to hold header values */
   63|  1.83k|	const char *value = NULL;
   64|       |	/* concatenated hash input */
   65|  1.83k|	char *input = "";
   66|  1.83k|	unsigned char *hash = NULL;
   67|  1.83k|	unsigned int hash_len = 0;
   68|  1.83k|	oidc_jose_error_t err;
   69|  1.83k|	char *result = NULL;
   70|       |
   71|  1.83k|	oidc_debug(r, "enter");
  ------------------
  |  |  186|  1.83k|#define oidc_debug(r, fmt, ...) oidc_log(r, OIDC_DEBUG, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|  1.83k|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|  1.83k|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|  1.83k|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|  1.83k|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|  1.83k|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|  1.83k|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [Folded, False: 1.83k]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|  1.83k|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|  1.83k|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|  7.34k|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 1.83k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 1.83k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 1.83k, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 1.83k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 1.83k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|  7.34k|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 1.83k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 1.83k]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|  1.83k|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 1.83k, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|  1.83k|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|  1.83k|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|  3.67k|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 1.83k, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|  1.83k|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 1.83k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   72|       |
   73|  1.83k|	if (oidc_cfg_state_input_headers_get(c) & OIDC_STATE_INPUT_HEADERS_X_FORWARDED_FOR) {
  ------------------
  |  Branch (73:6): [True: 0, False: 1.83k]
  ------------------
   74|       |		/* get the X-FORWARDED-FOR header value  */
   75|      0|		value = oidc_http_hdr_in_x_forwarded_for_get(r);
   76|       |		/* if we have a value for this header, concat it to the hash input */
   77|      0|		if (value != NULL)
  ------------------
  |  Branch (77:7): [True: 0, False: 0]
  ------------------
   78|      0|			input = apr_pstrcat(r->pool, input, value, NULL);
   79|      0|	}
   80|       |
   81|  1.83k|	if (oidc_cfg_state_input_headers_get(c) & OIDC_STATE_INPUT_HEADERS_USER_AGENT) {
  ------------------
  |  Branch (81:6): [True: 1.83k, False: 0]
  ------------------
   82|       |		/* get the USER-AGENT header value  */
   83|  1.83k|		value = oidc_http_hdr_in_user_agent_get(r);
   84|       |		/* if we have a value for this header, concat it to the hash input */
   85|  1.83k|		if (value != NULL)
  ------------------
  |  Branch (85:7): [True: 1.83k, False: 0]
  ------------------
   86|  1.83k|			input = apr_pstrcat(r->pool, input, value, NULL);
   87|  1.83k|	}
   88|       |
   89|       |	/* get the remote client IP address or host name */
   90|       |
   91|       |	/* concat the nonce parameter to the hash input */
   92|  1.83k|	input = apr_pstrcat(r->pool, input, nonce, NULL);
   93|       |
   94|       |	/* calculate the hash output */
   95|  1.83k|	if (oidc_jose_hash_bytes(r->pool, OIDC_JOSE_ALG_SHA256, (const unsigned char *)input,
  ------------------
  |  |   75|  1.83k|#define OIDC_JOSE_ALG_SHA256 "sha256"
  ------------------
  |  Branch (95:6): [True: 0, False: 1.83k]
  ------------------
   96|  1.83k|				 (unsigned int)_oidc_strlen(input), &hash, &hash_len, &err) == FALSE) {
  ------------------
  |  |   51|  1.83k|#define FALSE 0
  ------------------
   97|      0|		oidc_error(r, "oidc_jose_hash_bytes failed: %s", oidc_jose_e2s(r->pool, err));
  ------------------
  |  |  189|      0|#define oidc_error(r, fmt, ...) oidc_log(r, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|      0|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|      0|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|      0|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|      0|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|      0|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|      0|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|      0|		return NULL;
   99|      0|	}
  100|       |
  101|       |	/* base64url-encode the resulting hash and return it */
  102|  1.83k|	oidc_util_base64url_encode(r, &result, (const char *)hash, hash_len, OIDC_BASE64URL_PADDING_STRIP);
  103|       |
  104|  1.83k|	return result;
  105|  1.83k|}

oidc_util_base64url_encode:
   50|  1.83k|			       oidc_base64url_padding_t padding) {
   51|  1.83k|	if ((src == NULL) || (src_len <= 0)) {
  ------------------
  |  Branch (51:6): [True: 0, False: 1.83k]
  |  Branch (51:23): [True: 0, False: 1.83k]
  ------------------
   52|      0|		oidc_error(r, "not encoding anything; src=NULL and/or src_len<1");
  ------------------
  |  |  189|      0|#define oidc_error(r, fmt, ...) oidc_log(r, APLOG_ERR, fmt, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |  181|      0|	ap_log_rerror(APLOG_MARK, level, 0, r, "%s: %s", __FUNCTION__, apr_psprintf(r->pool, fmt, ##__VA_ARGS__))
  |  |  |  |  ------------------
  |  |  |  |  |  |  448|      0|#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  450|      0|    do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level))                         \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  196|      0|          ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |                         ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) ||       \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   48|      0|#define APLOG_NOTICE    LOG_NOTICE      /* normal but significant condition */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (196:13): [True: 0, Folded]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  197|      0|            (ap_get_request_module_loglevel(r, module_index)     \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  635|      0|    (ap_get_module_loglevel(ap_get_request_logconf(r),i))
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  621|      0|    (((i) < 0 || (l)->module_levels == NULL || (l)->module_levels[i] < 0) ?  \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:8): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:19): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:48): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (621:67): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  622|      0|     (l)->level :                                                         \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (622:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  623|      0|     (l)->module_levels[i])
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:7): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  Branch (623:25): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (197:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  198|      0|             >= ((level)&APLOG_LEVELMASK) ) )
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   60|      0|#define APLOG_LEVELMASK 15     /* mask off the level value */
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  451|      0|             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (451:41): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  452|      0|    } while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (452:13): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   53|      0|		return -1;
   54|      0|	}
   55|  1.83k|	unsigned int enc_len = apr_base64_encode_len(src_len);
   56|  1.83k|	char *enc = apr_palloc(r->pool, enc_len);
   57|  1.83k|	apr_base64_encode(enc, src, src_len);
   58|  1.83k|	unsigned int i = 0;
   59|  82.5k|	while (enc[i] != '\0') {
  ------------------
  |  Branch (59:9): [True: 80.7k, False: 1.83k]
  ------------------
   60|  80.7k|		if (enc[i] == '+')
  ------------------
  |  Branch (60:7): [True: 1.19k, False: 79.5k]
  ------------------
   61|  1.19k|			enc[i] = '-';
   62|  80.7k|		if (enc[i] == '/')
  ------------------
  |  Branch (62:7): [True: 1.29k, False: 79.4k]
  ------------------
   63|  1.29k|			enc[i] = '_';
   64|  80.7k|		if (enc[i] == '=')
  ------------------
  |  Branch (64:7): [True: 1.83k, False: 78.9k]
  ------------------
   65|  1.83k|			enc[i] = ',';
   66|  80.7k|		i++;
   67|  80.7k|	}
   68|  1.83k|	if (padding == OIDC_BASE64URL_PADDING_STRIP) {
  ------------------
  |  Branch (68:6): [True: 1.83k, False: 0]
  ------------------
   69|       |		/* the loop above already walked to the terminator, so `i` is the encoded length; drop the
   70|       |		 * padding from it (base64 emits at most two '=', rewritten to ',' above). Deriving the
   71|       |		 * index from the walk rather than from apr_base64_encode_len() also keeps it provably in
   72|       |		 * bounds - the length function is opaque to gcc -fanalyzer, which flagged the previous
   73|       |		 * enc_len arithmetic as a possible over-read. */
   74|  3.67k|		while ((i > 0) && (enc[i - 1] == ','))
  ------------------
  |  Branch (74:10): [True: 3.67k, False: 0]
  |  Branch (74:21): [True: 1.83k, False: 1.83k]
  ------------------
   75|  1.83k|			i--;
   76|  1.83k|		enc[i] = '\0';
   77|  1.83k|		enc_len = i;
   78|  1.83k|	}
   79|  1.83k|	*dst = enc;
   80|  1.83k|	return enc_len;
   81|  1.83k|}
oidc_util_base64_decode:
   88|    886|char *oidc_util_base64_decode(apr_pool_t *pool, const char *input, char **output, int *output_len) {
   89|    886|	if ((input == NULL) || (output == NULL) || (output_len == NULL))
  ------------------
  |  Branch (89:6): [True: 0, False: 886]
  |  Branch (89:25): [True: 0, False: 886]
  |  Branch (89:45): [True: 0, False: 886]
  ------------------
   90|      0|		return apr_psprintf(pool, "base64-decoding failed: invalid parameters");
   91|       |
   92|    886|	*output = apr_pcalloc(pool, apr_base64_decode_len(input));
  ------------------
  |  |  465|    886|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
   93|    886|	*output_len = apr_base64_decode(*output, input);
   94|       |
   95|    886|	if (*output_len <= 0)
  ------------------
  |  Branch (95:6): [True: 210, False: 676]
  ------------------
   96|    210|		return apr_psprintf(pool, "base64-decoding of \"%s\" failed", input);
   97|       |
   98|    676|	return NULL;
   99|    886|}
oidc_util_base64url_decode:
  102|  1.05k|int oidc_util_base64url_decode(apr_pool_t *pool, char **dst, const char *src) {
  103|  1.05k|	if (src == NULL) {
  ------------------
  |  Branch (103:6): [True: 0, False: 1.05k]
  ------------------
  104|      0|		return -1;
  105|      0|	}
  106|  1.05k|	char *dec = apr_pstrdup(pool, src);
  107|  1.05k|	int i = 0;
  108|  8.27M|	while (dec[i] != '\0') {
  ------------------
  |  Branch (108:9): [True: 8.27M, False: 1.05k]
  ------------------
  109|  8.27M|		if (dec[i] == '-')
  ------------------
  |  Branch (109:7): [True: 1.21k, False: 8.27M]
  ------------------
  110|  1.21k|			dec[i] = '+';
  111|  8.27M|		if (dec[i] == '_')
  ------------------
  |  Branch (111:7): [True: 1.02k, False: 8.27M]
  ------------------
  112|  1.02k|			dec[i] = '/';
  113|  8.27M|		if (dec[i] == ',')
  ------------------
  |  Branch (113:7): [True: 416k, False: 7.85M]
  ------------------
  114|   416k|			dec[i] = '=';
  115|  8.27M|		i++;
  116|  8.27M|	}
  117|  1.05k|	switch (_oidc_strlen(dec) % 4) {
  118|    270|	case 0:
  ------------------
  |  Branch (118:2): [True: 270, False: 784]
  ------------------
  119|    270|		break;
  120|    172|	case 2:
  ------------------
  |  Branch (120:2): [True: 172, False: 882]
  ------------------
  121|    172|		dec = apr_pstrcat(pool, dec, "==", NULL);
  122|    172|		break;
  123|    444|	case 3:
  ------------------
  |  Branch (123:2): [True: 444, False: 610]
  ------------------
  124|    444|		dec = apr_pstrcat(pool, dec, "=", NULL);
  125|    444|		break;
  126|    168|	default:
  ------------------
  |  Branch (126:2): [True: 168, False: 886]
  ------------------
  127|    168|		return 0;
  128|  1.05k|	}
  129|       |
  130|    886|	int dlen = -1;
  131|    886|	oidc_util_base64_decode(pool, dec, dst, &dlen);
  132|    886|	return dlen;
  133|  1.05k|}

oidc_util_html_escape:
  106|  1.83k|char *oidc_util_html_escape(apr_pool_t *pool, const char *s) {
  107|  1.83k|	return oidc_util_html_escape_with(pool, s != NULL ? s : "", oidc_util_html_escape_char);
  ------------------
  |  Branch (107:42): [True: 1.83k, False: 0]
  ------------------
  108|  1.83k|}
oidc_util_html_javascript_escape:
  139|  1.83k|char *oidc_util_html_javascript_escape(apr_pool_t *pool, const char *s) {
  140|  1.83k|	if (s == NULL)
  ------------------
  |  Branch (140:6): [True: 0, False: 1.83k]
  ------------------
  141|      0|		return NULL;
  142|  1.83k|	return oidc_util_html_escape_with(pool, s, oidc_util_html_javascript_escape_char);
  143|  1.83k|}
html.c:oidc_util_html_escape_with:
   73|  3.67k|static char *oidc_util_html_escape_with(apr_pool_t *pool, const char *s, const char *(*escape_char)(char)) {
   74|  3.67k|	const char *cp = NULL;
   75|  3.67k|	size_t outputlen = 0;
   76|  3.67k|	size_t i = 0;
   77|       |
   78|       |	/* first pass: compute the length of the escaped output */
   79|  66.1M|	for (cp = s; *cp; cp++) {
  ------------------
  |  Branch (79:15): [True: 66.1M, False: 3.67k]
  ------------------
   80|  66.1M|		const char *esc = escape_char(*cp);
   81|  66.1M|		outputlen += esc ? _oidc_strlen(esc) : 1;
  ------------------
  |  Branch (81:16): [True: 11.3M, False: 54.8M]
  ------------------
   82|  66.1M|	}
   83|       |
   84|       |	/* second pass: write the escaped output, preserving the bounds-checked write idiom */
   85|  3.67k|	char *output = apr_pcalloc(pool, outputlen + 1);
  ------------------
  |  |  465|  3.67k|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
   86|  66.1M|	for (cp = s; *cp; cp++) {
  ------------------
  |  Branch (86:15): [True: 66.1M, False: 3.67k]
  ------------------
   87|  66.1M|		const char *esc = escape_char(*cp);
   88|  66.1M|		if (esc == NULL) {
  ------------------
  |  Branch (88:7): [True: 54.8M, False: 11.3M]
  ------------------
   89|  54.8M|			if (i + 1 <= outputlen)
  ------------------
  |  Branch (89:8): [True: 54.8M, False: 0]
  ------------------
   90|  54.8M|				output[i] = *cp;
   91|  54.8M|			i += 1;
   92|  54.8M|			continue;
   93|  54.8M|		}
   94|  11.3M|		size_t n = _oidc_strlen(esc);
   95|  11.3M|		if (i + n <= outputlen)
  ------------------
  |  Branch (95:7): [True: 11.3M, False: 0]
  ------------------
   96|  11.3M|			(void)_oidc_strcpy(&output[i], esc);
  ------------------
  |  |   86|  11.3M|#define _oidc_strcpy(__dst, __src) strcpy(__dst, __src)
  ------------------
   97|  11.3M|		i += n;
   98|  11.3M|	}
   99|  3.67k|	output[i] = '\0';
  100|  3.67k|	return output;
  101|  3.67k|}
html.c:oidc_util_html_escape_char:
   52|  66.1M|static const char *oidc_util_html_escape_char(char c) {
   53|  66.1M|	switch (c) {
   54|  8.22M|	case '&':
  ------------------
  |  Branch (54:2): [True: 8.22M, False: 57.9M]
  ------------------
   55|  8.22M|		return "&amp;";
   56|  14.3k|	case '\'':
  ------------------
  |  Branch (56:2): [True: 14.3k, False: 66.1M]
  ------------------
   57|  14.3k|		return "&apos;";
   58|  6.39M|	case '"':
  ------------------
  |  Branch (58:2): [True: 6.39M, False: 59.7M]
  ------------------
   59|  6.39M|		return "&quot;";
   60|  5.55k|	case '>':
  ------------------
  |  Branch (60:2): [True: 5.55k, False: 66.1M]
  ------------------
   61|  5.55k|		return "&gt;";
   62|  6.92k|	case '<':
  ------------------
  |  Branch (62:2): [True: 6.92k, False: 66.1M]
  ------------------
   63|  6.92k|		return "&lt;";
   64|  51.5M|	default:
  ------------------
  |  Branch (64:2): [True: 51.5M, False: 14.6M]
  ------------------
   65|       |		return NULL;
   66|  66.1M|	}
   67|  66.1M|}
html.c:oidc_util_html_javascript_escape_char:
  113|  66.1M|static const char *oidc_util_html_javascript_escape_char(char c) {
  114|  66.1M|	switch (c) {
  115|  14.3k|	case '\'':
  ------------------
  |  Branch (115:2): [True: 14.3k, False: 66.1M]
  ------------------
  116|  14.3k|		return "\\'";
  117|  6.39M|	case '"':
  ------------------
  |  Branch (117:2): [True: 6.39M, False: 59.7M]
  ------------------
  118|  6.39M|		return "\\\"";
  119|   202k|	case '\\':
  ------------------
  |  Branch (119:2): [True: 202k, False: 65.9M]
  ------------------
  120|   202k|		return "\\\\";
  121|   183k|	case '/':
  ------------------
  |  Branch (121:2): [True: 183k, False: 66.0M]
  ------------------
  122|   183k|		return "\\/";
  123|   253k|	case 0x0D:
  ------------------
  |  Branch (123:2): [True: 253k, False: 65.9M]
  ------------------
  124|   253k|		return "\\r";
  125|   946k|	case 0x0A:
  ------------------
  |  Branch (125:2): [True: 946k, False: 65.2M]
  ------------------
  126|   946k|		return "\\n";
  127|  6.92k|	case '<':
  ------------------
  |  Branch (127:2): [True: 6.92k, False: 66.1M]
  ------------------
  128|  6.92k|		return "\\x3c";
  129|  5.55k|	case '>':
  ------------------
  |  Branch (129:2): [True: 5.55k, False: 66.1M]
  ------------------
  130|  5.55k|		return "\\x3e";
  131|  58.1M|	default:
  ------------------
  |  Branch (131:2): [True: 58.1M, False: 8.00M]
  ------------------
  132|       |		return NULL;
  133|  66.1M|	}
  134|  66.1M|}

oidc_util_key_derive_passphrase_key:
   60|      2|apr_byte_t oidc_util_key_derive_passphrase_key(const char *passphrase, unsigned char *out, apr_size_t out_len) {
   61|      2|	if ((passphrase == NULL) || (_oidc_strlen(passphrase) == 0))
  ------------------
  |  Branch (61:6): [True: 0, False: 2]
  |  Branch (61:30): [True: 0, False: 2]
  ------------------
   62|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
   63|      2|	return (PKCS5_PBKDF2_HMAC(passphrase, (int)_oidc_strlen(passphrase),
  ------------------
  |  Branch (63:9): [True: 2, False: 0]
  ------------------
   64|      2|				  (const unsigned char *)OIDC_UTIL_KEY_DERIVE_SALT,
  ------------------
  |  |   53|      2|#define OIDC_UTIL_KEY_DERIVE_SALT "mod_auth_openidc-crypto-passphrase-v1"
  ------------------
   65|      2|				  (int)(sizeof(OIDC_UTIL_KEY_DERIVE_SALT) - 1), OIDC_UTIL_KEY_DERIVE_ITERATIONS,
  ------------------
  |  |   53|      2|#define OIDC_UTIL_KEY_DERIVE_SALT "mod_auth_openidc-crypto-passphrase-v1"
  ------------------
              				  (int)(sizeof(OIDC_UTIL_KEY_DERIVE_SALT) - 1), OIDC_UTIL_KEY_DERIVE_ITERATIONS,
  ------------------
  |  |   49|      2|#define OIDC_UTIL_KEY_DERIVE_ITERATIONS 210000
  ------------------
   66|      2|				  EVP_sha256(), (int)out_len, out) == 1)
   67|      2|		   ? TRUE
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
   68|      2|		   : FALSE;
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
   69|      2|}

oidc_util_strcasestr:
   98|  3.67k|const char *oidc_util_strcasestr(const char *s1, const char *s2) {
   99|  3.67k|	const char *s = s1;
  100|  3.67k|	const char *p = s2;
  101|  3.67k|	if ((s == NULL) || (p == NULL))
  ------------------
  |  Branch (101:6): [True: 0, False: 3.67k]
  |  Branch (101:21): [True: 0, False: 3.67k]
  ------------------
  102|      0|		return NULL;
  103|  26.3M|	do {
  104|  26.3M|		if (!*p)
  ------------------
  |  Branch (104:7): [True: 50, False: 26.3M]
  ------------------
  105|     50|			return s1;
  106|  26.3M|		if ((*p == *s) || (tolower(*p) == tolower(*s))) {
  ------------------
  |  Branch (106:7): [True: 406k, False: 25.9M]
  |  Branch (106:21): [True: 35.8k, False: 25.9M]
  |  Branch (106:22): [True: 0, False: 0]
  |  Branch (106:22): [True: 0, False: 0]
  |  Branch (106:22): [Folded, False: 25.9M]
  |  Branch (106:37): [True: 0, False: 0]
  |  Branch (106:37): [True: 0, False: 0]
  |  Branch (106:37): [Folded, False: 25.9M]
  ------------------
  107|   441k|			++p;
  108|   441k|			++s;
  109|  25.9M|		} else {
  110|  25.9M|			p = s2;
  111|  25.9M|			if (!*s)
  ------------------
  |  Branch (111:8): [True: 3.62k, False: 25.9M]
  ------------------
  112|  3.62k|				return NULL;
  113|  25.9M|			s = ++s1;
  114|  25.9M|		}
  115|  26.3M|	} while (1);
  ------------------
  |  Branch (115:11): [True: 26.3M, Folded]
  ------------------
  116|  3.67k|}
oidc_util_issuer_match:
  356|  3.67k|apr_byte_t oidc_util_issuer_match(const char *a, const char *b) {
  357|       |
  358|       |	/* check the "issuer" value against the one configure for the provider we got this id_token from */
  359|  3.67k|	if (_oidc_strcmp(a, b) != 0) {
  ------------------
  |  Branch (359:6): [True: 3.66k, False: 1]
  ------------------
  360|       |
  361|       |		/* no strict match, but we are going to accept if the difference is only a trailing slash */
  362|  3.66k|		int n1 = (int)_oidc_strlen(a);
  363|  3.66k|		int n2 = (int)_oidc_strlen(b);
  364|  3.66k|		int n = 0;
  365|  3.66k|		if ((n1 == n2 + 1) && (a[n1 - 1] == OIDC_CHAR_FORWARD_SLASH))
  ------------------
  |  |  211|    157|#define OIDC_CHAR_FORWARD_SLASH '/'
  ------------------
  |  Branch (365:7): [True: 157, False: 3.51k]
  |  Branch (365:25): [True: 143, False: 14]
  ------------------
  366|    143|			n = n2;
  367|  3.52k|		else if ((n2 == n1 + 1) && (b[n2 - 1] == OIDC_CHAR_FORWARD_SLASH))
  ------------------
  |  |  211|     23|#define OIDC_CHAR_FORWARD_SLASH '/'
  ------------------
  |  Branch (367:12): [True: 23, False: 3.50k]
  |  Branch (367:30): [True: 2, False: 21]
  ------------------
  368|      2|			n = n1;
  369|  3.66k|		if ((n == 0) || (_oidc_strncmp(a, b, n) != 0))
  ------------------
  |  Branch (369:7): [True: 3.52k, False: 145]
  |  Branch (369:19): [True: 143, False: 2]
  ------------------
  370|  3.66k|			return FALSE;
  ------------------
  |  |   51|  3.66k|#define FALSE 0
  ------------------
  371|  3.66k|	}
  372|       |
  373|      3|	return TRUE;
  ------------------
  |  |   55|      3|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      3|#define FALSE 0
  |  |  ------------------
  ------------------
  374|  3.67k|}
oidc_util_spaced_string_to_hashtable:
  379|  7.34k|apr_hash_t *oidc_util_spaced_string_to_hashtable(apr_pool_t *pool, const char *str) {
  380|  7.34k|	const char *val;
  381|  7.34k|	const char *data = apr_pstrdup(pool, str);
  382|  7.34k|	apr_hash_t *result = apr_hash_make(pool);
  383|  2.50M|	while (data && (*data)) {
  ------------------
  |  Branch (383:9): [True: 2.50M, False: 0]
  |  Branch (383:17): [True: 2.50M, False: 7.34k]
  ------------------
  384|  2.50M|		val = ap_getword_white(pool, &data);
  385|  2.50M|		if (val == NULL)
  ------------------
  |  Branch (385:7): [True: 0, False: 2.50M]
  ------------------
  386|      0|			break;
  387|  2.50M|		apr_hash_set(result, val, APR_HASH_KEY_STRING, val);
  ------------------
  |  |   47|  2.50M|#define APR_HASH_KEY_STRING     (-1)
  ------------------
  388|  2.50M|	}
  389|  7.34k|	return result;
  390|  7.34k|}
oidc_util_spaced_string_equals:
  395|  1.83k|apr_byte_t oidc_util_spaced_string_equals(apr_pool_t *pool, const char *a, const char *b) {
  396|       |
  397|  1.83k|	const void *k = NULL;
  398|  1.83k|	void *v = NULL;
  399|       |
  400|       |	/* parse both entries as hash tables */
  401|  1.83k|	apr_hash_t *ht_a = oidc_util_spaced_string_to_hashtable(pool, a);
  402|  1.83k|	apr_hash_t *ht_b = oidc_util_spaced_string_to_hashtable(pool, b);
  403|       |
  404|       |	/* first compare the length of both response_types */
  405|  1.83k|	if (apr_hash_count(ht_a) != apr_hash_count(ht_b))
  ------------------
  |  Branch (405:6): [True: 1.64k, False: 187]
  ------------------
  406|  1.64k|		return FALSE;
  ------------------
  |  |   51|  1.64k|#define FALSE 0
  ------------------
  407|       |
  408|       |	/* then loop over all entries */
  409|    192|	for (apr_hash_index_t *hi = apr_hash_first(NULL, ht_a); hi; hi = apr_hash_next(hi)) {
  ------------------
  |  Branch (409:58): [True: 190, False: 2]
  ------------------
  410|    190|		apr_hash_this(hi, &k, NULL, &v);
  411|    190|		if (apr_hash_get(ht_b, k, APR_HASH_KEY_STRING) == NULL)
  ------------------
  |  |   47|    190|#define APR_HASH_KEY_STRING     (-1)
  ------------------
  |  Branch (411:7): [True: 185, False: 5]
  ------------------
  412|    185|			return FALSE;
  ------------------
  |  |   51|    185|#define FALSE 0
  ------------------
  413|    190|	}
  414|       |
  415|       |	/* if we've made it this far, a an b are equal in length and every element in a is in b */
  416|      2|	return TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  417|    187|}
oidc_util_spaced_string_contains:
  422|  1.83k|apr_byte_t oidc_util_spaced_string_contains(apr_pool_t *pool, const char *str, const char *match) {
  423|  1.83k|	if ((str == NULL) || (match == NULL))
  ------------------
  |  Branch (423:6): [True: 0, False: 1.83k]
  |  Branch (423:23): [True: 0, False: 1.83k]
  ------------------
  424|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  425|  1.83k|	apr_hash_t *ht = oidc_util_spaced_string_to_hashtable(pool, str);
  426|  1.83k|	return (apr_hash_get(ht, match, APR_HASH_KEY_STRING) != NULL);
  ------------------
  |  |   47|  1.83k|#define APR_HASH_KEY_STRING     (-1)
  ------------------
  427|  1.83k|}
oidc_util_table_add_query_encoded_params:
  432|  1.83k|void oidc_util_table_add_query_encoded_params(apr_pool_t *pool, apr_table_t *table, const char *params) {
  433|  1.83k|	char *key = NULL;
  434|  1.83k|	char *value = NULL;
  435|  1.83k|	const char *v = NULL;
  436|  1.83k|	const char *p = params;
  437|  56.7k|	while (p && (*p)) {
  ------------------
  |  Branch (437:9): [True: 56.7k, False: 0]
  |  Branch (437:14): [True: 54.9k, False: 1.83k]
  ------------------
  438|  54.9k|		v = ap_getword(pool, &p, OIDC_CHAR_AMP);
  ------------------
  |  |  213|  54.9k|#define OIDC_CHAR_AMP '&'
  ------------------
  439|  54.9k|		if (v == NULL)
  ------------------
  |  Branch (439:7): [True: 0, False: 54.9k]
  ------------------
  440|      0|			break;
  441|  54.9k|		key = apr_pstrdup(pool, ap_getword(pool, &v, OIDC_CHAR_EQUAL));
  ------------------
  |  |  203|  54.9k|#define OIDC_CHAR_EQUAL '='
  ------------------
  442|  54.9k|		ap_unescape_url(key);
  443|  54.9k|		value = apr_pstrdup(pool, v);
  444|  54.9k|		ap_unescape_url(value);
  445|  54.9k|		apr_table_addn(table, key, value);
  446|  54.9k|	}
  447|  1.83k|}
oidc_util_log_mask_secrets:
  472|  7.34k|apr_byte_t oidc_util_log_mask_secrets(const request_rec *r) {
  473|  7.34k|	const oidc_cfg_t *cfg = NULL;
  474|  7.34k|	if (r == NULL)
  ------------------
  |  Branch (474:6): [True: 0, False: 7.34k]
  ------------------
  475|      0|		return TRUE;
  ------------------
  |  |   55|      0|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      0|#define FALSE 0
  |  |  ------------------
  ------------------
  476|  7.34k|	cfg = ap_get_module_config(r->server->module_config, &auth_openidc_module);
  ------------------
  |  |  551|  7.34k|    (((void **)(v))[(m)->module_index])
  ------------------
  477|  7.34k|	if (cfg == NULL)
  ------------------
  |  Branch (477:6): [True: 0, False: 7.34k]
  ------------------
  478|      0|		return TRUE;
  ------------------
  |  |   55|      0|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      0|#define FALSE 0
  |  |  ------------------
  ------------------
  479|  7.34k|	return (oidc_cfg_debug_mask_secrets_get(cfg) != 0) ? TRUE : FALSE;
  ------------------
  |  |   55|  7.34k|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|  7.34k|#define FALSE 0
  |  |  ------------------
  ------------------
              	return (oidc_cfg_debug_mask_secrets_get(cfg) != 0) ? TRUE : FALSE;
  ------------------
  |  |   51|  7.34k|#define FALSE 0
  ------------------
  |  Branch (479:9): [True: 7.34k, False: 0]
  ------------------
  480|  7.34k|}
oidc_util_strcmp_const_time:
  501|  1.83k|apr_byte_t oidc_util_strcmp_const_time(const char *a, const char *b) {
  502|  1.83k|	apr_size_t len_a = 0;
  503|  1.83k|	apr_size_t len_b = 0;
  504|       |
  505|  1.83k|	if ((a == NULL) || (b == NULL))
  ------------------
  |  Branch (505:6): [True: 0, False: 1.83k]
  |  Branch (505:21): [True: 0, False: 1.83k]
  ------------------
  506|      0|		return (a == b) ? TRUE : FALSE;
  ------------------
  |  |   55|      0|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      0|#define FALSE 0
  |  |  ------------------
  ------------------
              		return (a == b) ? TRUE : FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  |  Branch (506:10): [True: 0, False: 0]
  ------------------
  507|       |
  508|  1.83k|	len_a = _oidc_strlen(a);
  509|  1.83k|	len_b = _oidc_strlen(b);
  510|       |
  511|  1.83k|	if (len_a != len_b)
  ------------------
  |  Branch (511:6): [True: 1.82k, False: 14]
  ------------------
  512|  1.82k|		return FALSE;
  ------------------
  |  |   51|  1.82k|#define FALSE 0
  ------------------
  513|       |
  514|     14|	return (CRYPTO_memcmp(a, b, len_a) == 0) ? TRUE : FALSE;
  ------------------
  |  |   55|      1|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      1|#define FALSE 0
  |  |  ------------------
  ------------------
              	return (CRYPTO_memcmp(a, b, len_a) == 0) ? TRUE : FALSE;
  ------------------
  |  |   51|     27|#define FALSE 0
  ------------------
  |  Branch (514:9): [True: 1, False: 13]
  ------------------
  515|  1.83k|}
oidc_util_hostname_endswith:
  544|  7.34k|apr_byte_t oidc_util_hostname_endswith(const char *hostname, const char *suffix) {
  545|  7.34k|	size_t hlen;
  546|  7.34k|	size_t slen;
  547|  7.34k|	const char *tail = NULL;
  548|  7.34k|	if ((hostname == NULL) || (suffix == NULL))
  ------------------
  |  Branch (548:6): [True: 0, False: 7.34k]
  |  Branch (548:28): [True: 0, False: 7.34k]
  ------------------
  549|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  550|  7.34k|	hlen = _oidc_strlen(hostname);
  551|  7.34k|	slen = _oidc_strlen(suffix);
  552|  7.34k|	if ((slen == 0) || (hlen < slen))
  ------------------
  |  Branch (552:6): [True: 3, False: 7.33k]
  |  Branch (552:21): [True: 3.03k, False: 4.30k]
  ------------------
  553|  3.04k|		return FALSE;
  ------------------
  |  |   51|  3.04k|#define FALSE 0
  ------------------
  554|  4.30k|	tail = hostname + (hlen - slen);
  555|  4.30k|	if (_oidc_strcasecmp(tail, suffix) != 0)
  ------------------
  |  Branch (555:6): [True: 4.12k, False: 176]
  ------------------
  556|  4.12k|		return FALSE;
  ------------------
  |  |   51|  4.12k|#define FALSE 0
  ------------------
  557|    176|	return ((tail == hostname) || (*(tail - 1) == '.')) ? TRUE : FALSE;
  ------------------
  |  |   55|     88|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|     88|#define FALSE 0
  |  |  ------------------
  ------------------
              	return ((tail == hostname) || (*(tail - 1) == '.')) ? TRUE : FALSE;
  ------------------
  |  |   51|    264|#define FALSE 0
  ------------------
  |  Branch (557:10): [True: 3, False: 173]
  |  Branch (557:32): [True: 85, False: 88]
  ------------------
  558|  4.30k|}
oidc_util_cookie_domain_valid:
  563|  3.67k|apr_byte_t oidc_util_cookie_domain_valid(const char *hostname, const char *cookie_domain) {
  564|  3.67k|	const char *check_cookie = cookie_domain;
  565|  3.67k|	if (check_cookie == NULL)
  ------------------
  |  Branch (565:6): [True: 0, False: 3.67k]
  ------------------
  566|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  567|       |	// Skip past the first char of a cookie_domain that starts
  568|       |	// with a ".", ASCII 46
  569|  3.67k|	if (check_cookie[0] == 46)
  ------------------
  |  Branch (569:6): [True: 1.86k, False: 1.81k]
  ------------------
  570|  1.86k|		check_cookie++;
  571|  3.67k|	return oidc_util_hostname_endswith(hostname, check_cookie);
  572|  3.67k|}

fuzz_strings.c:fuzz_strndup:
   43|  1.83k|static inline char *fuzz_strndup(apr_pool_t *pool, const uint8_t *data, size_t size) {
   44|  1.83k|	char *s = apr_palloc(pool, size + 1);
   45|  1.83k|	if (size > 0)
  ------------------
  |  Branch (45:6): [True: 1.83k, False: 0]
  ------------------
   46|  1.83k|		memcpy(s, data, size);
   47|  1.83k|	s[size] = '\0';
   48|  1.83k|	return s;
   49|  1.83k|}

LLVMFuzzerInitialize:
   48|      2|int LLVMFuzzerInitialize(int *argc, char ***argv) {
   49|      2|	(void)argc;
   50|      2|	(void)argv;
   51|      2|	if (!g_ready) {
  ------------------
  |  Branch (51:6): [True: 2, False: 0]
  ------------------
   52|      2|		oidc_test_setup();
   53|      2|		g_ready = 1;
   54|      2|	}
   55|      2|	return 0;
   56|      2|}
LLVMFuzzerTestOneInput:
   58|  1.83k|int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   59|  1.83k|	if (!g_ready)
  ------------------
  |  Branch (59:6): [True: 0, False: 1.83k]
  ------------------
   60|      0|		LLVMFuzzerInitialize(NULL, NULL);
   61|       |
   62|  1.83k|	apr_pool_t *pool = NULL;
   63|  1.83k|	apr_pool_create(&pool, oidc_test_pool_get());
  ------------------
  |  |  323|  1.83k|    apr_pool_create_ex(newpool, parent, NULL, NULL)
  ------------------
   64|       |
   65|       |	/* shallow copy of the fixture request with a per-input pool and a fresh headers_in */
   66|  1.83k|	request_rec r = *oidc_test_request_get();
   67|  1.83k|	r.pool = pool;
   68|  1.83k|	r.headers_in = apr_table_make(pool, 4);
   69|       |
   70|  1.83k|	const char *s = fuzz_strndup(pool, data, size);
   71|       |
   72|       |	/* URL encoding: decode, encode, and the round trip */
   73|  1.83k|	oidc_http_url_encode(&r, oidc_http_url_decode(&r, s));
   74|  1.83k|	oidc_http_url_decode(&r, oidc_http_url_encode(&r, s));
   75|       |
   76|       |	/* escaping of values echoed into pages, and header-name normalization */
   77|  1.83k|	oidc_util_html_escape(pool, s);
   78|  1.83k|	oidc_util_html_javascript_escape(pool, s);
   79|  1.83k|	oidc_http_hdr_normalize_name(&r, s);
   80|       |
   81|       |	/* host name checks, both as the host and as the configured domain/suffix */
   82|  1.83k|	oidc_util_cookie_domain_valid("www.example.com", s);
   83|  1.83k|	oidc_util_cookie_domain_valid(s, ".example.com");
   84|  1.83k|	oidc_util_hostname_endswith(s, "example.com");
   85|  1.83k|	oidc_util_hostname_endswith("www.example.com", s);
   86|       |
   87|       |	/* substring search and comparisons */
   88|  1.83k|	oidc_util_strcasestr(s, "needle");
   89|  1.83k|	oidc_util_strcasestr("a haystack with a Needle in it", s);
   90|  1.83k|	oidc_util_issuer_match(s, "https://idp.example.com");
   91|  1.83k|	oidc_util_issuer_match("https://idp.example.com/", s);
   92|  1.83k|	oidc_util_spaced_string_equals(pool, s, "code id_token");
   93|  1.83k|	oidc_util_spaced_string_contains(pool, s, "openid");
   94|  1.83k|	oidc_util_spaced_string_to_hashtable(pool, s);
   95|  1.83k|	oidc_util_strcmp_const_time(s, "a-fixed-comparison-value");
   96|       |
   97|       |	/* the query string splitter */
   98|  1.83k|	apr_table_t *params = apr_table_make(pool, 8);
   99|  1.83k|	oidc_util_table_add_query_encoded_params(pool, params, s);
  100|       |
  101|       |	/* the pre-verification JOSE header peek, kid-only and all-fields */
  102|  1.83k|	char *alg = NULL;
  103|  1.83k|	char *enc = NULL;
  104|  1.83k|	char *kid = NULL;
  105|  1.83k|	oidc_proto_jwt_header_peek(&r, s, NULL, NULL, &kid);
  106|  1.83k|	oidc_proto_jwt_header_peek(&r, s, &alg, &enc, &kid);
  107|       |
  108|       |	/* the state fingerprint over the forwarded-for and user-agent headers, and the Accept check */
  109|  1.83k|	apr_table_set(r.headers_in, "X-Forwarded-For", s);
  110|  1.83k|	apr_table_set(r.headers_in, "User-Agent", s);
  111|  1.83k|	apr_table_set(r.headers_in, "Accept", s);
  112|  1.83k|	oidc_state_browser_fingerprint(&r, oidc_test_cfg_get(), s);
  113|  1.83k|	oidc_http_hdr_in_accept_contains(&r, "application/json");
  114|       |
  115|       |	/* the https-URL validator run on values from responses */
  116|  1.83k|	oidc_cfg_parse_is_valid_url(pool, s, "https");
  117|  1.83k|	oidc_cfg_parse_is_valid_http_url(pool, s);
  118|       |
  119|       |	/* the log redaction scanners */
  120|  1.83k|	oidc_http_param_is_sensitive(s);
  121|  1.83k|	oidc_http_redact_body_for_log(&r, s);
  122|  1.83k|	oidc_http_redact_json_for_log(&r, s);
  123|       |
  124|  1.83k|	apr_pool_destroy(pool);
  125|  1.83k|	return 0;
  126|  1.83k|}

ap_unixd_set_global_mutex_perms:
   66|      4|AP_DECLARE(apr_status_t) ap_unixd_set_global_mutex_perms(apr_global_mutex_t *gmutex) {
   67|      4|	return 0;
   68|      4|}
oidc_test_set_auth_type:
   75|      2|void oidc_test_set_auth_type(const char *auth_type) {
   76|      2|	stub_auth_type = (auth_type != NULL) ? auth_type : "openid-connect";
  ------------------
  |  Branch (76:19): [True: 0, False: 2]
  ------------------
   77|      2|}
ap_getword:
  102|   109k|AP_DECLARE(char *) ap_getword(apr_pool_t *atrans, const char **line, char stop) {
  103|   109k|	const char *pos = *line;
  104|   109k|	int len;
  105|   109k|	char *res;
  106|       |
  107|  45.0M|	while ((*pos != stop) && *pos) {
  ------------------
  |  Branch (107:9): [True: 44.9M, False: 81.3k]
  |  Branch (107:27): [True: 44.9M, False: 28.4k]
  ------------------
  108|  44.9M|		++pos;
  109|  44.9M|	}
  110|       |
  111|   109k|	len = (int)(pos - *line);
  112|   109k|	res = apr_pstrmemdup(atrans, *line, len);
  113|       |
  114|   109k|	if (stop) {
  ------------------
  |  Branch (114:6): [True: 109k, False: 0]
  ------------------
  115|  4.25M|		while (*pos == stop) {
  ------------------
  |  Branch (115:10): [True: 4.14M, False: 109k]
  ------------------
  116|  4.14M|			++pos;
  117|  4.14M|		}
  118|   109k|	}
  119|   109k|	*line = pos;
  120|       |
  121|   109k|	return res;
  122|   109k|}
ap_getword_white:
  197|  2.50M|AP_DECLARE(char *) ap_getword_white(apr_pool_t *atrans, const char **line) {
  198|  2.50M|	const char *pos = *line;
  199|  2.50M|	int len;
  200|  2.50M|	char *res;
  201|       |
  202|  92.5M|	while (!apr_isspace(*pos) && *pos) {
  ------------------
  |  |  225|   185M|#define apr_isspace(c) (isspace(((unsigned char)(c))))
  ------------------
  |  Branch (202:9): [True: 90.0M, False: 2.49M]
  |  Branch (202:31): [True: 90.0M, False: 7.01k]
  ------------------
  203|  90.0M|		++pos;
  204|  90.0M|	}
  205|       |
  206|  2.50M|	len = (int)(pos - *line);
  207|  2.50M|	res = apr_pstrmemdup(atrans, *line, len);
  208|       |
  209|  11.7M|	while (apr_isspace(*pos)) {
  ------------------
  |  |  225|  11.7M|#define apr_isspace(c) (isspace(((unsigned char)(c))))
  |  |  ------------------
  |  |  |  Branch (225:24): [True: 9.23M, False: 2.50M]
  |  |  ------------------
  ------------------
  210|  9.23M|		++pos;
  211|  9.23M|	}
  212|       |
  213|  2.50M|	*line = pos;
  214|       |
  215|  2.50M|	return res;
  216|  2.50M|}
ap_log_error_:
  306|      2|	      const char *fmt, ...) {
  307|      2|	if (level < APLOG_DEBUG) {
  ------------------
  |  |   50|      2|#define APLOG_DEBUG     LOG_DEBUG       /* debug-level messages */
  ------------------
  |  Branch (307:6): [True: 0, False: 2]
  ------------------
  308|      0|		fprintf(stderr, "%s:%d [%d] [%d] ", file, line, level, status);
  309|      0|		va_list ap;
  310|      0|		va_start(ap, fmt);
  311|      0|		vfprintf(stderr, fmt, ap);
  312|      0|		va_end(ap);
  313|       |		fprintf(stderr, "\n");
  314|      0|	}
  315|      2|}
ap_log_rerror_:
  319|  9.17k|	       const char *fmt, ...) {
  320|  9.17k|	va_list ap;
  321|  9.17k|	if ((_oidc_test_log_errors_on) && (level <= APLOG_ERR) &&
  ------------------
  |  |   46|      0|#define APLOG_ERR       LOG_ERR         /* error conditions */
  ------------------
  |  Branch (321:6): [True: 0, False: 9.17k]
  |  Branch (321:36): [True: 0, False: 0]
  ------------------
  322|      0|	    (_oidc_test_log_errors_len < OIDC_TEST_LOG_ERRORS_MAX - 1)) {
  ------------------
  |  |   38|      0|#define OIDC_TEST_LOG_ERRORS_MAX 16384
  ------------------
  |  Branch (322:6): [True: 0, False: 0]
  ------------------
  323|      0|		va_start(ap, fmt);
  324|      0|		int n = vsnprintf(_oidc_test_log_errors + _oidc_test_log_errors_len,
  325|      0|				  OIDC_TEST_LOG_ERRORS_MAX - 1 - _oidc_test_log_errors_len, fmt, ap);
  ------------------
  |  |   38|      0|#define OIDC_TEST_LOG_ERRORS_MAX 16384
  ------------------
  326|      0|		va_end(ap);
  327|      0|		if (n > 0)
  ------------------
  |  Branch (327:7): [True: 0, False: 0]
  ------------------
  328|      0|			_oidc_test_log_errors_len += (size_t)n;
  329|      0|		if (_oidc_test_log_errors_len > OIDC_TEST_LOG_ERRORS_MAX - 2)
  ------------------
  |  |   38|      0|#define OIDC_TEST_LOG_ERRORS_MAX 16384
  ------------------
  |  Branch (329:7): [True: 0, False: 0]
  ------------------
  330|      0|			_oidc_test_log_errors_len = OIDC_TEST_LOG_ERRORS_MAX - 2;
  ------------------
  |  |   38|      0|#define OIDC_TEST_LOG_ERRORS_MAX 16384
  ------------------
  331|      0|		_oidc_test_log_errors[_oidc_test_log_errors_len++] = '\n';
  332|      0|		_oidc_test_log_errors[_oidc_test_log_errors_len] = '\0';
  333|      0|	}
  334|  9.17k|	if (level < APLOG_DEBUG) {
  ------------------
  |  |   50|  9.17k|#define APLOG_DEBUG     LOG_DEBUG       /* debug-level messages */
  ------------------
  |  Branch (334:6): [True: 3.66k, False: 5.50k]
  ------------------
  335|  3.66k|		fprintf(stderr, "%s:%d [%d] [%d] ", file, line, level, status);
  336|  3.66k|		va_start(ap, fmt);
  337|  3.66k|		vfprintf(stderr, fmt, ap);
  338|  3.66k|		va_end(ap);
  339|       |		fprintf(stderr, "\n");
  340|  3.66k|	}
  341|  9.17k|}
ap_unescape_url:
  406|   109k|AP_DECLARE(int) ap_unescape_url(char *url) {
  407|   109k|	return 0;
  408|   109k|}

oidc_test_setup:
  209|      2|void oidc_test_setup(void) {
  210|      2|	apr_initialize();
  211|      2|	oidc_pre_config_init();
  212|       |	/* reset the stubbed AuthType so a test that changed it does not leak into
  213|       |	 * the next one under CK_FORK=no */
  214|      2|	oidc_test_set_auth_type(NULL);
  215|       |	apr_pool_create(&pool, NULL);
  ------------------
  |  |  323|      2|    apr_pool_create_ex(newpool, parent, NULL, NULL)
  ------------------
  216|      2|	request = oidc_test_request_init(pool);
  217|      2|}
oidc_test_pool_get:
  282|  1.83k|apr_pool_t *oidc_test_pool_get(void) {
  283|  1.83k|	return pool;
  284|  1.83k|}
oidc_test_request_get:
  286|  1.83k|request_rec *oidc_test_request_get(void) {
  287|  1.83k|	return request;
  288|  1.83k|}
oidc_test_cfg_get:
  290|  1.83k|oidc_cfg_t *oidc_test_cfg_get(void) {
  291|  1.83k|	return (oidc_cfg_t *)ap_get_module_config(request->server->module_config, &auth_openidc_module);
  ------------------
  |  |  551|  1.83k|    (((void **)(v))[(m)->module_index])
  ------------------
  292|  1.83k|}
util.c:oidc_test_request_init:
  107|      2|static request_rec *oidc_test_request_init(apr_pool_t *pool) {
  108|      2|	const unsigned int kIdx = 0;
  109|      2|	const unsigned int kEls = kIdx + 1;
  110|      2|	request_rec *request = (request_rec *)apr_pcalloc(pool, sizeof(request_rec));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  111|       |
  112|      2|	apr_pool_create(&request->pool, pool);
  ------------------
  |  |  323|      2|    apr_pool_create_ex(newpool, parent, NULL, NULL)
  ------------------
  113|       |
  114|      2|	request->subprocess_env = apr_table_make(request->pool, 0);
  115|      2|	request->notes = apr_table_make(request->pool, 0);
  116|       |
  117|      2|	request->headers_in = apr_table_make(request->pool, 0);
  118|      2|	request->headers_out = apr_table_make(request->pool, 0);
  119|      2|	request->err_headers_out = apr_table_make(request->pool, 0);
  120|       |
  121|      2|	apr_table_set(request->headers_in, "Host", "www.example.com");
  122|      2|	apr_table_set(request->headers_in, "OIDC_foo", "some-value");
  123|      2|	apr_table_set(request->headers_in, "Cookie",
  124|      2|		      "foo=bar; "
  125|      2|		      "mod_auth_openidc_session"
  126|      2|		      "=0123456789abcdef; baz=zot");
  127|       |
  128|      2|	request->server = apr_pcalloc(pool, sizeof(struct server_rec));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  129|       |	/* log at debug level: httpd's ap_log_*error macros only skip their arguments for levels above
  130|       |	 * NOTICE, so with the zeroed level of a bare server_rec the arguments of every oidc_debug and
  131|       |	 * oidc_info call -- the code a "LogLevel auth_openidc:debug" deployment runs -- were never
  132|       |	 * evaluated here, and so never ran under valgrind or the sanitizers either */
  133|      2|	request->server->log.level = APLOG_DEBUG;
  ------------------
  |  |   50|      2|#define APLOG_DEBUG     LOG_DEBUG       /* debug-level messages */
  ------------------
  134|      2|	request->server->process = apr_pcalloc(pool, sizeof(struct process_rec));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  135|      2|	apr_pool_create(&request->server->process->pool, pool);
  ------------------
  |  |  323|      2|    apr_pool_create_ex(newpool, parent, NULL, NULL)
  ------------------
  136|      2|	apr_pool_create(&request->server->process->pconf, pool);
  ------------------
  |  |  323|      2|    apr_pool_create_ex(newpool, parent, NULL, NULL)
  ------------------
  137|      2|	request->connection = apr_pcalloc(pool, sizeof(struct conn_rec));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  138|      2|	request->connection->bucket_alloc = apr_bucket_alloc_create(pool);
  139|      2|	request->connection->local_addr = apr_pcalloc(pool, sizeof(apr_sockaddr_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  140|       |	/* minimal output filter carrying the request so the ap_pass_brigade stub
  141|       |	 * can capture sent response bodies into the "sent_body" request state */
  142|      2|	request->output_filters = apr_pcalloc(pool, sizeof(ap_filter_t));
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  143|      2|	request->output_filters->r = request;
  144|       |
  145|      2|	apr_pool_userdata_set("https", "scheme", NULL, request->pool);
  146|      2|	request->server->server_hostname = "www.example.com";
  147|      2|	request->connection->local_addr->port = 4433;
  148|      2|	request->unparsed_uri = "/bla?foo=bar&param1=value1";
  149|      2|	request->args = "foo=bar&param1=value1";
  150|      2|	apr_uri_parse(request->pool, "https://www.example.com/bla?foo=bar&param1=value1", &request->parsed_uri);
  151|       |
  152|      2|	auth_openidc_module.module_index = kIdx;
  153|      2|	oidc_cfg_t *cfg = oidc_cfg_server_create(request->server->process->pconf, request->server);
  154|       |
  155|      2|	oidc_cfg_provider_issuer_set(request->server->process->pconf, oidc_cfg_provider_get(cfg),
  156|      2|				     "https://idp.example.com");
  157|      2|	oidc_cfg_provider_authorization_endpoint_url_set(request->server->process->pconf, oidc_cfg_provider_get(cfg),
  158|      2|							 "https://idp.example.com/authorize");
  159|      2|	oidc_cfg_provider_client_id_set(request->server->process->pconf, oidc_cfg_provider_get(cfg), "client_id");
  160|       |
  161|      2|	cfg->redirect_uri = "https://www.example.com/protected/";
  162|       |
  163|      2|	oidc_dir_cfg_t *d_cfg = oidc_cfg_dir_config_create(request->server->process->pconf, NULL);
  164|       |
  165|       |	// coverity[suspicious_sizeof]
  166|      2|	request->server->module_config = apr_pcalloc(request->server->process->pconf, sizeof(void *) * kEls);
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  167|       |	// coverity[suspicious_sizeof]
  168|      2|	request->per_dir_config = apr_pcalloc(request->server->process->pconf, sizeof(void *) * kEls);
  ------------------
  |  |  465|      2|#define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
  ------------------
  169|      2|	ap_set_module_config(request->server->module_config, &auth_openidc_module, cfg);
  ------------------
  |  |  553|      2|    ((((void **)(v))[(m)->module_index]) = (val))
  ------------------
  170|      2|	ap_set_module_config(request->per_dir_config, &auth_openidc_module, d_cfg);
  ------------------
  |  |  553|      2|    ((((void **)(v))[(m)->module_index]) = (val))
  ------------------
  171|       |
  172|       |	// TODO:
  173|      2|	cfg->public_keys = apr_array_make(request->server->process->pconf, 1, sizeof(const char *));
  174|      2|	cfg->private_keys = apr_array_make(request->server->process->pconf, 1, sizeof(const char *));
  175|       |
  176|      2|	cfg->crypto_passphrase.secret1 = "12345678901234567890123456789012";
  177|      2|	if (oidc_test_crypto_passphrase_derive_keys_cached(&cfg->crypto_passphrase) == FALSE) {
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  |  Branch (177:6): [True: 0, False: 2]
  ------------------
  178|      0|		fprintf(stderr, "oidc_cfg_crypto_passphrase_derive_keys failed!\n");
  179|      0|		exit(-1);
  180|      0|	}
  181|      2|	cfg->cache.impl = &oidc_cache_shm;
  182|      2|	cfg->cache.cfg = NULL;
  183|      2|	cfg->cache.shm_size_max = 500;
  184|      2|	const char *shm_size = getenv("OIDC_TEST_SHM_SIZE");
  185|      2|	if (shm_size != NULL) {
  ------------------
  |  Branch (185:6): [True: 0, False: 2]
  ------------------
  186|      0|		char *end = NULL;
  187|      0|		long parsed = strtol(shm_size, &end, 10);
  188|      0|		if ((end != shm_size) && (*end == '\0') && (parsed >= 128) && (parsed <= 1000000))
  ------------------
  |  Branch (188:7): [True: 0, False: 0]
  |  Branch (188:28): [True: 0, False: 0]
  |  Branch (188:46): [True: 0, False: 0]
  |  Branch (188:65): [True: 0, False: 0]
  ------------------
  189|      0|			cfg->cache.shm_size_max = (int)parsed;
  190|      0|	}
  191|      2|	cfg->cache.shm_entry_size_max = 16384 + 255 + 17;
  192|      2|	cfg->cache.encrypt = 1;
  193|       |	/* full post-config so the cache backend AND the shared refresh-grant mutex get set up */
  194|      2|	if (oidc_cfg_post_config(request->server->process->pconf, cfg, request->server) != OK) {
  ------------------
  |  |  456|      2|#define OK 0                    /**< Module has handled this stage. */
  ------------------
  |  Branch (194:6): [True: 0, False: 2]
  ------------------
  195|      0|		fprintf(stderr, "oidc_cfg_post_config failed!\n");
  196|      0|		exit(-1);
  197|      0|	}
  198|       |
  199|      2|	if (oidc_cfg_dir_post_config(request->server) != OK) {
  ------------------
  |  |  456|      2|#define OK 0                    /**< Module has handled this stage. */
  ------------------
  |  Branch (199:6): [True: 0, False: 2]
  ------------------
  200|      0|		fprintf(stderr, "oidc_cfg_dir_post_config failed!\n");
  201|      0|		exit(-1);
  202|      0|	}
  203|       |
  204|      2|	oidc_http_curl_pool_init(request->server->process->pconf);
  205|       |
  206|      2|	return request;
  207|      2|}
util.c:oidc_test_crypto_passphrase_derive_keys_cached:
   93|      2|static apr_byte_t oidc_test_crypto_passphrase_derive_keys_cached(oidc_crypto_passphrase_t *cp) {
   94|      2|	if ((cp->secret1 != NULL) && (_oidc_strlen(cp->secret1) > 0) && (cp->derived_key1_set == FALSE)) {
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  |  Branch (94:6): [True: 2, False: 0]
  |  Branch (94:31): [True: 2, False: 0]
  |  Branch (94:66): [True: 2, False: 0]
  ------------------
   95|      2|		if (oidc_test_key_derive_cached(cp->secret1, cp->derived_key1) == FALSE)
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  |  Branch (95:7): [True: 0, False: 2]
  ------------------
   96|      0|			return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
   97|      2|		cp->derived_key1_set = TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
   98|      2|	}
   99|      2|	if ((cp->secret2 != NULL) && (_oidc_strlen(cp->secret2) > 0) && (cp->derived_key2_set == FALSE)) {
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  |  Branch (99:6): [True: 0, False: 2]
  |  Branch (99:31): [True: 0, False: 0]
  |  Branch (99:66): [True: 0, False: 0]
  ------------------
  100|      0|		if (oidc_test_key_derive_cached(cp->secret2, cp->derived_key2) == FALSE)
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  |  Branch (100:7): [True: 0, False: 0]
  ------------------
  101|      0|			return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
  102|      0|		cp->derived_key2_set = TRUE;
  ------------------
  |  |   55|      0|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      0|#define FALSE 0
  |  |  ------------------
  ------------------
  103|      0|	}
  104|      2|	return TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
  105|      2|}
util.c:oidc_test_key_derive_cached:
   68|      2|static apr_byte_t oidc_test_key_derive_cached(const char *secret, unsigned char *out) {
   69|      2|	int i;
   70|      2|	for (i = 0; i < oidc_test_kdf_cache_n; i++) {
  ------------------
  |  Branch (70:14): [True: 0, False: 2]
  ------------------
   71|      0|		if (_oidc_strcmp(oidc_test_kdf_cache[i].secret, secret) == 0) {
  ------------------
  |  Branch (71:7): [True: 0, False: 0]
  ------------------
   72|      0|			_oidc_memcpy(out, oidc_test_kdf_cache[i].key, OIDC_CRYPTO_PASSPHRASE_DERIVED_KEY_LEN);
  ------------------
  |  |   85|      0|#define _oidc_memcpy(__dst, __src, __n) memcpy(__dst, __src, __n)
  ------------------
   73|      0|			return TRUE;
  ------------------
  |  |   55|      0|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      0|#define FALSE 0
  |  |  ------------------
  ------------------
   74|      0|		}
   75|      0|	}
   76|      2|	if (oidc_util_key_derive_passphrase_key(secret, out, OIDC_CRYPTO_PASSPHRASE_DERIVED_KEY_LEN) == FALSE)
  ------------------
  |  |  113|      2|#define OIDC_CRYPTO_PASSPHRASE_DERIVED_KEY_LEN 32
  ------------------
              	if (oidc_util_key_derive_passphrase_key(secret, out, OIDC_CRYPTO_PASSPHRASE_DERIVED_KEY_LEN) == FALSE)
  ------------------
  |  |   51|      2|#define FALSE 0
  ------------------
  |  Branch (76:6): [True: 0, False: 2]
  ------------------
   77|      0|		return FALSE;
  ------------------
  |  |   51|      0|#define FALSE 0
  ------------------
   78|      2|	if ((oidc_test_kdf_cache_n < OIDC_TEST_KDF_CACHE_MAX) &&
  ------------------
  |  |   61|      2|#define OIDC_TEST_KDF_CACHE_MAX 32
  ------------------
  |  Branch (78:6): [True: 2, False: 0]
  ------------------
   79|      2|	    (_oidc_strlen(secret) < sizeof(oidc_test_kdf_cache[0].secret))) {
  ------------------
  |  Branch (79:6): [True: 2, False: 0]
  ------------------
   80|      2|		_oidc_strcpy(oidc_test_kdf_cache[oidc_test_kdf_cache_n].secret, secret);
  ------------------
  |  |   86|      2|#define _oidc_strcpy(__dst, __src) strcpy(__dst, __src)
  ------------------
   81|      2|		_oidc_memcpy(oidc_test_kdf_cache[oidc_test_kdf_cache_n].key, out,
  ------------------
  |  |   85|      2|#define _oidc_memcpy(__dst, __src, __n) memcpy(__dst, __src, __n)
  ------------------
   82|      2|			     OIDC_CRYPTO_PASSPHRASE_DERIVED_KEY_LEN);
   83|      2|		oidc_test_kdf_cache_n++;
   84|      2|	}
   85|      2|	return TRUE;
  ------------------
  |  |   55|      2|#define TRUE (!FALSE)
  |  |  ------------------
  |  |  |  |   51|      2|#define FALSE 0
  |  |  ------------------
  ------------------
   86|      2|}

