Hi Dan,

Perhaps i can elaborate.
So we're trying to further our implementation, but cannot apply our desired 
"client-server" model where the config is managed in a centralized place 
(I.E the server) due to issue #1207.
I have confirmed this is in fact the issue (no idea why this wasn't 
included in 2.9.2, but oke.)

Therefore, i want to apply the patch manually, and compile it myself. 
This is where the heart of my question was.

To answer yours.
When compiling the 2.9.2 source with the winagent target i'm getting an 
error in randombytes.c, speficically:

shared/randombytes.c: In function 'randombytes':
shared/randombytes.c:17: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'prov'
shared/randombytes.c:17: error: 'prov' undeclared (first use in this 
function)
shared/randombytes.c:17: error: (Each undeclared identifier is reported 
only once
shared/randombytes.c:17: error: for each function it appears in.)
shared/randombytes.c:19: warning: implicit declaration of function 
'CryptAcquireContext'
shared/randombytes.c:19: error: 'PROV_RSA_FULL' undeclared (first use in 
this function)
shared/randombytes.c:23: warning: implicit declaration of function 
'CryptGenRandom'
make[1]: *** [shared/randombytes.o] Error 1
make[1]: Leaving directory `/myhomedir/ossec-hids-2.9.2/src'
make: *** [winagent] Error 2

I haven't messed around in the source code, other than adding the binary 
parameter to the fopen function. I dont think there lies the cause of this 
error.

Perhaps you could provide some insights, any help is appreciated ofcourse.

Kind Regards,

Mark


Op donderdag 9 november 2017 14:46:31 UTC+1 schreef dan (ddpbsd):
>
> On Wed, Nov 8, 2017 at 3:50 AM, mark van de giessen <[email protected] 
> <javascript:>> wrote: 
> >> Welp, perhaps my system is misconfigured, i dont know. 
> > 
> > But.. when trying to compile following Ossec's 
> > /docs/manual/installation/compile-ossec-mingw.html i'm getting all sorts 
> of 
> > errors (yes, i'm trying to compile for windows) 
> > 
>
> I don't think there were any changes to the Windows side of things in 
> the latest releases. 
> Knowing what errors you're getting could help. 
>
> > 
> > -- 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "ossec-list" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to