DEVRANDOM quoting

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DEVRANDOM quoting

Roumen Petrov
Quoting of DEVRANDOM after DOS DJGPP changes in crypto/rand/rand_unix.c
my break all other platforms, except OpenBSD.
Result is file with name "DEVRANDOM" instead of list defined in e_os.h.


The test case:
=========================================================
#include <string.h>
#include <stdio.h>
#include <openssl/rand.h>

int main(void) {
  fprintf(stderr, "RAND_status=%d\n", RAND_status());
  exit(0);
}
=========================================================
and RAND_status return zero instead of one.


What about for DJGPP Configure to use ....-DDEVRANDOM='/dev/urandom$'....
or to double escaped quotes, i.e.
....-DDEVRANDOM=\"\"/dev/urandom\\x24\"\" .....?


Tested with gcc 3.2.2 on linux.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]