Skip to content

Commit

Permalink
Only negotiate SSLIOP if it is required by a peer
Browse files Browse the repository at this point in the history
  • Loading branch information
n1hility committed Apr 7, 2016
1 parent bdd2b14 commit 96612f7
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -136,7 +136,10 @@ public CDRInputStream run() {
}
});
in.consumeEndian();
return SSLHelper.read(in);
SSL ssl = SSLHelper.read(in);

// HACK: Previous versions advertise they support SSL when they do not
return ssl.target_requires > 0 ? ssl : null;
}

private TransportAddress selectSSLTransportAddress(IOR ior) {
Expand Down

0 comments on commit 96612f7

Please sign in to comment.