[vlc-devel] [RFC PATCH] VLC keystore API

Thomas Guillem thomas at gllm.fr
Mon Nov 23 15:10:37 CET 2015


Here is a first draft of the vlc keystore api: vlc_keystore.h (I'm still
working on module implementation and integration).

I have some questions:

1/ Should we create a new keystore module each time a module
(access/demux/other?) wants to access it ? I think it should be a singleton
owned by libvlc, by the input thread or by the playlist to avoid too many
connect/disconnect when playing a http playlist for example.

2/ It is possible to store more than one user/password for one
protocol/server/port, that's why vlc_keystore_dict_find() return a list of
entries.
Therefore, If a default user is specified (in arguments or url),
vlc_keystore_dict_find() will return only the entry matching with the user. But
if no user are specified and if vlc_keystore_dict_find() return more than one
entries, we can't know which user/password we should use. What should we do in
that case ? Try only the first one and pop up a dialog if it fails ? (we can't
test all user/password because the server could ban us)

Thomas Guillem (1):
  add vlc_keystore API

 include/vlc_keystore.h | 202 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am        |   2 +
 src/misc/keystore.c    | 162 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 366 insertions(+)
 create mode 100644 include/vlc_keystore.h
 create mode 100644 src/misc/keystore.c

-- 
2.1.4



More information about the vlc-devel mailing list