I've been coaming the source code for a few hours now.
If ended up writing a short python script to do the job for me at the end to really make sure i didn't miss it.
But i can't find it..
At first i assumed:
void
msg ( ... )
{
...
}
Because that's the syntax OpenVPN mostly consists of, but i've tried all possible combinations and gone through the entire source code and i just.. can't.. find it..
Where is "msg" defined?
It's used _everywhere_ for all the output/logging so it has to be somewhere..
For instance, error.c:
if (flags & M_FATAL)
msg (M_INFO, "Exiting");
Reason being that i'm adding in windows event-log support for OpenVPN.
I've got the C++ linkage working when building openvpn and i've successfully managed to get the logging-to-windows-eventlog to work.. I just need to find the centralized function for all the output/log-messages.. that is msg() >_<
* Using the OpenVPN 2.2.2 sourcecode