Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1F020200C58 for ; Thu, 9 Mar 2017 00:12:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1DB00160B8E; Wed, 8 Mar 2017 23:12:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7F14B160B99 for ; Thu, 9 Mar 2017 00:12:05 +0100 (CET) Received: (qmail 7097 invoked by uid 500); 8 Mar 2017 23:12:04 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 5762 invoked by uid 99); 8 Mar 2017 23:12:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2017 23:12:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A58D5F4B65; Wed, 8 Mar 2017 23:12:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tabish@apache.org To: commits@activemq.apache.org Date: Wed, 08 Mar 2017 23:12:21 -0000 Message-Id: <17c7c07975f34c4eb027cc2b11d2c23c@git.apache.org> In-Reply-To: <180f795beb1c4bf99d79e248d7fcfe01@git.apache.org> References: <180f795beb1c4bf99d79e248d7fcfe01@git.apache.org> X-Mailer: ASF-Git Admin Mailer 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) archived-at: Wed, 08 Mar 2017 23:12:07 -0000 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 Authored: Wed Jul 8 17:39:44 2015 +0000 Committer: Jim Gomes 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(); }