/* 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. */ #include #include #include #include "pam.h" class syspam : public pam_ifc { public: int get_conv (pam_handle *handle, const pam_conv **pout); }; int syspam::get_conv (pam_handle *handle, std::shared_ptr &out) { return pam_get_item (handle, PAM_CONV, (const void **)pout); }