[ 
https://issues.apache.org/jira/browse/AMQCPP-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817005#comment-13817005
 ] 

Hongyu Xiong commented on AMQCPP-505:
-------------------------------------

Hi Timothy,   when  I compile ActiveMQ-cpp, it shows the error 
message."OpenSSLSocket.cpp:367: error: 'SSL_set_tlsext_host_name' was not 
declared in this scope"
 
In this environment, openssl-1.0.1e is installed, and I find the macro 
"SSL_set_tlsext_host_name" is declared in file /usr/include/openssl/tls1.h

Is the tls1.h should be included to OpenSSLSocket.cpp? 
=====================================
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../..    -ansi -pedantic   -DLINUX -D_REENTRANT -D_GNU_SOURCE  
-I/usr/local/apr/include/apr-1   -I/usr/kerberos/include   -W -Wall -Wextra 
-Wconversion -fPIC -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long -g -O2 
-pthread -MT decaf/internal/net/ssl/openssl/libactivemq_cpp_la-OpenSSLSocket.lo 
-MD -MP -MF 
decaf/internal/net/ssl/openssl/.deps/libactivemq_cpp_la-OpenSSLSocket.Tpo -c -o 
decaf/internal/net/ssl/openssl/libactivemq_cpp_la-OpenSSLSocket.lo `test -f 
'decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp' || echo 
'./'`decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -ansi -pedantic -DLINUX 
-D_REENTRANT -D_GNU_SOURCE -I/usr/local/apr/include/apr-1 
-I/usr/kerberos/include -W -Wall -Wextra -Wconversion -fPIC -fstrict-aliasing 
-Wstrict-aliasing=2 -Wno-long-long -g -O2 -pthread -MT 
decaf/internal/net/ssl/openssl/libactivemq_cpp_la-OpenSSLSocket.lo -MD -MP -MF 
decaf/internal/net/ssl/openssl/.deps/libactivemq_cpp_la-OpenSSLSocket.Tpo -c 
decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp  -fPIC -DPIC -o 
decaf/internal/net/ssl/openssl/.libs/libactivemq_cpp_la-OpenSSLSocket.o
decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp: In member function 'virtual 
void decaf::internal::net::ssl::openssl::OpenSSLSocket::startHandshake()':
decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp:367: error: 
'SSL_set_tlsext_host_name' was not declared in this scope
make: *** [decaf/internal/net/ssl/openssl/libactivemq_cpp_la-OpenSSLSocket.lo] 
Error 1
=========================


> For SSL connections ensure the SNI field is set.
> ------------------------------------------------
>
>                 Key: AMQCPP-505
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-505
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 3.7.0
>            Reporter: Timothy Bish
>            Assignee: Timothy Bish
>             Fix For: 3.8.0
>
>
> Provide a way in the Decaf OpenSSL implementation to set the SNI field and 
> then ensure it gets set in the SSL transport layer.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to