TLSv1.1 and TLSv1.2 #362

Fix for issue https://github.com/owncloud/android/issues/362