activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1066242 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp
Date Tue, 01 Feb 2011 22:08:23 GMT
Author: tabish
Date: Tue Feb  1 22:08:23 2011
New Revision: 1066242

URL: http://svn.apache.org/viewvc?rev=1066242&view=rev
Log:
Apply patch for: https://issues.apache.org/jira/browse/AMQCPP-347

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp?rev=1066242&r1=1066241&r2=1066242&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp
Tue Feb  1 22:08:23 2011
@@ -662,7 +662,9 @@ void OpenSSLSocket::verifyServerCert( co
 
             const unsigned char* data = extension->value->data;
             STACK_OF(CONF_VALUE)* confValue =
-                method->i2v( method, method->d2i( NULL, &data, extension->value->length
), NULL );
+                method->i2v( method, method->it ?
+                             ASN1_item_d2i(NULL, &data, extension->value->length,
ASN1_ITEM_ptr(method->it)) :
+                             method->d2i( NULL, &data, extension->value->length
), NULL );
 
             CONF_VALUE* value = NULL;
 



Mime
View raw message