activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [20/50] [abbrv] activemq-nms-openwire git commit: Merged revision(s) 1689923 from activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x: Applied patch from Enrique Garcia to copy the 509 certificates to internal list. Thanks, Enrique! Fixes [AMQNET
Date Wed, 08 Mar 2017 23:12:22 GMT
Merged revision(s) 1689923 from activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x:
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/ecc841b6
Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/tree/ecc841b6
Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/diff/ecc841b6

Branch: refs/heads/master
Commit: ecc841b68499e1310f8c9fb3f9d57bf642611c56
Parents: 19306fb
Author: Jim Gomes <jgomes@apache.org>
Authored: Wed Jul 8 17:40:43 2015 +0000
Committer: Jim Gomes <jgomes@apache.org>
Committed: Wed Jul 8 17:40:43 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/ecc841b6/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