| 93 | } |
| 94 | |
| 95 | apr_status_t md_http_clone(md_http_t **phttp, |
| 96 | apr_pool_t *p, md_http_t *source_http) |
| 97 | { |
| 98 | apr_status_t rv; |
| 99 | |
| 100 | rv = md_http_create(phttp, p, source_http->user_agent, source_http->proxy_url); |
| 101 | if (APR_SUCCESS == rv) { |
| 102 | (*phttp)->resp_limit = source_http->resp_limit; |
| 103 | (*phttp)->timeout = source_http->timeout; |
| 104 | if (source_http->unix_socket_path) { |
| 105 | (*phttp)->unix_socket_path = apr_pstrdup(p, source_http->unix_socket_path); |
| 106 | } |
| 107 | if (source_http->ca_file) { |
| 108 | (*phttp)->ca_file = apr_pstrdup(p, source_http->ca_file); |
| 109 | } |
| 110 | } |
| 111 | return rv; |
| 112 | } |
| 113 | |
| 114 | void md_http_set_impl_data(md_http_t *http, void *data) |
| 115 | { |
no test coverage detected