You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2017/03/08 23:12:22 UTC
[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
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 <jg...@apache.org>
Authored: Wed Jul 8 17:40:43 2015 +0000
Committer: Jim Gomes <jg...@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();
}