summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Clayton <alex.clayton@isode.com>2016-03-14 10:30:10 (GMT)
committerAlex Clayton <alex.clayton@isode.com>2016-03-14 15:49:41 (GMT)
commit63a5013833f0be3aac1d15df1ac200d48d747136 (patch)
treebb666ea074afed18ccbc114acd367e5dde2204a5 /src
parentde2704f8dfd9b807b37e72e61f2042a5e71227c5 (diff)
downloadstroke-63a5013833f0be3aac1d15df1ac200d48d747136.zip
stroke-63a5013833f0be3aac1d15df1ac200d48d747136.tar.bz2
Add getter for TLSContext in TLSConnection.
As per patch 4a6950af0f324091553f7ab7271de45721b8667f (Rest of patch is for implementing TLS on OSX so no need to port). Test-information: Code inspection. Unit tests still all pass ok. Change-Id: I62b2f32f3cba0caa7db84f2806cd49b1a7a202e4
Diffstat (limited to 'src')
-rw-r--r--src/com/isode/stroke/network/TLSConnection.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/isode/stroke/network/TLSConnection.java b/src/com/isode/stroke/network/TLSConnection.java
index a67f20d..d64f88b 100644
--- a/src/com/isode/stroke/network/TLSConnection.java
+++ b/src/com/isode/stroke/network/TLSConnection.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2015 Isode Limited.
+ * Copyright (c) 2011-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -123,6 +123,10 @@ public class TLSConnection extends Connection {
public HostAddressPort getLocalAddress() {
return connection.getLocalAddress();
}
+
+ public TLSContext getContext() {
+ return context;
+ }
private void handleRawConnectFinished(boolean error) {
if (onConnectFinished != null) {