| 674 | } |
| 675 | |
| 676 | static int stapling_mutex_on(server_rec *s, apr_global_mutex_t *mutex, |
| 677 | const char *name) |
| 678 | { |
| 679 | apr_status_t rv; |
| 680 | |
| 681 | if ((rv = apr_global_mutex_lock(mutex)) != APR_SUCCESS) { |
| 682 | ap_log_error(APLOG_MARK, APLOG_WARNING, rv, s, APLOGNO(01948) |
| 683 | "Failed to acquire OCSP %s lock", name); |
| 684 | return FALSE; |
| 685 | } |
| 686 | return TRUE; |
| 687 | } |
| 688 | |
| 689 | static int stapling_mutex_off(server_rec *s, apr_global_mutex_t *mutex, |
| 690 | const char *name) |
no test coverage detected