diff options
author | Werner Koch <[email protected]> | 2007-10-01 14:48:39 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2007-10-01 14:48:39 +0000 |
commit | 31c19d1d685b75377d9ff6dfbc9138ecbd5600b4 (patch) | |
tree | f6630bee0deef3ff050b3ca7dbb55e4951e34372 /common/sysutils.h | |
parent | Support the SETQUALITYBAR command of recent pinentries. (diff) | |
download | gnupg-31c19d1d685b75377d9ff6dfbc9138ecbd5600b4.tar.gz gnupg-31c19d1d685b75377d9ff6dfbc9138ecbd5600b4.zip |
Use Assuan socket wrapper calls.
Made socket servers secure under Windows.
Diffstat (limited to 'common/sysutils.h')
-rw-r--r-- | common/sysutils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h index 2a3666882..c053e8fb9 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -27,9 +27,13 @@ #ifdef HAVE_W32_SYSTEM typedef void *gnupg_fd_t; #define GNUPG_INVALID_FD ((void*)(-1)) +#define INT2FD(s) ((void *)(s)) +#define FD2INT(h) ((unsigned int)(h)) #else typedef int gnupg_fd_t; #define GNUPG_INVALID_FD (-1) +#define INT2FD(s) (s) +#define FD2INT(h) (h) #endif |