OpenSSL Dragino Yun Issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 02/09/16 09:15, Nikola Milev wrote:
> Matt,
> 
> I have not compiled it myself. Compiling simpler applications for my
> Dragino Yun shield is complicated enough.
> 
> One thing that did come to mind was: could the cross compilation for
> Dragino be messing with the program in any way? Also quite new in all of it.


Possibly, but I'm not familiar with Dragino so I can't really comment.

> 
> Back to OpenSSL, are there any additional settings that could have
> caused the error?

None that spring to mind.

> 
> Also, I have a question about this issue on Stack Overflow. If we
> resolve the issue, I think it would be good to post it there as an
> answer, if you agree.

Sure.

If you are unable to compile OpenSSL and it doesn't have debugging
symbols then its going to be difficult to take the diagnosis of this
problem much further.

An alternative solution for you might be a "workaround". Rather than
calling BIO_do_accept(), you could create the socket yourself directly
(i.e. not using the BIO calls). Once you have the have the socket file
descriptor you can create a BIO from it using BIO_new_socket().

Matt


> Best regards,
> Nikola
> 
> 
> On Sep 2, 2016 9:51 AM, "Matt Caswell" <matt at openssl.org
> <mailto:matt at openssl.org>> wrote:
> 
> 
> 
>     On 01/09/16 12:36, Nikola Milev wrote:
>     >     listenfd = socket (AF_INET, SOCK_STREAM, PROTOCOL);
>     >     if(listenfd < 0)
>     >     {
>     >         exit_msg("socket() error");
>     >     }
> 
>     The fact that this worked suggests that maybe we aren't sending what we
>     think we are sending as the parameters to the equivalent socket call in
>     OpenSSL. Either that or something really weird is happening that causes
>     it to fail when called from OpenSSL, but not from a standalone program!!
> 
>     Did you compile OpenSSL yourself, or are you using pre-built binaries?
>     If you compiled it yourself then I could provide you with a small patch
>     to instrument the code to figure out what parameters are being sent to
>     "socket"...either that or you could take a look at it in a debugger if
>     it has been compiled with debugging symbols.
> 
>     Matt
> 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux