[haiku-commits] Re: haiku: hrev46679 - src/kits/network/libnetapi headers/os/net

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Wed, 15 Jan 2014 16:14:45 -0500

On Wed, Jan 15, 2014 at 11:45 AM,  <pulkomandy@xxxxxxxxxxxxx> wrote:
> diff --git a/src/kits/network/libnetapi/CertificatePrivate.h 
> b/src/kits/network/libnetapi/CertificatePrivate.h
> new file mode 100644
> index 0000000..d9c3414
> --- /dev/null
> +++ b/src/kits/network/libnetapi/CertificatePrivate.h
> @@ -0,0 +1,23 @@
> +/*
> + * Copyright 2014 Haiku, Inc.
> + * Distributed under the terms of the MIT License.
> + */
> +#ifndef _CERTIFICATE_PRIVATE_H
> +#define _CERTIFICATE_PRIVATE_H
> +
> +
> +#ifdef OPENSSL_ENABLED
> +#      include <openssl/ssl.h>
> +#endif
> +
> +
> +class BCertificate::Private {
> +public:
> +       Private(X509* data);
> +
> +public:
> +       X509* fX509;
> +};
> +
> +
> +#endif

This commit breaks the build with OPENSSL_ENABLED not defined,

In file included from
/Volumes/Haiku/haiku/src/kits/network/libnetapi/SecureSocket.cpp:19:
/Volumes/Haiku/haiku/src/kits/network/libnetapi/CertificatePrivate.h:16:
parse error before `*'
/Volumes/Haiku/haiku/src/kits/network/libnetapi/CertificatePrivate.h:19:
syntax error before `*'

Not sure the best way to fix this, perhaps it is time we did away with
the OPENSSL_ENABLED flag.

Other related posts: