GPGME callback function problem

alan_b gtbui at yahoo.com
Fri Aug 31 21:44:47 CEST 2007


So, in that callback function, what W32 function call should I use to write
the password to the fd ?
The original code is write( ), which did not compile in Windows.  I replaced
it with _write( ), which gave the assertion error on the fd.

Thanks,
Alan


Marcus Brinkmann wrote:
> 
> At Fri, 31 Aug 2007 08:04:27 -0700 (PDT),
> alan_b <gtbui at yahoo.com> wrote:
>> When I ran the test  program in Visual Studio 2005, the file descriptor
>> value was something like 1916 (non debug mode) or 6012 (debug mode).  The
>> max file descriptor for Windows is 512 by default.  I tried to use
>> _setmaxstdio to increase the max fd to 2048, but still got the same
>> error.
>>
>> Now the question is why GPGME created a file descriptor with large value
>> like this?  How do I get around the problem?
> 
> On W32, "file descriptors" are regular system handles, not POSIX libc fds.
> 
> Thanks,
> Marcus
> 
> 
> _______________________________________________
> Gnupg-devel mailing list
> Gnupg-devel at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-devel
> 
> 

-- 
View this message in context: http://www.nabble.com/GPGME-callback-function-problem-tf4360675.html#a12432859
Sent from the GnuPG - Dev mailing list archive at Nabble.com.




More information about the Gnupg-devel mailing list