summaryrefslogtreecommitdiff
path: root/src/system-w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system-w32.c')
-rw-r--r--src/system-w32.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/system-w32.c b/src/system-w32.c
index 037a924..dfd2ba2 100644
--- a/src/system-w32.c
+++ b/src/system-w32.c
@@ -235,7 +235,6 @@ gpg_error_t
w32_fdpass_send (assuan_context_t ctx, assuan_fd_t fd)
{
char fdpass_msg[256];
- size_t msglen;
int res;
int fd0; /* POSIX fd */
intptr_t fd_converted_to_integer;
@@ -249,20 +248,6 @@ w32_fdpass_send (assuan_context_t ctx, assuan_fd_t fd)
if (err)
return err;
-#if 0
- res = snprintf (fdpass_msg, sizeof (fdpass_msg), FDPASS_FORMAT, file_handle);
- if (res < 0)
- {
- CloseHandle (file_handle);
- return gpg_error (GPG_ERR_ASS_PARAMETER);/*FIXME: error*/
- }
-
- msglen = (size_t)res + 1; /* Including NUL. */
-
- res = send (HANDLE2SOCKET (ctx->outbound.fd), "!", 1, MSG_OOB);
- res = send (HANDLE2SOCKET (ctx->outbound.fd), fdpass_msg, msglen, 0);
- return 0;
-#else
res = snprintf (fdpass_msg, sizeof (fdpass_msg), "SENDFD %p", file_handle);
if (res < 0)
{
@@ -272,7 +257,6 @@ w32_fdpass_send (assuan_context_t ctx, assuan_fd_t fd)
err = assuan_transact (ctx, fdpass_msg, NULL, NULL, NULL, NULL, NULL, NULL);
return err;
-#endif
}
static int