Re: What's missing/wrong in these test programs?

2015-04-12 Thread Svante Signell
Thanks for looking into this :) On Sun, 2015-04-12 at 20:19 +0200, Samuel Thibault wrote: Hello, Svante Signell, le Fri 10 Apr 2015 13:58:23 +0200, a écrit : One strange thing with these programs (without proc_user/server_identify() enabled) is: - auth_socket_send/recv.c reports

Re: What's missing/wrong in these test programs?

2015-04-12 Thread Samuel Thibault
Hello, Svante Signell, le Fri 10 Apr 2015 13:58:23 +0200, a écrit : New test programs: auth_socket_send/recv.c ident_socket_send/recv.c (change if 0 to if 1 to activate proc_user/server_identify()) They look fine. There is just one thing: AIUI, on the sender side, instead of inserting a send

Re: What's missing/wrong in these test programs?

2015-04-08 Thread Samuel Thibault
Svante Signell, le Wed 08 Apr 2015 21:56:36 +0200, a écrit : New try, now with sendmsg/recvmsg. Ah, I hadn't read your source code when answering on IRC. How to send the rendzevous port: as real data or ancillary data? None of those two: real data wouldn't actually transfer the port, and as

What's missing/wrong in these test programs?

2015-04-08 Thread Svante Signell
Hi, I'm trying to write test programs for auth_user/server_authenticate (and later for proc_user/server_authenticate) and have problems to get them right. The attached programs generate the following output: ./auth_recv ./auth_send auth_recv.c: Socket file descriptor = 3 auth_recv.c: Receiving

Re: What's missing/wrong in these test programs?

2015-04-08 Thread Svante Signell
On Wed, 2015-04-08 at 10:12 +0200, Svante Signell wrote: Hi, I'm trying to write test programs for auth_user/server_authenticate (and later for proc_user/server_authenticate) and have problems to get them right. The attached programs generate the following output: ./auth_recv ./auth_send