Author: jgomes
Date: Wed Jul 8 17:39:44 2015
New Revision: 1689923
URL: http://svn.apache.org/r1689923
Log:
Applied patch from Enrique Garcia to copy the 509 certificates to internal
list. Thanks, Enrique!
Fixes [AMQNET-500]. (See https://issues.apache.org/jira/browse/AMQNET-500)
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x/src/main/csharp/Transport/Tcp/SslTransport.cs
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x/src/main/csharp/Transport/Tcp/SslTransport.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x/src/main/csharp/Transport/Tcp/SslTransport.cs?rev=1689923&r1=1689922&r2=1689923&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x/src/main/csharp/Transport/Tcp/SslTransport.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x/src/main/csharp/Transport/Tcp/SslTransport.cs
Wed Jul 8 17:39:44 2015
@@ -314,7 +314,9 @@ namespace Apache.NMS.ActiveMQ.Transport.
X509Store store = new X509Store(name, location);
store.Open(OpenFlags.ReadOnly);
- collection = store.Certificates;
+ X509Certificate2[] certificates = new
X509Certificate2[store.Certificates.Count];
+ store.Certificates.CopyTo(certificates, 0);
+ collection.AddRange(certificates);
store.Close();
}