24 lines
490 B
C
24 lines
490 B
C
/* Secret Store Client Service
|
|
* pam_sscs_utils.c
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <syslog.h>
|
|
#include <stdarg.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include "pam_sscs.h"
|
|
|
|
void pam_sscs_log(int priority, const char *format,...)
|
|
{
|
|
va_list args;
|
|
char *mesg = NULL;
|
|
|
|
va_start( args,format );
|
|
if( vasprintf( &mesg, format, args ) < 0 )
|
|
return;
|
|
syslog( priority,"pam_micasa: %s",mesg );
|
|
va_end( args );
|
|
}
|