From 63a5013833f0be3aac1d15df1ac200d48d747136 Mon Sep 17 00:00:00 2001 From: Alex Clayton Date: Mon, 14 Mar 2016 10:30:10 +0000 Subject: 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 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) { -- cgit v0.10.2-6-g49f6