Skip to content

Commit a353a21

Browse files
author
Simon MacMullen
committed
Merge bug24284
2 parents e7c86b3 + 37a1b09 commit a353a21

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

docs/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ DB2PDF_OPTIONS=\
1212
-V %generate-article-toc% \
1313
-V %generate-article-titlepage-on-separate-page%
1414

15-
all: delete-unpacked-pyle unpack-pyle start-pyle targets
16-
cat pyle.log
17-
make delete-unpacked-pyle
15+
all: delete-unpacked-pyle unpack-pyle start-pyle
16+
OK=true && \
17+
{ make targets || OK=false; } && \
18+
cat pyle.log && \
19+
make delete-unpacked-pyle && \
20+
$$OK
1821

1922
bundle:
2023
make all

projects/client/RabbitMQ.Client/src/client/api/SslOption.cs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,28 @@ public string CertPassphrase
9393
set { m_certPass = value; }
9494
}
9595

96+
private X509CertificateCollection m_certs;
9697

97-
///<summary>Convenience read-only property to retrieve an X509CertificateCollection
98-
///containing the client certificate</summary>
98+
///<summary>Retrieve or set the X509CertificateCollection
99+
///containing the client certificate. If no collection is set,
100+
///the client will attempt to load one from the specified
101+
///CertPath.</summary>
99102
public X509CertificateCollection Certs
100103
{
101-
get {
102-
if(m_certPath == "") {
104+
get {
105+
if (m_certs != null) {
106+
return m_certs;
107+
} else if (m_certPath == "") {
103108
return null;
104109
} else {
105110
X509CertificateCollection c = new X509CertificateCollection();
106111
c.Add(new X509Certificate2(m_certPath, m_certPass));
107112
return c;
108113
}
109114
}
115+
set {
116+
m_certs = value;
117+
}
110118
}
111119

112120
private string m_serverName;

0 commit comments

Comments
 (0)