Skip to content

Commit aa9f3ed

Browse files
author
Emile Joubert
committed
Merged bug24080 into default
2 parents d398d75 + a353a21 commit aa9f3ed

File tree

6 files changed

+27
-19
lines changed

6 files changed

+27
-19
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ ensure-docs: rabbit-vsn
4646
doc: rabbit-vsn ensure-prerequisites ensure-release-dir ensure-docs
4747
rm -rf build/tmpdoc build/doc
4848
mkdir -p build/tmpdoc/html build/tmpdoc/xml
49-
unzip -j ${RELEASE_DIR}/${NAME_VSN}-client-htmldoc.zip -d build/tmpdoc/html
50-
unzip -j ${RELEASE_DIR}/${NAME_VSN}-tmp-xmldoc.zip -d build/tmpdoc/xml
49+
unzip -q -j ${RELEASE_DIR}/${NAME_VSN}-client-htmldoc.zip -d build/tmpdoc/html
50+
unzip -q -j ${RELEASE_DIR}/${NAME_VSN}-tmp-xmldoc.zip -d build/tmpdoc/xml
5151
cd docs && ./api-guide.sh && \
5252
mv api-guide.pdf ../${RELEASE_DIR}/${NAME_VSN}-api-guide.pdf
5353
$(MAKE) -C docs
@@ -56,9 +56,9 @@ doc: rabbit-vsn ensure-prerequisites ensure-release-dir ensure-docs
5656
${RELEASE_DIR}/${NAME_VSN}-wcf-service-model.pdf
5757
cd ${RELEASE_DIR} && \
5858
rm -rf ${NAME_VSN}-htmldoc && \
59-
unzip ${NAME_VSN}-client-htmldoc.zip -d ${NAME_VSN}-client-htmldoc && \
59+
unzip -q ${NAME_VSN}-client-htmldoc.zip -d ${NAME_VSN}-client-htmldoc && \
6060
rm -rf ${NAME_VSN}-wcf-htmldoc && \
61-
unzip ${NAME_VSN}-wcf-htmldoc.zip -d ${NAME_VSN}-wcf-htmldoc
61+
unzip -q ${NAME_VSN}-wcf-htmldoc.zip -d ${NAME_VSN}-wcf-htmldoc
6262

6363
clean:
6464
rm -rf $(RELEASE_DIR)/*

dist-msi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ function build-msm-msi {
102102
function get-sources {
103103
safe-rm-deep-dir tmp/unzip
104104
mkdir -p tmp/unzip
105-
unzip $RELEASE_DIR/$NAME_VSN-dotnet-2.0.zip -d tmp/unzip/$NAME_VSN-dotnet-2.0
106-
unzip $RELEASE_DIR/$NAME_VSN-client-htmldoc.zip -d tmp/unzip/$NAME_VSN-client-htmldoc
105+
unzip -q $RELEASE_DIR/$NAME_VSN-dotnet-2.0.zip -d tmp/unzip/$NAME_VSN-dotnet-2.0
106+
unzip -q $RELEASE_DIR/$NAME_VSN-client-htmldoc.zip -d tmp/unzip/$NAME_VSN-client-htmldoc
107107
cp $RELEASE_DIR/$NAME_VSN-api-guide.pdf tmp/unzip/
108108
cp $RELEASE_DIR/$NAME_VSN-user-guide.pdf tmp/unzip/
109109
}

dist.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function src-dist {
169169
mkdir tmp/srcdist
170170
mv tmp/$NAME_VSN tmp/srcdist/
171171
cd tmp/srcdist
172-
zip -r ../../$RELEASE_DIR/$NAME_VSN.zip . -x \*.snk \*.resharper \*.csproj.user
172+
zip -q -r ../../$RELEASE_DIR/$NAME_VSN.zip . -x \*.snk \*.resharper \*.csproj.user
173173
cd ../..
174174

175175
### Remove tmp/srcdist
@@ -197,14 +197,14 @@ function dist-target-framework {
197197
mkdir -p tmp/dist/bin tmp/dist/projects/examples
198198

199199
### Clean
200-
$MSBUILD RabbitMQDotNetClient.sln /t:Clean /property:Configuration="Release"
200+
$MSBUILD /verbosity:quiet RabbitMQDotNetClient.sln /t:Clean /property:Configuration="Release"
201201

202202
### Copy examples code to be zipped to tmp/dist/
203203
cp -r projects/examples/client tmp/dist/projects/examples/
204204
test "$BUILD_WCF" && cp -r projects/examples/wcf tmp/dist/projects/examples/
205205

206206
### Build
207-
$MSBUILD RabbitMQDotNetClient.sln /t:Build /property:Configuration="Release"
207+
$MSBUILD /verbosity:quiet RabbitMQDotNetClient.sln /t:Build /property:Configuration="Release"
208208

209209
### Copy bin files to be zipped to tmp/dist/
210210
cp projects/client/RabbitMQ.Client/build/bin/RabbitMQ.Client.xml tmp/dist/bin/
@@ -217,7 +217,7 @@ function dist-target-framework {
217217

218218
### Zip tmp/dist
219219
cd tmp/dist
220-
zip -r ../../$RELEASE_DIR/$NAME_VSN-$TARGET_FRAMEWORK.zip .
220+
zip -q -r ../../$RELEASE_DIR/$NAME_VSN-$TARGET_FRAMEWORK.zip .
221221
cd ../..
222222

223223
### Remove tmp/dist
@@ -269,7 +269,7 @@ function gendoc-dist {
269269
### Zip ndocproc's output
270270
if [ "$ZIP_TMP_XML_DOC_FILENAME" ]; then
271271
cd tmp/gendoc/xml
272-
zip -r ../../../$RELEASE_DIR/$ZIP_TMP_XML_DOC_FILENAME .
272+
zip -q -r ../../../$RELEASE_DIR/$ZIP_TMP_XML_DOC_FILENAME .
273273
cd ../../..
274274
fi
275275

@@ -285,7 +285,7 @@ function gendoc-dist {
285285

286286
### Zip tmp/gendoc
287287
cd tmp/gendoc
288-
zip -r ../../$RELEASE_DIR/$ZIP_DESTINATION_FILENAME .
288+
zip -q -r ../../$RELEASE_DIR/$ZIP_DESTINATION_FILENAME .
289289
cd ../..
290290

291291
### Remove tmp/gendoc

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $(MANDIR)/%.pdf: %-skeleton.xml
4949
mv $(TMPDIR)/$*.pdf $(MANDIR)
5050

5151
unpack-pyle:
52-
unzip ../tools/pyle2-snapshot-20080107.zip
52+
unzip -q ../tools/pyle2-snapshot-20080107.zip
5353
cp pyle2-config.py pyle2-snapshot-20080107/Config.py
5454

5555
delete-unpacked-pyle: stop-pyle

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;

tools/check-distribution

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ mv $NET11ZIP $NET11ZIP.asc $NET20ZIP $NET20ZIP.asc $UPLOAD_ROOT/releases/binary
194194
mv $SRCZIP $SRCZIP.asc $UPLOAD_ROOT/releases/source
195195
mv *.pdf $COREDOCZIP $COREDOCZIP.asc $WCFDOCZIP $WCFDOCZIP.asc $UPLOAD_ROOT/releases/doc/rabbitmq-dotnet-$RELEASE_TAG
196196
cd $UPLOAD_ROOT/releases/doc/rabbitmq-dotnet-$RELEASE_TAG
197-
unzip $COREDOCZIP
198-
unzip $WCFDOCZIP
197+
unzip -q $COREDOCZIP
198+
unzip -q $WCFDOCZIP
199199
cd /tmp
200200
rm $TMPDIRNAME/installfiles
201201
rmdir $TMPDIRNAME

0 commit comments

Comments
 (0)