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