<div dir="ltr">Thankyou for the suggestions. After correcting few options the "ClientHello" goes successfully but we have failure in "DTLSv1_listen". There are'nt any cookies in the Client Hello request.<div>But DTLSv1_listen return error and the failure in see is in "SSLerr(SSL_F_DTLSV1_LISTEN, SSL_R_COOKIE_GEN_CALLBACK_FAILURE);"</div><div><br></div><div>We are using 1.1.0f version. Is there a way we can disable cookies?</div><div><br></div><div>Thanks,</div><div>Grace<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 27, 2017 at 12:39 PM, Grace Priscilla Jero <span dir="ltr"><<a href="mailto:grace.priscilla@gmail.com" target="_blank">grace.priscilla@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Matt,<div><br></div><div>SSL_get_error()  returns 5. </div><div>It is the same socket using which the UDP connection is established.</div><div>Could you suggest some logging that can be done for OPENSSL.</div><div><br></div><div>Thanks,</div><div>Grace</div><div><div class="gmail-h5"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 26, 2017 at 9:23 PM, Matt Caswell <span dir="ltr"><<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_-4136005685199232416gmail-"><br>
<br>
On 26/10/17 16:43, Grace Priscilla Jero wrote:<br>
> Thankyou for the responses.<br>
> We figured the issue. But now we are getting error -5 from "SSL_connect"<br>
> and the errno is set to 22 which means invalid argument.<br>
> Is there a easy way to debug or get logs for SSL_connect.<br>
><br>
> Below is the sequence for the dtls udp connect that we are trying.<br>
> ssl = SSL_new(ctx)<br>
> bio = BIO_new_dgram(sock_id,BIO_NOCL<wbr>OSE)<br>
> SSL_set_bio(ssl, bio, bio);<br>
> VI_res = SSL_connect(ssl)<br>
<br>
</span>Do you really mean SSL_connect() returns -5? Or do you mean that after a<br>
negative return value from SSL_connect() you call SSL_get_error() and<br>
that return 5 (SSL_ERROR_SYSCALL)?<br>
<br>
If you really mean SSL_connect() returns -5 then you need to call<br>
SSL_get_error() as a next step.<br>
<br>
If you are getting SSL_ERROR_SYSCALL then my guess is that there is a<br>
problem with sock_id. How do create it?<br>
<br>
Matt<br>
<span class="gmail-m_-4136005685199232416gmail-"><br>
<br>
><br>
><br>
><br>
> Thanks,<br>
> Grace<br>
><br>
> On Tue, Oct 24, 2017 at 4:07 PM, Matt Caswell <<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a><br>
</span><span class="gmail-m_-4136005685199232416gmail-">> <mailto:<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a>>> wrote:<br>
><br>
><br>
><br>
>     On 24/10/17 11:25, Grace Priscilla Jero wrote:<br>
>     > We are using SSL_accept to accept the connection for which we see the<br>
>     > failure. Please let know if you have any thoughts.<br>
><br>
>     Have you set the wbio correctly? Does SSL_get_wbio() return your wbio<br>
>     object if you call it immediately before SSL_do_handshake()?<br>
><br>
>     Matt<br>
><br>
>     --<br>
>     openssl-users mailing list<br>
>     To unsubscribe:<br>
>     <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mailm<wbr>an/listinfo/openssl-users</a><br>
</span>>     <<a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mail<wbr>man/listinfo/openssl-users</a>><br>
<div class="gmail-m_-4136005685199232416gmail-HOEnZb"><div class="gmail-m_-4136005685199232416gmail-h5">><br>
><br>
><br>
><br>
--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/mailma<wbr>n/listinfo/openssl-users</a><br>
</div></div></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div></div>