diff options
author | Iftikhar Ahmad <iftikhar.ahmad@gmail.com> | 2012-10-16 12:51:22 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2012-10-16 12:51:22 +0000 |
commit | 749ee321ed3560c4d3889476fc86e3fbf75d89b1 (patch) | |
tree | 5cba1d1b7b7d41784233d4c0ca7724b8d63fc8d1 /src/pam-freerdp-children.h | |
parent | cc83b78511a00c8ae44e4c671b30293960571b75 (diff) | |
parent | b4e06ab7e35ad7202824d64b58db4d889078005d (diff) | |
download | libpam-freerdp2-749ee321ed3560c4d3889476fc86e3fbf75d89b1.tar.gz libpam-freerdp2-749ee321ed3560c4d3889476fc86e3fbf75d89b1.tar.bz2 libpam-freerdp2-749ee321ed3560c4d3889476fc86e3fbf75d89b1.zip |
Improving the test coverage.. Approved by David Barth.
Diffstat (limited to 'src/pam-freerdp-children.h')
-rw-r--r-- | src/pam-freerdp-children.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/pam-freerdp-children.h b/src/pam-freerdp-children.h new file mode 100644 index 0000000..cb36312 --- /dev/null +++ b/src/pam-freerdp-children.h @@ -0,0 +1,30 @@ +/* + * Copyright © 2012 Canonical Ltd. + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 3, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranties of + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Author: Ted Gould <ted@canonical.com> + */ + +#ifndef _PAM_FREERDP_CHILDREN_H_ +#define _PAM_FREERDP_CHILDREN_H_ + +#define PAM_TYPE_DOMAIN 1234 +#define ALL_GOOD_SIGNAL "Ar, ready to authenticate cap'n" + +void +pam_sm_authenticate_helper (int *stdinpipe, const char* username, const char* rhost, const char* ruser, const char* rdomain); + +int +session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruser, const char * rhost, const char * rdomain, const char * password); +#endif //_PAM_FREERDP_CHILDREN_H_ |