Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Matt Caswell
On 06/04/18 00:19, Varun Kulkarni wrote: > > > On Thu, Apr 5, 2018 at 4:03 PM, Matt Caswell > wrote: > > > > On 05/04/18 23:37, Varun Kulkarni wrote: > > > > > Thanks for the reply Matt. Previosuly , I did the exact thing you > > mentioned. But in t

Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Varun Kulkarni
On Thu, Apr 5, 2018 at 4:03 PM, Matt Caswell wrote: > > > On 05/04/18 23:37, Varun Kulkarni wrote: > > > > > Thanks for the reply Matt. Previosuly , I did the exact thing you > > mentioned. But in that case , the DTLSV1_listen returns succesfully (> > > 0) immediately on reception of > > app pack

Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Varun Kulkarni
On Thu, Apr 5, 2018 at 4:03 PM, Matt Caswell wrote: > > > On 05/04/18 23:37, Varun Kulkarni wrote: > > > > > Thanks for the reply Matt. Previosuly , I did the exact thing you > > mentioned. But in that case , the DTLSV1_listen returns succesfully (> > > 0) immediately on reception of > > app pack

Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Matt Caswell
On 05/04/18 23:37, Varun Kulkarni wrote: > > Thanks for the reply Matt. Previosuly , I did the exact thing you > mentioned. But in that case , the DTLSV1_listen returns succesfully (> > 0) immediately on reception of > app packet and hangs on SSL_accept. > > Here is tshark trace of the same: >

Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Varun Kulkarni
On Thu, Apr 5, 2018 at 3:06 PM, Matt Caswell wrote: > > > On 05/04/18 18:53, Varun Kulkarni wrote: > > Hi Matt, > > > > > > I was able to fix the issue with the following changes. The change was > > to create new fd (bound to server address) each time DTLSv1_listen() was > > called. > > There sho

Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Matt Caswell
On 05/04/18 18:53, Varun Kulkarni wrote: > Hi Matt, > > > I was able to fix the issue with the following changes. The change was > to create new fd (bound to server address) each time DTLSv1_listen() was > called. There should be no need to do that. Instead, when DTLSv1_listen returns successf

Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Varun Kulkarni
Hi Matt, I was able to fix the issue with the following changes. The change was to create new fd (bound to server address) each time DTLSv1_listen() was called. Previously, I used the same fd for every DTLSv1_listen call. The new dgram BIO was created with an old fd. On passing newly created fd

Re: [openssl-users] DTLS with multiple clients

2018-04-05 Thread Matt Caswell
Are you able to share a simple reproducer of your problem? Matt On 05/04/18 02:14, Varun Kulkarni wrote: > Hi, > > I was able to get DTLS work with the latest version of openssl with a > single client and server. However, I was unable to get it to work with > multiple clients. The first client c