compiling cups-1.4.3 w/ OpenSSL 1.10 && BIO_METHOD

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling cups-1.4.3 w/ OpenSSL 1.10 && BIO_METHOD

Matthias Apitz-4

Hello,

Compiling cups-1.4.3 against OpenSSL 1.10 gives the following error:

...
Compiling http.c...
http.c:216: error: variable `http_bio_methods' has initializer but
incomplete type

the code in question is:

#if defined(HAVE_SSL) && defined(HAVE_LIBSSL)
/*
 * BIO methods for OpenSSL...
 */

static int              http_bio_write(BIO *h, const char *buf, int num);
static int              http_bio_read(BIO *h, char *buf, int size);
static int              http_bio_puts(BIO *h, const char *str);
static long             http_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
static int              http_bio_new(BIO *h);
static int              http_bio_free(BIO *data);

static BIO_METHOD       http_bio_methods =
                        {
                          BIO_TYPE_SOCKET,
                          "http",
                          http_bio_write,
                          http_bio_read,
                          http_bio_puts,
                          NULL, /* http_bio_gets, */
                          http_bio_ctrl,
                          http_bio_new,
                          http_bio_free,
                          NULL,
                        };

Can I fix this somehow within the cups' code?
Thanks

        matthias


--
Matthias Apitz, ✉ [hidden email], ⌂ http://www.unixarea.de/  📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling cups-1.4.3 w/ OpenSSL 1.10 && BIO_METHOD

OpenSSL - User mailing list
Yes, you will have to create the BIO object at run-time and use the settor methods.
 

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|

Re: compiling cups-1.4.3 w/ OpenSSL 1.10 && BIO_METHOD

Matt Caswell-2
In reply to this post by Matthias Apitz-4


On 01/03/18 12:07, Matthias Apitz wrote:

>
> Hello,
>
> Compiling cups-1.4.3 against OpenSSL 1.10 gives the following error:
>
> ...
> Compiling http.c...
> http.c:216: error: variable `http_bio_methods' has initializer but
> incomplete type
>
> the code in question is:
>
> #if defined(HAVE_SSL) && defined(HAVE_LIBSSL)
> /*
>  * BIO methods for OpenSSL...
>  */
>
> static int              http_bio_write(BIO *h, const char *buf, int num);
> static int              http_bio_read(BIO *h, char *buf, int size);
> static int              http_bio_puts(BIO *h, const char *str);
> static long             http_bio_ctrl(BIO *h, int cmd, long arg1, void *arg2);
> static int              http_bio_new(BIO *h);
> static int              http_bio_free(BIO *data);
>
> static BIO_METHOD       http_bio_methods =
>                         {
>                           BIO_TYPE_SOCKET,
>                           "http",
>                           http_bio_write,
>                           http_bio_read,
>                           http_bio_puts,
>                           NULL, /* http_bio_gets, */
>                           http_bio_ctrl,
>                           http_bio_new,
>                           http_bio_free,
>                           NULL,
>                         };
>
> Can I fix this somehow within the cups' code?
> Thanks

Yes, construct the BIO_METHOD at run time using the functions here:

https://www.openssl.org/docs/man1.1.0/crypto/BIO_meth_new.html

Matt

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users