diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/isode/stroke/client/CoreClient.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/isode/stroke/client/CoreClient.java b/src/com/isode/stroke/client/CoreClient.java index 453307e..eca9fda 100644 --- a/src/com/isode/stroke/client/CoreClient.java +++ b/src/com/isode/stroke/client/CoreClient.java @@ -420,7 +420,7 @@ public class CoreClient { * @return the peer certificate, if one is available, otherwise null. */ public Certificate getSessionCertificate() { - return (sessionStream_ == null ? null : sessionStream_.getPeerCertificate()); + return (isSessionTLSEncrypted() ? sessionStream_.getPeerCertificate() : null); } |