Add initial support for certificate verification to ossec-authd and agent-auth
Merge remote-tracking branch 'upstream/master' into authd_certificate_verify
Fixed small memory leak in OS_AddNewAgent
Minor changes for consistency
Add more extensive certificate verification to agent-auth
Initial support for verifying IP addresses in subjectAltNames
Stop call to check_ipaddr() if manager was given as hostname
Add much more comprehensive validation of domain names presented in X.509 certificate.
Move certificate verification into check_cert.h and cert_check.c
Minor tidy up
Minor fixes
Ensure ARGV0 is set correctly for agent-auth
More tidy up in check_hostname and better comments
Remove code that checks whether the manager was given as a hostname or IP address
Get agent-auth working on Windows again
add final changes to get agent-auth building for Windows
Fix bug where verification would always fail if no subject alternative names present
Verify names from certificates don't contain embedded null characters
Merge all upstream changes
Stop agent-auth building for Windows until discussed