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
 
798377c2
 void log_success() {
1c7f8bf0
     openlog(program_name, 0, LOG_AUTHPRIV);
     syslog(LOG_NOTICE, "dual control succeeded");
     closelog();
645d4d3d
 }
6120f050
 
 void log_failure() {
1c7f8bf0
     openlog(program_name, 0, LOG_AUTHPRIV);
     syslog(LOG_NOTICE, "dual control failed");
     closelog();
6120f050
 }