Complete the VxWorks fix by implementing a NULL RAND_poll() for it.
authorRichard Levitte <levitte@openssl.org>
Mon, 14 Oct 2002 09:44:57 +0000 (09:44 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 14 Oct 2002 09:44:57 +0000 (09:44 +0000)
PR: 253

crypto/rand/rand_egd.c
crypto/rand/rand_unix.c

index d7dad3efd02c239e37ed520d6e39938618b86051..53a726e1aabd5590d467fc55558170afa57156f1 100644 (file)
@@ -94,7 +94,7 @@
  *   RAND_egd() is a wrapper for RAND_egd_bytes() with numbytes=255.
  */
 
-#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS)
+#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS)
 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
        {
        return(-1);
index 7de21d37d07acd88f9f566371c1c1579af566e0d..4175576fcc92d5fab149e4b2afac6dad392f3b44 100644 (file)
@@ -236,3 +236,10 @@ int RAND_poll(void)
 }
 
 #endif
+
+#if defined(OPENSSL_SYS_VXWORKS)
+int RAND_poll(void)
+{
+    return 0;
+}
+#endif