<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><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-"><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_<wbr>NOCLOSE)<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-"><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">matt@openssl.org</a><br>
</span><span class="gmail-">> <mailto:<a href="mailto:matt@openssl.org">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/<wbr>mailman/listinfo/openssl-users</a><br>
</span>>     <<a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><wbr>><br>
<div class="gmail-HOEnZb"><div class="gmail-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/<wbr>mailman/listinfo/openssl-users</a><br>
</div></div></blockquote></div><br></div></div></div>