aboutsummaryrefslogtreecommitdiff
path: root/src/pam-freerdp-children.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-01-25 12:04:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-01-25 12:06:41 +0100
commit96b2f26c68e621f8605b87da01030de02b90c18d (patch)
tree34cdf5cf1a06e2b7628f8f98e94089ef9473e6ec /src/pam-freerdp-children.h
parent760c3278572a005da9f339526ea60f0d5afa3298 (diff)
downloadlibpam-freerdp2-96b2f26c68e621f8605b87da01030de02b90c18d.tar.gz
libpam-freerdp2-96b2f26c68e621f8605b87da01030de02b90c18d.tar.bz2
libpam-freerdp2-96b2f26c68e621f8605b87da01030de02b90c18d.zip
namespacing: Add FreeRDPv3 support and drop the FreeRDP version number from project name and project files.
Diffstat (limited to 'src/pam-freerdp-children.h')
-rw-r--r--src/pam-freerdp-children.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/pam-freerdp-children.h b/src/pam-freerdp-children.h
new file mode 100644
index 0000000..1109587
--- /dev/null
+++ b/src/pam-freerdp-children.h
@@ -0,0 +1,32 @@
+/*
+ * 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_RDP_USER 1234
+#define PAM_TYPE_RDP_SERVER 1235
+#define PAM_TYPE_RDP_DOMAIN 1236
+#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_