43
42
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef SBUILD_AUTH_CONV_TTY_H</span>
44
43
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define SBUILD_AUTH_CONV_TTY_H</span>
45
44
<a name="l00022"></a>00022 <span class="preprocessor"></span>
46
<a name="l00023"></a>00023 <span class="preprocessor">#include <sys/types.h></span>
47
<a name="l00024"></a>00024 <span class="preprocessor">#include <sys/wait.h></span>
48
<a name="l00025"></a>00025 <span class="preprocessor">#include <grp.h></span>
49
<a name="l00026"></a>00026 <span class="preprocessor">#include <pwd.h></span>
50
<a name="l00027"></a>00027 <span class="preprocessor">#include <unistd.h></span>
45
<a name="l00023"></a>00023 <span class="preprocessor">#include <<a class="code" href="sbuild-auth-conv_8h.html">sbuild/sbuild-auth-conv.h</a>></span>
46
<a name="l00024"></a>00024 <span class="preprocessor">#include <<a class="code" href="sbuild-custom-error_8h.html">sbuild/sbuild-custom-error.h</a>></span>
47
<a name="l00025"></a>00025
48
<a name="l00026"></a>00026 <span class="preprocessor">#include <security/pam_appl.h></span>
49
<a name="l00027"></a>00027 <span class="preprocessor">#include <security/pam_misc.h></span>
51
50
<a name="l00028"></a>00028
52
<a name="l00029"></a>00029 <span class="preprocessor">#include <security/pam_appl.h></span>
53
<a name="l00030"></a>00030 <span class="preprocessor">#include <security/pam_misc.h></span>
54
<a name="l00031"></a>00031
55
<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="sbuild-auth-conv_8h.html">sbuild-auth-conv.h</a>"</span>
56
<a name="l00033"></a>00033
57
<a name="l00034"></a><a class="code" href="namespacesbuild.html">00034</a> <span class="keyword">namespace </span>sbuild
58
<a name="l00035"></a>00035 {
59
<a name="l00049"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html">00049</a> <span class="keyword">class </span><a class="code" href="classsbuild_1_1auth__conv__tty.html">auth_conv_tty</a> : <span class="keyword">public</span> <a class="code" href="classsbuild_1_1auth__conv.html">auth_conv</a>
60
<a name="l00050"></a>00050 {
61
<a name="l00051"></a>00051 <span class="keyword">public</span>:
62
<a name="l00053"></a>00053 <a class="code" href="classsbuild_1_1auth__conv__tty.html#0d0e2c5b56ad52159f84d507705d9094">auth_conv_tty</a> ();
63
<a name="l00055"></a>00055 <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1auth__conv__tty.html#716e4da6d392cd79856dd00e71850742">~auth_conv_tty</a> ();
64
<a name="l00056"></a>00056
65
<a name="l00057"></a>00057 <span class="keyword">virtual</span> time_t
66
<a name="l00058"></a>00058 <a class="code" href="classsbuild_1_1auth__conv__tty.html#b637493bac92c8db9e7e22012be53d3a">get_warning_timeout</a> ();
67
<a name="l00059"></a>00059
68
<a name="l00060"></a>00060 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
69
<a name="l00061"></a>00061 <a class="code" href="classsbuild_1_1auth__conv__tty.html#f913e05422e6e92fb3531bd55e3d39af">set_warning_timeout</a> (time_t timeout);
70
<a name="l00062"></a>00062
71
<a name="l00063"></a>00063 <span class="keyword">virtual</span> time_t
72
<a name="l00064"></a>00064 <a class="code" href="classsbuild_1_1auth__conv__tty.html#8e1948e1c062e033b66ba14c52c06b6f">get_fatal_timeout</a> ();
73
<a name="l00065"></a>00065
74
<a name="l00066"></a>00066 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
75
<a name="l00067"></a>00067 <a class="code" href="classsbuild_1_1auth__conv__tty.html#7ca62f5f7337cf18d12fb3c43014ffbc">set_fatal_timeout</a> (time_t timeout);
76
<a name="l00068"></a>00068
77
<a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">bool</span>
78
<a name="l00070"></a>00070 <a class="code" href="classsbuild_1_1auth__conv__tty.html#66e349e0a8fee59a0df87f760180fc0a">conversation</a> (<a class="code" href="classsbuild_1_1auth__conv.html#7dd89895a7f0214f0b82e567d3d235fa">message_list</a>& messages);
79
<a name="l00071"></a>00071
80
<a name="l00072"></a>00072 <span class="keyword">private</span>:
81
<a name="l00082"></a>00082 <span class="keywordtype">int</span> <a class="code" href="classsbuild_1_1auth__conv__tty.html#6cd2ac8554b1681b3f253d829e5c7c32">get_delay</a> ();
82
<a name="l00083"></a>00083
83
<a name="l00100"></a>00100 std::string
84
<a name="l00101"></a>00101 <a class="code" href="classsbuild_1_1auth__conv__tty.html#dd9faed8f691dfcb5a05f635b487d20c">read_string</a> (std::string message,
85
<a name="l00102"></a>00102 <span class="keywordtype">bool</span> echo);
86
<a name="l00103"></a>00103
87
<a name="l00105"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#8b1624ee0965ff07b8ea72a2c7e9003e">00105</a> time_t <a class="code" href="classsbuild_1_1auth__conv__tty.html#8b1624ee0965ff07b8ea72a2c7e9003e">warning_timeout</a>;
88
<a name="l00107"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#23b8d15b29ed6d0eeb410967bdac08de">00107</a> time_t <a class="code" href="classsbuild_1_1auth__conv__tty.html#23b8d15b29ed6d0eeb410967bdac08de">fatal_timeout</a>;
89
<a name="l00109"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#947a97e1698cded741c84cc928182717">00109</a> time_t <a class="code" href="classsbuild_1_1auth__conv__tty.html#947a97e1698cded741c84cc928182717">start_time</a>;
90
<a name="l00110"></a>00110 };
91
<a name="l00111"></a>00111
92
<a name="l00112"></a>00112 }
93
<a name="l00113"></a>00113
94
<a name="l00114"></a>00114 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_AUTH_CONV_TTY_H */</span>
95
<a name="l00115"></a>00115
96
<a name="l00116"></a>00116 <span class="comment">/*</span>
97
<a name="l00117"></a>00117 <span class="comment"> * Local Variables:</span>
98
<a name="l00118"></a>00118 <span class="comment"> * mode:C++</span>
99
<a name="l00119"></a>00119 <span class="comment"> * End:</span>
100
<a name="l00120"></a>00120 <span class="comment"> */</span>
101
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Jun 17 14:41:22 2006 for schroot by
51
<a name="l00029"></a><a class="code" href="namespacesbuild.html">00029</a> <span class="keyword">namespace </span>sbuild
52
<a name="l00030"></a>00030 {
53
<a name="l00044"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html">00044</a> <span class="keyword">class </span><a class="code" href="classsbuild_1_1auth__conv__tty.html">auth_conv_tty</a> : <span class="keyword">public</span> <a class="code" href="classsbuild_1_1auth__conv.html">auth_conv</a>
54
<a name="l00045"></a>00045 {
55
<a name="l00046"></a>00046 <span class="keyword">public</span>:
56
<a name="l00048"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#d8d8824c7b1c2a36fe52f37a5b26701f">00048</a> <span class="keyword">enum</span> <a class="code" href="classsbuild_1_1auth__conv__tty.html#d8d8824c7b1c2a36fe52f37a5b26701f">error_code</a>
57
<a name="l00049"></a>00049 {
58
<a name="l00050"></a>00050 <a class="code" href="classsbuild_1_1auth__conv__tty.html#d8d8824c7b1c2a36fe52f37a5b26701f63e743b3b5283640f0a7091be2938ba9">TIMEOUT</a>,
59
<a name="l00051"></a>00051 <a class="code" href="classsbuild_1_1auth__conv__tty.html#d8d8824c7b1c2a36fe52f37a5b26701f68bc8407931cf60e31e56295a61e0ea4">TIMEOUT_PENDING</a>,
60
<a name="l00052"></a>00052 <a class="code" href="classsbuild_1_1auth__conv__tty.html#d8d8824c7b1c2a36fe52f37a5b26701f8df34c0008e8da2ad2be6851facf22a5">TERMIOS</a>,
61
<a name="l00053"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#d8d8824c7b1c2a36fe52f37a5b26701f0e6abb0daf046db810e8737e0d831ea6">00053</a> <a class="code" href="classsbuild_1_1auth__conv__tty.html#d8d8824c7b1c2a36fe52f37a5b26701f0e6abb0daf046db810e8737e0d831ea6">CONV_TYPE</a>
62
<a name="l00054"></a>00054 };
63
<a name="l00055"></a>00055
64
<a name="l00057"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#f055ae85575e7976ca75a5e6f0ecd3e6">00057</a> <span class="keyword">typedef</span> <a class="code" href="classsbuild_1_1custom__error.html">custom_error<error_code></a> <a class="code" href="classsbuild_1_1custom__error.html">error</a>;
65
<a name="l00058"></a>00058
66
<a name="l00060"></a>00060 <a class="code" href="classsbuild_1_1auth__conv__tty.html#0d0e2c5b56ad52159f84d507705d9094">auth_conv_tty</a> ();
67
<a name="l00062"></a>00062 <span class="keyword">virtual</span> <a class="code" href="classsbuild_1_1auth__conv__tty.html#716e4da6d392cd79856dd00e71850742">~auth_conv_tty</a> ();
68
<a name="l00063"></a>00063
69
<a name="l00064"></a>00064 <span class="keyword">virtual</span> time_t
70
<a name="l00065"></a>00065 <a class="code" href="classsbuild_1_1auth__conv__tty.html#b637493bac92c8db9e7e22012be53d3a">get_warning_timeout</a> ();
71
<a name="l00066"></a>00066
72
<a name="l00067"></a>00067 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
73
<a name="l00068"></a>00068 <a class="code" href="classsbuild_1_1auth__conv__tty.html#f913e05422e6e92fb3531bd55e3d39af">set_warning_timeout</a> (time_t timeout);
74
<a name="l00069"></a>00069
75
<a name="l00070"></a>00070 <span class="keyword">virtual</span> time_t
76
<a name="l00071"></a>00071 <a class="code" href="classsbuild_1_1auth__conv__tty.html#8e1948e1c062e033b66ba14c52c06b6f">get_fatal_timeout</a> ();
77
<a name="l00072"></a>00072
78
<a name="l00073"></a>00073 <span class="keyword">virtual</span> <span class="keywordtype">void</span>
79
<a name="l00074"></a>00074 <a class="code" href="classsbuild_1_1auth__conv__tty.html#7ca62f5f7337cf18d12fb3c43014ffbc">set_fatal_timeout</a> (time_t timeout);
80
<a name="l00075"></a>00075
81
<a name="l00076"></a>00076 <span class="keyword">virtual</span> <span class="keywordtype">bool</span>
82
<a name="l00077"></a>00077 <a class="code" href="classsbuild_1_1auth__conv__tty.html#66e349e0a8fee59a0df87f760180fc0a">conversation</a> (<a class="code" href="classsbuild_1_1auth__conv.html#7dd89895a7f0214f0b82e567d3d235fa">message_list</a>& messages);
83
<a name="l00078"></a>00078
84
<a name="l00079"></a>00079 <span class="keyword">private</span>:
85
<a name="l00089"></a>00089 <span class="keywordtype">int</span> <a class="code" href="classsbuild_1_1auth__conv__tty.html#6cd2ac8554b1681b3f253d829e5c7c32">get_delay</a> ();
86
<a name="l00090"></a>00090
87
<a name="l00107"></a>00107 std::string
88
<a name="l00108"></a>00108 <a class="code" href="classsbuild_1_1auth__conv__tty.html#dd9faed8f691dfcb5a05f635b487d20c">read_string</a> (std::string message,
89
<a name="l00109"></a>00109 <span class="keywordtype">bool</span> echo);
90
<a name="l00110"></a>00110
91
<a name="l00112"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#8b1624ee0965ff07b8ea72a2c7e9003e">00112</a> time_t <a class="code" href="classsbuild_1_1auth__conv__tty.html#8b1624ee0965ff07b8ea72a2c7e9003e">warning_timeout</a>;
92
<a name="l00114"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#23b8d15b29ed6d0eeb410967bdac08de">00114</a> time_t <a class="code" href="classsbuild_1_1auth__conv__tty.html#23b8d15b29ed6d0eeb410967bdac08de">fatal_timeout</a>;
93
<a name="l00116"></a><a class="code" href="classsbuild_1_1auth__conv__tty.html#947a97e1698cded741c84cc928182717">00116</a> time_t <a class="code" href="classsbuild_1_1auth__conv__tty.html#947a97e1698cded741c84cc928182717">start_time</a>;
94
<a name="l00117"></a>00117 };
95
<a name="l00118"></a>00118
96
<a name="l00119"></a>00119 }
97
<a name="l00120"></a>00120
98
<a name="l00121"></a>00121 <span class="preprocessor">#endif </span><span class="comment">/* SBUILD_AUTH_CONV_TTY_H */</span>
99
<a name="l00122"></a>00122
100
<a name="l00123"></a>00123 <span class="comment">/*</span>
101
<a name="l00124"></a>00124 <span class="comment"> * Local Variables:</span>
102
<a name="l00125"></a>00125 <span class="comment"> * mode:C++</span>
103
<a name="l00126"></a>00126 <span class="comment"> * End:</span>
104
<a name="l00127"></a>00127 <span class="comment"> */</span>
105
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Jul 6 19:21:41 2006 for schroot by
102
106
<a href="http://www.doxygen.org/index.html">
103
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
107
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>