git.fiddlerwoaroof.com
logging.cc
1c7f8bf0
 #include <syslog.h>
 
645d4d3d
 #include "logging.h"
1c7f8bf0
 #include "test_support.h"
f419d88c
 
 static const char program_name[] = "pam_dual_control";
645d4d3d
 
cdf7fd74
 void log_success()
 {
b017a4d2
     openlog (program_name, 0, LOG_AUTHPRIV);
     syslog (LOG_NOTICE, "dual control succeeded");
1c7f8bf0
     closelog();
645d4d3d
 }
6120f050
 
cdf7fd74
 void log_failure()
 {
b017a4d2
     openlog (program_name, 0, LOG_AUTHPRIV);
     syslog (LOG_NOTICE, "dual control failed");
1c7f8bf0
     closelog();
6120f050
 }