7684972a | /* Copyright (C) CJ Affiliate * * You may use, distribute and modify this code under the * terms of the GNU General Public License version 2 or * later. * * You should have received a copy of the license with this * file. If not, you will find a copy in the "LICENSE" file * at https://github.com/cjdev/dual-control. */ |
1c7f8bf0 | #include <syslog.h> |
b5e563ba | //#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 | } |