On 7/25/2012 3:01 PM, Florian Rüchel wrote:
Hi,

I have a tool which calls RAND_bytes() for a length of 16 bytes while using the CAPI engine and having set it to be used for all purposes. If I run it in my Visual Studio Debugger in executes perfectly, but if run from within a command shell, it hangs on this statement (I localized it with printf statements).
Now I am wondering what might be causing this problem.

Here is my system:
Windows 7 x64 Enterprise
cl: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
link: Microsoft (R) Incremental Linker Version 10.00.30319.01
OpenSSL was compiled with this toolset and so is this program.


I cannot reproduce this problem, i.e. creating a small sample program works perfectly. And since I cannot even debug it, I can't limit or search for the problem.

Any ideas why this might be caused and how I can track it down?


Try putting printf() statements inside RAND_bytes() to narrow it
further (I assume you compile OpenSSL yourself).

Enjoy

Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S.  http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to