inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
client.cpp File Reference
#include "protocols.h"
#include <termios.h>
#include <unistd.h>

Functions

std::string sha256 (const std::string &str)
 
SSL_CTX * initialize_ssl ()
 
std::string read_password ()
 
bool authenticate (SSL *ssl)
 
bool receive_file (SSL *ssl, const std::string &filename)
 
void list_files (SSL *ssl)
 
void print_help ()
 
int main ()
 

Variables

const std::string USERNAME = "client"
 
const std::string SALT
 

Function Documentation

◆ authenticate()

bool authenticate ( SSL * ssl)

◆ initialize_ssl()

SSL_CTX * initialize_ssl ( )

◆ list_files()

void list_files ( SSL * ssl)

◆ main()

int main ( )

◆ print_help()

void print_help ( )

◆ read_password()

std::string read_password ( )

◆ receive_file()

bool receive_file ( SSL * ssl,
const std::string & filename )

◆ sha256()

std::string sha256 ( const std::string & str)

Variable Documentation

◆ SALT

const std::string SALT
Initial value:
=
"random_salt_value"

◆ USERNAME

const std::string USERNAME = "client"