VLC 4.0.0-dev
keystore.c File Reference
Include dependency graph for keystore.c:

Functions

static vlc_keystorekeystore_create (vlc_object_t *p_parent, const char *psz_name)
 
vlc_keystorevlc_keystore_create (vlc_object_t *p_parent)
 Create a keystore object. More...
 
void vlc_keystore_release (vlc_keystore *p_keystore)
 Release a keystore object. More...
 
int vlc_keystore_store (vlc_keystore *p_keystore, const char *const ppsz_values[KEY_MAX], const uint8_t *p_secret, ssize_t i_secret_len, const char *psz_label)
 Store a secret associated with a set of key/values. More...
 
unsigned int vlc_keystore_find (vlc_keystore *p_keystore, const char *const ppsz_values[KEY_MAX], vlc_keystore_entry **pp_entries)
 Find all entries that match a set of key/values. More...
 
unsigned int vlc_keystore_remove (vlc_keystore *p_keystore, const char *const ppsz_values[KEY_MAX])
 Remove all entries that match a set of key/values. More...
 
void vlc_keystore_release_entries (vlc_keystore_entry *p_entries, unsigned int i_count)
 Release the list of entries returned by vlc_keystore_find() More...
 
int libvlc_InternalKeystoreInit (libvlc_int_t *p_libvlc)
 
void libvlc_InternalKeystoreClean (libvlc_int_t *p_libvlc)
 
static vlc_keystoreget_memory_keystore (vlc_object_t *p_obj)
 
static vlc_keystore_entryfind_closest_path (vlc_keystore_entry *p_entries, unsigned i_count, const char *psz_path)
 
static bool is_credential_valid (vlc_credential *p_credential)
 
static bool is_url_valid (const vlc_url_t *p_url)
 
static bool protocol_set_port (const vlc_url_t *p_url, char *psz_port)
 
static bool protocol_is_smb (const vlc_url_t *p_url)
 
static bool protocol_store_path (const vlc_url_t *p_url)
 
static void smb_split_domain (vlc_credential *p_credential)
 
static void credential_find_keystore (vlc_credential *p_credential, vlc_keystore *p_keystore)
 
void vlc_credential_init (vlc_credential *p_credential, const vlc_url_t *p_url)
 Init a credential struct. More...
 
void vlc_credential_clean (vlc_credential *p_credential)
 Clean a credential struct. More...
 
int vlc_credential_get (vlc_credential *p_credential, vlc_object_t *p_parent, const char *psz_option_username, const char *psz_option_password, const char *psz_dialog_title, const char *psz_dialog_fmt,...)
 Get a username/password couple. More...
 
bool vlc_credential_store (vlc_credential *p_credential, vlc_object_t *p_parent)
 Store the last dialog credential returned by vlc_credential_get() More...
 

Variables

struct {
   const char *   psz_protocol
 
   uint16_t   i_port
 
protocol_default_ports []
 

Function Documentation

◆ credential_find_keystore()

◆ find_closest_path()

static vlc_keystore_entry * find_closest_path ( vlc_keystore_entry p_entries,
unsigned  i_count,
const char *  psz_path 
)
static

◆ get_memory_keystore()

static vlc_keystore * get_memory_keystore ( vlc_object_t p_obj)
static

◆ is_credential_valid()

static bool is_credential_valid ( vlc_credential p_credential)
static

◆ is_url_valid()

static bool is_url_valid ( const vlc_url_t p_url)
static

◆ keystore_create()

◆ libvlc_InternalKeystoreClean()

void libvlc_InternalKeystoreClean ( libvlc_int_t p_libvlc)

◆ libvlc_InternalKeystoreInit()

int libvlc_InternalKeystoreInit ( libvlc_int_t p_libvlc)

◆ protocol_is_smb()

static bool protocol_is_smb ( const vlc_url_t p_url)
static

◆ protocol_set_port()

static bool protocol_set_port ( const vlc_url_t p_url,
char *  psz_port 
)
static

◆ protocol_store_path()

static bool protocol_store_path ( const vlc_url_t p_url)
static

◆ smb_split_domain()

static void smb_split_domain ( vlc_credential p_credential)
static

Variable Documentation

◆ i_port

◆ 

struct { ... } protocol_default_ports[]
Initial value:
= {
{ "rtsp", 80 },
{ "http", 80 },
{ "https", 443 },
{ "ftp", 21 },
{ "sftp", 22 },
{ "smb", 445 },
}

Referenced by protocol_set_port().

◆ psz_protocol

const char* psz_protocol