diff options
Diffstat (limited to 'contrib/serf/serf_bucket_types.h')
-rw-r--r-- | contrib/serf/serf_bucket_types.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/serf/serf_bucket_types.h b/contrib/serf/serf_bucket_types.h index 4d83d02..900f67d 100644 --- a/contrib/serf/serf_bucket_types.h +++ b/contrib/serf/serf_bucket_types.h @@ -307,6 +307,16 @@ serf_bucket_t *serf_bucket_simple_copy_create( apr_size_t len, serf_bucket_alloc_t *allocator); +/** + * Equivalent to serf_bucket_simple_create, except that the bucket assumes + * responsibility for freeing the data on this allocator without making + * a copy. It is assumed that data was created by a call from allocator. + */ +serf_bucket_t *serf_bucket_simple_own_create( + const char *data, + apr_size_t len, + serf_bucket_alloc_t *allocator); + #define SERF_BUCKET_SIMPLE_STRING(s,a) \ serf_bucket_simple_create(s, strlen(s), NULL, NULL, a); @@ -579,7 +589,7 @@ apr_hash_t *serf_ssl_cert_subject( /** * Extract the fields of the certificate in a table with keys (sha1, notBefore, - * notAfter). The returned table will be allocated in @a pool. + * notAfter, subjectAltName). The returned table will be allocated in @a pool. */ apr_hash_t *serf_ssl_cert_certificate( const serf_ssl_certificate_t *cert, |