diff options
author | Stefan Eissing <icing@apache.org> | 2021-04-20 14:16:05 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-04-20 14:16:05 +0200 |
commit | 8951949163612ad2f4ec936ac4a61154af0edce3 (patch) | |
tree | 80de0386c95cc48d3ea06a4f82606c5bded9aa10 /modules/md/md_util.c | |
parent | Fix some typos (diff) | |
download | apache2-8951949163612ad2f4ec936ac4a61154af0edce3.tar.xz apache2-8951949163612ad2f4ec936ac4a61154af0edce3.zip |
core/ap_ssl_*: changes after review by rpluem
- removed no longer needed (char*) casts when looking
up ssl variables.
- move 'goto cleanup;' on separate source line
- fixed check for wrong optional function in ap_run_ssl_var_lookup
- remove ap_bytes_t again from httpd.h and passes now ocsp
identifier as separate const char* and apr_size_t. This
follows more how such data is passed in the rest of the
server.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1889009 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/md/md_util.c')
-rw-r--r-- | modules/md/md_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/md/md_util.c b/modules/md/md_util.c index d0c23f9678..34e891d1ce 100644 --- a/modules/md/md_util.c +++ b/modules/md/md_util.c @@ -96,10 +96,10 @@ md_data_t *md_data_make(apr_pool_t *p, apr_size_t len) return d; } -void md_data_assign_pcopy(md_data_t *dest, const md_data_t *src, apr_pool_t *p) +void md_data_assign_pcopy(md_data_t *dest, const char *src, apr_size_t src_len, apr_pool_t *p) { - dest->data = (src->data && src->len)? apr_pmemdup(p, src->data, src->len) : NULL; - dest->len = dest->data? src->len : 0; + dest->data = (src && src_len)? apr_pmemdup(p, src, src_len) : NULL; + dest->len = dest->data? src_len : 0; } static const char * const hex_const[] = { |