sbuild-auth-conv.h

Go to the documentation of this file.
00001 /* Copyright © 2005-2007  Roger Leigh <rleigh@debian.org>
00002  *
00003  * schroot is free software: you can redistribute it and/or modify it
00004  * under the terms of the GNU General Public License as published by
00005  * the Free Software Foundation, either version 3 of the License, or
00006  * (at your option) any later version.
00007  *
00008  * schroot is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see
00015  * <http://www.gnu.org/licenses/>.
00016  *
00017  *********************************************************************/
00018 
00019 #ifndef SBUILD_AUTH_CONV_H
00020 #define SBUILD_AUTH_CONV_H
00021 
00022 #include <sbuild/sbuild-auth-message.h>
00023 #include <sbuild/sbuild-error.h>
00024 
00025 #include <vector>
00026 
00027 #include <security/pam_appl.h>
00028 
00029 namespace sbuild
00030 {
00031 
00051   class auth_conv
00052   {
00053   public:
00055     typedef std::vector<auth_message> message_list;
00056 
00058     auth_conv ();
00060     virtual ~auth_conv ();
00061 
00067     virtual time_t
00068     get_warning_timeout () = 0;
00069 
00075     virtual void
00076     set_warning_timeout (time_t timeout) = 0;
00077 
00084     virtual time_t
00085     get_fatal_timeout () = 0;
00086 
00093     virtual void
00094     set_fatal_timeout (time_t timeout) = 0;
00095 
00110     virtual void
00111     conversation (message_list& messages) = 0;
00112   };
00113 
00114 }
00115 
00116 #endif /* SBUILD_AUTH_CONV_H */
00117 
00118 /*
00119  * Local Variables:
00120  * mode:C++
00121  * End:
00122  */

Generated on Sat Jul 5 11:58:44 2008 for sbuild by  doxygen 1.5.6