d779ce5514
* Try to auto-initialize Libgcrypt to minimize the effect of applications not doing that correctly. This is not a perfect solution but given that many applicationion would totally fail without such a hack, we try to help at least with the most common cases. Folks, please read the manual to learn how to properly initialize Libgcrypt! * Auto-initialize the secure memory to 32k instead of aborting the process. * Log fatal errors via syslog. * Changed the name and the semantics of the fips mode config file. * Add convenience macro gcry_fips_mode_active. * More self-tests. * Documentation cleanups.
47 lines
1.8 KiB
Text
47 lines
1.8 KiB
Text
$NetBSD: patch-ae,v 1.5 2008/10/14 11:33:13 adam Exp $
|
||
|
||
--- src/ath.h.orig 2008-08-19 17:20:04.000000000 +0200
|
||
+++ src/ath.h
|
||
@@ -31,6 +31,12 @@
|
||
|
||
#include <config.h>
|
||
|
||
+#ifdef HAVE_SYS_SELECT_H
|
||
+# include <sys/select.h>
|
||
+#else
|
||
+# include <sys/time.h>
|
||
+#endif
|
||
+
|
||
|
||
/* Define _ATH_EXT_SYM_PREFIX if you want to give all external symbols
|
||
a prefix. */
|
||
@@ -89,6 +95,14 @@ struct ath_ops
|
||
int (*connect) (int s, void *addr, int length);
|
||
int (*sendmsg) (int s, const void *msg, int flags);
|
||
int (*recvmsg) (int s, void *msg, int flags);
|
||
+#elif defined(__INTERIX)
|
||
+ ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
|
||
+ struct timeval *timeout);
|
||
+ ssize_t (*waitpid) (pid_t pid, int *status, int options);
|
||
+ int (*accept) (int s, struct sockaddr *addr, socklen_t *length_ptr);
|
||
+ int (*connect) (int s, struct sockaddr *addr, socklen_t length);
|
||
+ int (*sendmsg) (int s, const void *msg, int flags);
|
||
+ int (*recvmsg) (int s, void *msg, int flags);
|
||
#else
|
||
ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
|
||
struct timeval *timeout);
|
||
@@ -125,6 +139,14 @@ int ath_accept (int s, void *addr, int *
|
||
int ath_connect (int s, void *addr, int length);
|
||
int ath_sendmsg (int s, const void *msg, int flags);
|
||
int ath_recvmsg (int s, void *msg, int flags);
|
||
+#elif defined(__INTERIX)
|
||
+ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
|
||
+ struct timeval *timeout);
|
||
+ssize_t ath_waitpid (pid_t pid, int *status, int options);
|
||
+int ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr);
|
||
+int ath_connect (int s, struct sockaddr *addr, socklen_t length);
|
||
+int ath_sendmsg (int s, const void *msg, int flags);
|
||
+int ath_recvmsg (int s, void *msg, int flags);
|
||
#else
|
||
ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
|
||
struct timeval *timeout);
|