You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by baklan120 <ba...@gmail.com> on 2017/07/20 18:28:24 UTC

Re: activemq-cpp-3.9.4 fails to build fedora rawhide - openssl-1.1.0e related.

You should replace extension->value->data with the
ASN1_STRING_data(X509_EXTENSION_get_data(extension)) and
extension->value->length (twice) with the
ASN1_STRING_length(X509_EXTENSION_get_data(extension))).


traylenator wrote
> 
> decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp:667:50: error: invalid
> use of incomplete type 'X509_EXTENSION {aka struct X509_extension_st}' 
>              const unsigned char* data = extension->value->data; 
>                                                   ^~ 
> In file included from /usr/include/openssl/ssl.h:50:0, 
>                  from decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp:21: 
> /usr/include/openssl/x509.h:79:16: note: forward declaration of
> 'X509_EXTENSION {aka struct X509_extension_st}' 
>  typedef struct X509_extension_st X509_EXTENSION; 
>                 ^~~~~~~~~~~~~~~~~ 
> decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp:667:52: error: invalid
> use of incomplete type 'X509_EXTENSION {aka struct X509_extension_st}' 
>              const unsigned char* data = extension->value->data; 
>                                                     ^~~~~ 
> In file included from /usr/include/openssl/ssl.h:50:0, 
>                  from decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp:21: 
> /usr/include/openssl/x509.h:79:16: note: forward declaration of
> 'X509_EXTENSION {aka struct X509_extension_st}' 
>  typedef struct X509_extension_st X509_EXTENSION; 
>                 ^~~~~~~~~~~~~~~~~ 
> decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp:670:65: error: invalid
> use of incomplete type 'X509_EXTENSION {aka struct X509_extension_st}' 
>                              ASN1_item_d2i(NULL, &data,
> extension->value->length, ASN1_ITEM_ptr(method->it)) : 





--
View this message in context: http://activemq.2283324.n4.nabble.com/activemq-cpp-3-9-4-fails-to-build-fedora-rawhide-openssl-1-1-0e-related-tp4724037p4728754.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: activemq-cpp-3.9.4 fails to build fedora rawhide - openssl-1.1.0e related.

Posted by acpmasquerade <dh...@gmail.com>.
Checking in just to confirm that same issue was encountered while building on
Ubuntu 16.04 and openssl 1.0.2

Fixed by replacing as suggested above.

PS: What is the datatype of extension->value->length ? 



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html