t0x1c
t0x1c
Update: I could do more debugging but I'm stuck with RNG issues in debug build. random.c, wc_RNG_HealthTestLocal() fails: **line 1314:** ret = wc_RNG_HealthTest(0, seedB, sizeof(seedB_data), .... // this returns 0...
Ok, found RNG problem - looks like machine endianness is configured during config time, so if I include source code directly, endianness is not detected properly in compile time, so...
Yeah, I've discovered this variable and applied it. With endianness fixed, SHA and RNG work fine and context gets created, however it fails to establish SSL connection, having various socket-related...
Ok, I made a debug build, but it works fine in debug mode. So this error only occurs in release which I can't debug. So this is something related to...
Here's full info on the compiler used: ``` ~:root> gcc -dumpspecs *asm: --traditional-format %{v:-V} %{Qy:} %{!Qn:-Qy} %{Ym,*} -s %(asm_cpu) %(asm_arch) %{fpie|fPIE|fpic|fPIC:-K PIC} *asm_debug: %{%:debug-level-gt(0):%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}} %{fdebug-prefix-map=*:--debug-prefix-map %*} *asm_final: %{gsplit-dwarf: objcopy --extract-dwo...
@dgarske , @SparkiDev I've found one of the places, but there may be others. It's just as I thought - unaligned access. compare_InternalTickets in CreateTicket() casts byte array to InternalTicket...
To progress past this problem, I made a quick workaround by wrapping InternalTicket struct definition in **#pragma pack(push, 1)** / **#pragma pack(pop)**, so the compiler could generate guard code for...
This struct has packing of 4 already because it contains word32 members. Marking it as pack-1 tells compiler it can be unaligned. Anyway, I used this approach for testing only...
David, I tried to compile wolfssl from your tick_pad - problem seems to be resolved. Though I was not able install it from the source code package obtained on github...
Oh, my bad. Thanks for info!