+Thu May 10 22:49:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
+
+ * Compiled the SILC under cygwin. Compiled and tested briefly
+ without problems. More tests needed. The SIMs didn't compile
+ though.
+
+ * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
+
+ * Fixed possible crash in silc_get_username in the
+ lib/silcutil/silcutil.c.
+
Tue May 8 09:04:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
* Fixed a va_arg in silc/client_ops.c.
pos = silc_rng_get_position(rng);
silc_rng_xor(rng, clock(), 0);
+#ifdef HAVE_GETPID
silc_rng_xor(rng, getpid(), 1);
+#ifdef HAVE_GETPGID
silc_rng_xor(rng, getpgid(getpid() << 8), 2);
silc_rng_xor(rng, getpgid(getpid() << 8), 3);
+#endif
silc_rng_xor(rng, getgid(), 4);
+#endif
+#ifdef HAVE_GETPGRP
silc_rng_xor(rng, getpgrp(), 5);
+#endif
+#ifdef HAVE_GETSID
silc_rng_xor(rng, getsid(getpid() << 16), 6);
+#endif
silc_rng_xor(rng, times(&ptime), 7);
silc_rng_xor(rng, ptime.tms_utime, 8);
silc_rng_xor(rng, (ptime.tms_utime + ptime.tms_stime), pos++);
silc_rng_xor(rng, (ptime.tms_cutime + ptime.tms_stime), pos++);
silc_rng_xor(rng, (ptime.tms_stime << 8), pos++);
silc_rng_xor(rng, clock() << 4, pos++);
+#ifdef HAVE_GETPGID
silc_rng_xor(rng, getpgid(getpid() << 8), pos++);
+#endif
+#ifdef HAVE_GETPGRP
silc_rng_xor(rng, getpgrp(), pos++);
+#endif
+#ifdef HAVE_SETSID
silc_rng_xor(rng, getsid(getpid() << 16), pos++);
+#endif
silc_rng_xor(rng, times(&ptime), pos++);
silc_rng_xor(rng, ptime.tms_utime, pos++);
+#ifdef HAVE_GETPGRP
silc_rng_xor(rng, getpgrp(), pos++);
+#endif
#ifdef SILC_RNG_DEBUG
SILC_LOG_HEXDUMP(("pool"), rng->pool, sizeof(rng->pool));