Menu

#6 made pwgen win32 compilable

open
nobody
None
5
2008-11-25
2008-11-25
No

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. :]

Discussion

  • David Foerster

    David Foerster - 2008-11-25

    Patch to make pwgen run on Win32

     
  • Nobody/Anonymous

    uKPXIA <a href="http://alevdejoxvuf.com/">alevdejoxvuf</a>, [url=http://vtccsbxkexws.com/]vtccsbxkexws[/url], [link=http://kfujpwsxmltq.com/]kfujpwsxmltq[/link], http://qaqwtarbdgrp.com/