To whom it may concern,

I am getting a lot of people asking about openssl on OpenUNIX 8.0.0.  Any
word on when the patches I submitted may be in the distribution or similar
ones.

This patch was for openssl-0.9.6x in February to fix a UnixWare 7.X.X
problem with rand_egd.  Will it make it or something similar make it into
the openssl-0.9.6x source.  I fought all day friday and today trying to
figure-out why I could not read the /var/run/egd-pool device.  I had
assumed that it in the source.  I guess I deserve the (ASSUME - ASS of U n
ME.

Thanks,

--
Boyd Gerber <[EMAIL PROTECTED]>
ZENEZ   3748 Valley Forge Road, Magna Utah  84044
Office 801-250-0795 FAX 801-250-7975
*** crypto/rand/rand_egd.c      Wed Mar 21 07:10:47 2001
--- ../openssl-0.9.6/crypto/rand/rand_egd.c     Sat Aug 25 10:28:37 2001
***************
*** 74,88 ****
  #include OPENSSL_UNISTD
  #include <sys/types.h>
  #include <sys/socket.h>
- #ifndef NO_SYS_UN_H
  #include <sys/un.h>
- #else
- struct        sockaddr_un {
-       short   sun_family;             /* AF_UNIX */
-       char    sun_path[108];          /* path name (gag) */
- };
- #endif /* NO_SYS_UN_H */
  #include <string.h>
  
  #ifndef offsetof
  #  define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
--- 74,83 ----
  #include OPENSSL_UNISTD
  #include <sys/types.h>
  #include <sys/socket.h>
  #include <sys/un.h>
  #include <string.h>
+ #include <stdio.h>
+ #include <errno.h>
  
  #ifndef offsetof
  #  define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
***************
*** 104,110 ****
        len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
        fd = socket(AF_UNIX, SOCK_STREAM, 0);
        if (fd == -1) return (-1);
!       if (connect(fd, (struct sockaddr *)&addr, len) == -1) goto err;
        buf[0] = 1;
        buf[1] = 255;
        write(fd, buf, 2);
--- 99,109 ----
        len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
        fd = socket(AF_UNIX, SOCK_STREAM, 0);
        if (fd == -1) return (-1);
!        do {
!          ret=connect(fd, (struct sockaddr *)&addr, len);
!        } while ((ret < 0) && (errno == EINTR));
!        if ((ret < 0) && (errno != EISCONN))
!           goto err;
        buf[0] = 1;
        buf[1] = 255;
        write(fd, buf, 2);

Reply via email to