#define _XOPEN_SOURCE #include <stdio.h> #include <sys/types.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <limits.h> #include <sys/param.h> #ifdefined(OpenBSD) #include <login_cap.h> #include <bsd_auth.h> #else /* *IfOpenBSDisn'tdefined,addstaticdefinitionsofOpenBSD-specific *functions.Thiswon'twork,butwillletthecompileronother
* systems check that all is correctly defined */ staticint
auth_userokay(char *name, char *style, char *type, char *password)
{
fprintf(stderr, "auth_userokay() not implmented on this platform!\n");
abort(); return0;
} #endif
/* *Needacompletetypeforstructauth_info,eventhoughwe're
* not really using it if this module (BSD authentication) is selected */ struct auth_info
{ char dummy;
};
/******************************************************************************/ /* returns non-NULL for success */ struct auth_info *
auth_userpass(constchar *const_user, constchar *const_pass, constchar *client_ip, enum scp_login_status *errorcode)
{ /* Need a non-NULL pointer to return to indicate success */ staticstruct auth_info success = {0}; enum scp_login_status status;
// auth_userokay is not const-correct. See usr.sbin/smtpd/smtpd.c in // the OpenBSD source tree for this workaround char user[LOGIN_NAME_MAX]; char pass[LINE_MAX]; char type[] = "auth-xrdp";
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.