Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-03-28 Thread Hans-Christoph Steiner
Mark Murphy: > On Mon, Mar 28, 2016, at 07:42, Hans-Christoph Steiner wrote: >>> To help prevent memory leaks, in case clients fail to unregister their >>> callbacks. >> >> I'd prefer to error/warn the user about this rather than reducing the >> impact of doing the wrong thing. I vaguely

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-03-28 Thread Mark Murphy
On Mon, Mar 28, 2016, at 07:42, Hans-Christoph Steiner wrote: > > To help prevent memory leaks, in case clients fail to unregister their > > callbacks. > > I'd prefer to error/warn the user about this rather than reducing the > impact of doing the wrong thing. I vaguely remember seeing such >

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-03-28 Thread Hans-Christoph Steiner
Mark Murphy: > On Fri, Mar 25, 2016, at 05:36, Hans-Christoph Steiner wrote: >> * why did you use the custom WeakSet class rather than just a plain Set? > > To help prevent memory leaks, in case clients fail to unregister their > callbacks. I'd prefer to error/warn the user about this rather

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-03-25 Thread Mark Murphy
On Fri, Mar 25, 2016, at 05:36, Hans-Christoph Steiner wrote: > * why did you use the custom WeakSet class rather than just a plain Set? To help prevent memory leaks, in case clients fail to unregister their callbacks. > * keep things as a JAR as much as possible, not an AAR, i.e. by avoiding >

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-03-25 Thread Hans-Christoph Steiner
Mark Murphy: > On Mon, Mar 21, 2016, at 09:39, Hans-Christoph Steiner wrote: >> As for a plan for integrating this into NetCipher, I'd like to start >> with the HttpURLConnection first, especially the SNI stuff. Ideally, it >> would all fit into the existing TlsOnlySocket* stuff, without the

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-03-21 Thread Hans-Christoph Steiner
Mark Murphy: > On Fri, Feb 26, 2016, at 08:43, Hans-Christoph Steiner wrote: >> I tried a bit using setComponent() and a freshly installed and not >> started Orbot. That did not seem to start it either. > > I have reconfirmed that it is working for me. I had some bugs related to > detecting

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-02-26 Thread Mark Murphy
On Fri, Feb 26, 2016, at 08:43, Hans-Christoph Steiner wrote: > I tried a bit using setComponent() and a freshly installed and not > started Orbot. That did not seem to start it either. Does the "allow other apps to start Orbot" setting come pre-checked? If not, that may be the source of the

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-02-25 Thread Hans-Christoph Steiner
Mark Murphy: > On Thu, Feb 25, 2016, at 08:40, Hans-Christoph Steiner wrote: >> So I guess the key bit there in terms of making the Intent start Orbot >> not matter what its state is the Intent.setComponent() call? > > Sorry, you lost me there. Is Intent.setComponent() the thing that makes the

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-02-25 Thread Hans-Christoph Steiner
Mark Murphy: > On Thu, Feb 25, 2016, at 08:01, Hans-Christoph Steiner wrote: >> Any chance of viewing this in git? > > Not until it gets released. At that point, it will be in my book's > massive repo (https://github.com/commonsguy/cw-omnibus), along with the > rest of my book samples. > >>

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-02-25 Thread Mark Murphy
On Thu, Feb 25, 2016, at 08:01, Hans-Christoph Steiner wrote: > Any chance of viewing this in git? Not until it gets released. At that point, it will be in my book's massive repo (https://github.com/commonsguy/cw-omnibus), along with the rest of my book samples. > I'll start digging into these.

Re: [guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-02-25 Thread Hans-Christoph Steiner
Mark Murphy: > I have written a chapter for _The Busy Coder's Guide to Android > Development_ on the use of NetCipher. Along the way, I wrote integration > code to tie NetCipher into: > > - OkHttp3 (including using it with Retrofit) > - HttpURLConnection > - Apache's independent packaging of

[guardian-dev] NetCipher Book Chapter, and HTTP Stack Integration

2016-02-24 Thread Mark Murphy
I have written a chapter for _The Busy Coder's Guide to Android Development_ on the use of NetCipher. Along the way, I wrote integration code to tie NetCipher into: - OkHttp3 (including using it with Retrofit) - HttpURLConnection - Apache's independent packaging of HttpClient - Volley Here is