<div dir="ltr"><div>Hello openssl-ers,<br><br></div>Anyone knows what does OPENSSL_SYS_VOS macro means?<br><br>I'm building OpenSSL (1.0.1l) for Vxworks and I when I ran some tests I got some errors while generating a new session ID because it seems it is running out of entropy in the entropy pool. I've been looking into the code and I have observed that, in the end, my entropy pool is being filled by calling the ssleay_rand_add() function in file crypto/rand/md_rand.c:<br><br><span style="font-family:monospace,monospace">435 #if MD_DIGEST_LENGTH > 20<br>436 # error "Please adjust DUMMY_SEED."<br>437 #endif<br>438<br>439 #define DUMMY_SEED "...................." /* at least MD_DIGEST_LENGTH */<br>440             /* Note that the seed does not matter, it's just that<br>441              * ssleay_rand_add expects to have something to hash. */<br><b>442             ssleay_rand_add(DUMMY_SEED, MD_DIGEST_LENGTH, 0.0);</b></span><br clear="all"><div><div><br></div><div>I don't know why the 0.0 parameter, since we are not adding anything here I never get more entropy in the pool. Any explanation for this 0.0?<br><br></div><div>I realized then the RAND_poll() function in the crypto/rand/rand_unix.c file:<br><br><span style="font-family:monospace,monospace">426 #if defined(OPENSSL_SYS_VXWORKS)<br>427 int RAND_poll(void)<br>428     {<br>429     return 0;<br>430     }<br>431 #endif</span><br></div><div><br></div><div>I'm confused about this, but I also realized that, surrounded by #if defined(OPENSSL_SYS_VOS) there is a nice implementation of the RAND_poll(), so I built my library using it and now it seems to work. So, going back to the main question, does anybody knows what is the OPENSSL_SYS_VOS and for what is it used? And for some extra points, why that RAND_poll for vxworks...<br><br></div><div>I'll keep investigating in all this.<br><br></div><div>Thank you in advance,<br><br></div><div>Best regards,<br><br></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><p><span style="font-size:10pt"><img src="cid:image001.png@01CEA80C.3A1239F0" alt="RTI" height="58" width="153"></span><span style="font-size:10pt" lang="ES"></span></p><p><b><span style="font-size:10pt;color:rgb(0,112,192)" lang="ES">David Luengo López</span></b></p></div></div>
</div></div></div>