RTEMS CPU Kit with SuperCore  4.11.2
Functions
check_passwd.c File Reference
#include <termios.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <rtems/telnetd.h>
#include "passwd.h"
Include dependency graph for check_passwd.c:

Functions

char * __des_crypt_r (const char *, const char *, char *, int)
 
bool rtems_telnetd_login_check (const char *user, const char *passphrase)
 Standard Telnet login check that uses DES to encrypt the passphrase. More...
 

Function Documentation

◆ rtems_telnetd_login_check()

bool rtems_telnetd_login_check ( const char *  user,
const char *  passphrase 
)

Standard Telnet login check that uses DES to encrypt the passphrase.

Takes a passphrase, encrypts it and compares it to the encrypted passphrase in the TELNETD_PASSWD environment variable. No password is required if TELNETD_PASSWD is unset. The argument user is ignored.