activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [19/50] [abbrv] activemq-nms-openwire git commit: 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)
Date Wed, 08 Mar 2017 23:12:21 GMT
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)



Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/commit/8e6479f2
Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/tree/8e6479f2
Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/diff/8e6479f2

Branch: refs/heads/1.7.x
Commit: 8e6479f27e5b40e104ceabb4dd7e7c4eed6c5b15
Parents: d13fe5c
Author: Jim Gomes <jgomes@apache.org>
Authored: Wed Jul 8 17:39:44 2015 +0000
Committer: Jim Gomes <jgomes@apache.org>
Committed: Wed Jul 8 17:39:44 2015 +0000

----------------------------------------------------------------------
 src/main/csharp/Transport/Tcp/SslTransport.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/blob/8e6479f2/src/main/csharp/Transport/Tcp/SslTransport.cs
----------------------------------------------------------------------
diff --git a/src/main/csharp/Transport/Tcp/SslTransport.cs b/src/main/csharp/Transport/Tcp/SslTransport.cs
index caa3ec7..17f2e06 100644
--- a/src/main/csharp/Transport/Tcp/SslTransport.cs
+++ b/src/main/csharp/Transport/Tcp/SslTransport.cs
@@ -314,7 +314,9 @@ namespace Apache.NMS.ActiveMQ.Transport.Tcp
 
                 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();
             }
 


Mime
View raw message