git.fiddlerwoaroof.com
pam.cc
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.
  */
 
01c00cfe
 #include <vector>
 #include <security/pam_modules.h>
 #include <security/pam_appl.h>
 
 #include "pam.h"
 
2fade7af
 class syspam : public pam_ifc
cdf7fd74
 {
 public:
2fade7af
     int get_conv (pam_handle *handle, const pam_conv **pout);
01c00cfe
 };
 
2fade7af
 int syspam::get_conv (pam_handle *handle,
                       std::shared_ptr<pam_conv_ifc> &out)
cdf7fd74
 {
2fade7af
     return pam_get_item (handle, PAM_CONV, (const void **)pout);
01c00cfe
 }
92957308