serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Zhakov <i...@visualsvn.com>
Subject Re: svn commit: r1774473 - in /serf/branches/ocsp-verification: buckets/ssl_buckets.c serf_bucket_types.h test/test_ssl.c
Date Thu, 15 Dec 2016 17:16:36 GMT
On 15 December 2016 at 17:31,  <brane@apache.org> wrote:
> Author: brane
> Date: Thu Dec 15 14:31:13 2016
> New Revision: 1774473
>
> URL: http://svn.apache.org/viewvc?rev=1774473&view=rev
> Log:
> On the ocsp-verification branch: Implement request constructor,
> export, import and acccessors.
>
[...]

> Modified: serf/branches/ocsp-verification/buckets/ssl_buckets.c
> URL: http://svn.apache.org/viewvc/serf/branches/ocsp-verification/buckets/ssl_buckets.c?rev=1774473&r1=1774472&r2=1774473&view=diff
> ==============================================================================
> --- serf/branches/ocsp-verification/buckets/ssl_buckets.c (original)
> +++ serf/branches/ocsp-verification/buckets/ssl_buckets.c Thu Dec 15 14:31:13 2016
> @@ -2614,3 +2614,260 @@ const serf_bucket_type_t serf_bucket_typ
>      serf_default_get_remaining,
>      serf_ssl_set_config,
>  };
> +
> +
> +/*
> + * OCSP bits are here because they depend on OpenSSL and private types
> + * defined in this file.
> + */
> +
> +struct serf_ssl_ocsp_request_t {
> +#ifndef OPENSSL_NO_OCSP
> +    /* OpenSSL's internal representation of the OCSP request. */
> +    OCSP_REQUEST *request;
> +
> +    /* DER-encoded request and size. */
> +    const void *der_request;
> +    apr_size_t der_request_size;
> +
> +    /* Exported server and issuer certificates. */
> +    const char *encoded_server_cert;
> +    const char *encoded_issuer_cert;
> +#endif  /* OPENSSL_NO_OCSP */
> +};
As far I remember C requires that a struct or union has at least one member.

-- 
Ivan Zhakov

Mime
View raw message