#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";
/******************************************************************************/ /* returns non-NULL for success */ struct auth_info *
auth_uds(constchar *user, enum scp_login_status *errorcode)
{ /* Need a non-NULL pointer to return to indicate success */ staticstruct auth_info success = {0};
if (errorcode != NULL)
{
*errorcode = E_SCP_LOGIN_OK;
}
return &success;
}
/******************************************************************************/ /* returns error */ int
auth_start_session(struct auth_info *auth_info, int display_num)
{ return0;
}
/******************************************************************************/ int
auth_end(struct auth_info *auth_info)
{ return0;
}
/******************************************************************************/ int
auth_set_env(struct auth_info *auth_info)
{ return0;
}
/******************************************************************************/ int
auth_check_pwd_chg(constchar *user)
{ return0;
}
int
auth_change_pwd(constchar *user, constchar *newpwd)
{ return0;
}
int
auth_stop_session(struct auth_info *auth_info)
{ return0;
}
Messung V0.5 in Prozent
¤ 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.0.15Bemerkung:
(vorverarbeitet am 2026-10-11)
¤
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.