Deleted Added
full compact
rand_egd.c (68651) rand_egd.c (76866)
1/* crypto/rand/rand_egd.c */
2/* Written by Ulf Moeller for the OpenSSL project. */
3/* ====================================================================
4 * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 60 unchanged lines hidden (view full) ---

69 {
70 return(-1);
71 }
72#else
73#include <openssl/opensslconf.h>
74#include OPENSSL_UNISTD
75#include <sys/types.h>
76#include <sys/socket.h>
1/* crypto/rand/rand_egd.c */
2/* Written by Ulf Moeller for the OpenSSL project. */
3/* ====================================================================
4 * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 60 unchanged lines hidden (view full) ---

69 {
70 return(-1);
71 }
72#else
73#include <openssl/opensslconf.h>
74#include OPENSSL_UNISTD
75#include <sys/types.h>
76#include <sys/socket.h>
77#ifndef NO_SYS_UN_H
77#include <sys/un.h>
78#include <sys/un.h>
79#else
80struct sockaddr_un {
81 short sun_family; /* AF_UNIX */
82 char sun_path[108]; /* path name (gag) */
83};
84#endif /* NO_SYS_UN_H */
78#include <string.h>
79
80#ifndef offsetof
81# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
82#endif
83
84int RAND_egd(const char *path)
85 {

--- 82 unchanged lines hidden ---
85#include <string.h>
86
87#ifndef offsetof
88# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
89#endif
90
91int RAND_egd(const char *path)
92 {

--- 82 unchanged lines hidden ---