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.
:]
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| pwdgen-2.0.6-win32.diff | Patch to make pwgen run on Win32 | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 302969: pwdgen-2.0.6-win32.diff | 2008-11-25 23:54 | dekaden_z |