Checkout
cmpilato
committed
on 03 Aug 12
On the 'master-passphrase' branch: Add the framework for supporting
the obvious additional platform-specific master passphrase providers.

*… Show more
On the 'master-passphrase' branch: Add the framework for supporting

the obvious additional platform-specific master passphrase providers.

* subversion/include/private/svn_auth_private.h

 (SVN_AUTH__DEFAULT_PROVIDER_LIST): New #define.

* subversion/include/svn_auth.h

 (svn_auth_master_passphrase_provider_func_t): New function type.

 (svn_auth_get_platform_specific_master_passphrase_providers): New function.

* subversion/libsvn_subr/auth.c

 (SVN__DEFAULT_AUTH_PROVIDER_LIST): Remove.

 (svn_auth_get_platform_specific_client_providers): Use

   SVN_AUTH__DEFAULT_PROVIDER_LIST instead of SVN__DEFAULT_AUTH_PROVIDER_LIST.

* subversion/libsvn_subr/cmdline.c

 (open_auth_store): Add 'cfg' parameter, and now call

   svn_auth_get_platform_specific_master_passphrase_providers() instead

   of explicitly referencing the gpg-agent master passphrase provider.

 (svn_cmdline_create_auth_baton): Update call to open_auth_store().

* subversion/libsvn_subr/masterpass_providers.c

 (get_provider, svn_auth_get_platform_specific_master_passphrase_providers):

   New functions.

Show less