Re: [dev] sj: bug in receiving presence

2015-12-10 Thread Greg Reagle
On 12/09/2015 07:10 PM, Jan Klemkow wrote: I committed your diff for presenced with a following clean up. But maybe, I will change the presenced semantic a bit. But for the moment I fixes the daemon in a very good way. Thanks for your help! My pleasure. Changing the semantics in what way?

Re: [dev] sj: bug in receiving presence

2015-12-09 Thread Jan Klemkow
I committed your diff for presenced with a following clean up. But maybe, I will change the presenced semantic a bit. But for the moment I fixes the daemon in a very good way. Thanks for your help! bye, Jan On Tue, Dec 08, 2015 at 01:57:26PM -0500, Greg Reagle wrote: > In this message, I point

Re: [dev] sj: bug in receiving presence

2015-12-09 Thread Jan Klemkow
Hi Greg, presenced was the last daemon I wrote just before the slcon2. Its just a short hack, that I didn't check to run correctly in real usage :-) Thanks for the diffs. I'll have a look at them tonight. Because I am busy now. But it looks good, beside of a few stylistic things. bye, Jan O

Re: [dev] sj: bug in receiving presence

2015-12-08 Thread Greg Reagle
I fixed the problem. I want to clean up and test my modification some more before I submit it.

[dev] sj: bug in receiving presence

2015-12-08 Thread Greg Reagle
In this message, I point out the error and state the correct way of receiving presence. FRIGN, please don't call me a help vampire. :> I do plan to write the patch, but it might take me a little while. Re: https://github.com/younix/sj in presenced.c in recv_presence(), lines 254-255 stat

Re: [dev] sj: explicit tlsc doesn't work

2015-12-03 Thread Jan Klemkow
On Thu, Dec 03, 2015 at 03:23:16PM -0500, Matthew of Boswell wrote: > On Tue, 1 Dec 2015 10:37:44 -0500 > Greg Reagle wrote: > > > but that doesn't work for me. I have to omit tlsc. It seems to be > > called automatically. Am I doing something wrong or does the man page > > need to be correc

Re: [dev] sj: explicit tlsc doesn't work

2015-12-03 Thread Jan Klemkow
Hi Greg, Sorry for the late answer, but I was busy the last days. On Tue, Dec 01, 2015 at 10:37:44AM -0500, Greg Reagle wrote: > Thanks to the recent updates to sj[1] and ucspi-tools[2], sj is now easier > to build. > > The man page for sj has this > > EXAMPLES > tcpclient example.org 5223

Re: [dev] sj: explicit tlsc doesn't work

2015-12-03 Thread Matthew of Boswell
On Tue, 1 Dec 2015 10:37:44 -0500 Greg Reagle wrote: > but that doesn't work for me. I have to omit tlsc. It seems to be > called automatically. Am I doing something wrong or does the man page > need to be corrected? I think it's a combination. I got it working around the same time you did

[dev] sj: explicit tlsc doesn't work

2015-12-01 Thread Greg Reagle
Thanks to the recent updates to sj[1] and ucspi-tools[2], sj is now easier to build. The man page for sj has this EXAMPLES tcpclient example.org 5223 tlsc sj -u user -s example.org but that doesn't work for me. I have to omit tlsc. It seems to be called automatically. Am I doing somet

[dev] sj success!

2015-11-23 Thread Greg Reagle
It works! I am having a chat between Pidgin and sj. On 11/23/2015 12:23 PM, Jan Klemkow wrote: On Mon, Nov 23, 2015 at 11:40:35AM -0500, Greg Reagle wrote: On 11/23/2015 11:34 AM, Jan Klemkow wrote: The tls certificate verification failed. Turn it off with the following environment variable:

Re: [dev] sj

2015-11-23 Thread Jan Klemkow
On Mon, Nov 23, 2015 at 11:40:35AM -0500, Greg Reagle wrote: > On 11/23/2015 11:34 AM, Jan Klemkow wrote: > >The tls certificate verification failed. Turn it off with the following > >environment variable: > > > >export TLSC_NO_VERIFICATION=1 > > That prevented the error message. It still doesn'

Re: [dev] sj

2015-11-23 Thread Greg Reagle
On 11/23/2015 11:34 AM, Jan Klemkow wrote: The tls certificate verification failed. Turn it off with the following environment variable: export TLSC_NO_VERIFICATION=1 That prevented the error message. It still doesn't seem to be working. Want to try to work on it together via IRC?

Re: [dev] sj

2015-11-23 Thread Jan Klemkow
On Mon, Nov 23, 2015 at 10:52:24AM -0500, Greg Reagle wrote: > I did build thusly: > > installed version 1:0.88-3 of ucspi-tcp: > http://packages.ubuntu.com/trusty/ucspi-tcp > > built and installed https://github.com/libressl-portable/portable > > cloned https://github.com/younix/ucspi, then com

Re: [dev] sj

2015-11-23 Thread Greg Reagle
I did build thusly: installed version 1:0.88-3 of ucspi-tcp: http://packages.ubuntu.com/trusty/ucspi-tcp built and installed https://github.com/libressl-portable/portable cloned https://github.com/younix/ucspi, then commented out ERR_get_error and ERR_error_string, built, installed cloned

Re: [dev] sj: libressl

2015-11-23 Thread Greg Reagle
On 11/23/2015 09:42 AM, Greg Reagle wrote: > Hello. I am using Ubuntu 14.04. I assume that I need libressl/libtls > in order for sj (tlsc) to work. It is not a package in the Ubuntu > repositories. Where should I get it to build it? To answer my own question: https://github.com/libressl-porta

[dev] sj: libressl

2015-11-23 Thread Greg Reagle
Hello. I am using Ubuntu 14.04. I assume that I need libressl/libtls in order for sj (tlsc) to work. It is not a package in the Ubuntu repositories. Where should I get it to build it?

Re: [dev] sj: ucspi

2015-11-22 Thread Jan Klemkow
On Sun, Nov 22, 2015 at 02:20:51AM -0500, Matthew of Boswell wrote: > On Sun, 22 Nov 2015 03:21:12 +0100 > Jan Klemkow wrote: > > I implemented STARTTLS. But there is a hard coded hack, that there is > > no certificate verification at the moment. I have to find a way to give > > options through

Re: [dev] sj: ucspi

2015-11-21 Thread Matthew of Boswell
On Sun, 22 Nov 2015 03:21:12 +0100 Jan Klemkow wrote: > Hey, > > I implemented STARTTLS. But there is a hard coded hack, that there is > no certificate verification at the moment. I have to find a way to give > options through sj to tlsc. But, I think that this is a good way to > handle this p

Re: [dev] sj: ucspi

2015-11-21 Thread Jan Klemkow
Hey, I implemented STARTTLS. But there is a hard coded hack, that there is no certificate verification at the moment. I have to find a way to give options through sj to tlsc. But, I think that this is a good way to handle this problem. After STARTTLS negotiation sj starts tlsc with its own argu

Re: [dev] sj: ucspi

2015-11-20 Thread Jan Klemkow
Hi, Thanks for testing my jabber client and sorry for its inconvenience. yes, STARTTLS is not implemented at the moment. I use jabber.ccc.de for testing, cause they use the Port 5223 for TLS which is not recommend. I will implement STARTSSL in the near future, stay tuned. sslc(1) is the legacy

Re: [dev] sj: ucspi

2015-11-19 Thread Matthew of Boswell
On Thu, 19 Nov 2015 15:14:06 -0500 Greg Reagle wrote: > On 11/19/2015 03:11 PM, Matthew of Boswell wrote: > > Note, however, that it did not work with sj. I think the reason is that > > xmpp port 5222 is a STARTTLS port, not a straight SSL port. > > Maybe that's why the example in the man page

Re: [dev] sj: ucspi

2015-11-19 Thread Greg Reagle
On 11/19/2015 03:11 PM, Matthew of Boswell wrote: Note, however, that it did not work with sj. I think the reason is that xmpp port 5222 is a STARTTLS port, not a straight SSL port. Maybe that's why the example in the man page of sj uses port 5223, expecting that to be a straight SSL port.

Re: [dev] sj: ucspi

2015-11-19 Thread Matthew of Boswell
On Thu, 19 Nov 2015 15:02:23 -0500 Greg Reagle wrote: > On 11/19/2015 02:54 PM, Matthew of Boswell wrote: > > Then I realized that of course, I need encryption... > > > > # tcpclient dukgo.com 5222 ./sslc ../sj/sj -u gnuman -s dukgo.com -r\ > > resources -d /home/matt/.xmpp > > What is sslc?

Re: [dev] sj: ucspi

2015-11-19 Thread Greg Reagle
On 11/19/2015 03:02 PM, Greg Reagle wrote: > What is sslc? Where do I get it? Answering my own question: https://github.com/younix/ucspi

Re: [dev] sj: ucspi

2015-11-19 Thread Greg Reagle
On 11/19/2015 02:54 PM, Matthew of Boswell wrote: Then I realized that of course, I need encryption... # tcpclient dukgo.com 5222 ./sslc ../sj/sj -u gnuman -s dukgo.com -r\ resources -d /home/matt/.xmpp What is sslc? Where do I get it?

Re: [dev] sj: ucspi

2015-11-19 Thread Matthew of Boswell
On Thu, 19 Nov 2015 14:10:19 -0500 Greg Reagle wrote: > Howdy. This is probably obvious to non-newbies so please don't make fun > of me *too* much. > > Anyway, I can compile and run sj but it dies at this line in xmpp_init() > if (write(WRITE_FD, msg, size) < 0) > > which refers to this

Re: [dev] sj: ucspi

2015-11-19 Thread Teodoro Santoni
2015-11-19 20:10 GMT+01:00, Greg Reagle : > Howdy. This is probably obvious to non-newbies so please don't make fun > of me *too* much. > > Anyway, I can compile and run sj but it dies at this line in xmpp_init() > if (write(WRITE_FD, msg, size) < 0) > > which refers to this: > /* ucspi */ >

Re: [dev] sj: ucspi

2015-11-19 Thread Greg Reagle
I think I figured it out. I have to use it with tcpclient. Something like tcpclient jabber.org 5222 ./sj -u johndoe -s jabber.org perhaps.

[dev] sj: ucspi

2015-11-19 Thread Greg Reagle
Howdy. This is probably obvious to non-newbies so please don't make fun of me *too* much. Anyway, I can compile and run sj but it dies at this line in xmpp_init() if (write(WRITE_FD, msg, size) < 0) which refers to this: /* ucspi */ #define WRITE_FD 7 #define READ_FD 6 but these file