Share

Password Generator

Tracker: Patches

5 made pwgen win32 compilable - ID: 2347157
Last Update: Attachment added ( dekaden_z )

Hello,

I managed no make pwgen compile with VC++ 8 and run it on Win32. However
I'm n ot pretty shure how support the patch, so I'm just posting th diff
file as attachment.

To get it to work I had to add a getopt()-implementation which can be used
instead of unistd.h. Windows CAPI will be used as entropy source, so this
is pretty sophisticated. Anyway rand() resp. random() work as well when no
encryption provider is available.
The most basic way to compile it would probably be "cl /DWIN32 *.c -o
pwgen.exe -link advapi32.lib". As you can see, I made heavy use of "#ifdef
WIN32" to tell wether to compile for a windows machine or not.

Please contact me, if there's anything I can optimize on this patch report.
:]


David Foerster ( dekaden_z ) - 2008-11-25 23:54

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
pwdgen-2.0.6-win32.diff Patch to make pwgen run on Win32 Download

Change ( 1 )

Field Old Value Date By
File Added 302969: pwdgen-2.0.6-win32.diff 2008-11-25 23:54 dekaden_z