Ticket #16597: patch-keychain.diff

File patch-keychain.diff, 2.8 KB (added by bahamut@…, 16 years ago)

Patch file for the subversion port.

  • ./build/generator/gen_make.py

    old new  
    187187      opts = self.swig.opts[objname.lang]
    188188      if not self.release_mode:
    189189        self.ofile.write('$(top_builddir)/%s: %s\n' % (objname, deps) +
    190           '\t$(SWIG) $(SWIG_INCLUDES) %s ' % opts +
     190          '\t$(SWIG) $(SWIG_DEFINES) $(SWIG_INCLUDES) %s ' % opts +
    191191          '-o $@ $(top_srcdir)/%s\n' % source
    192192        )
    193193
  • ./subversion/bindings/javahl/native/SVNClient.cpp

    old new  
    11251125    /* The main disk-caching auth providers, for both
    11261126     * 'username/password' creds and 'username' creds.  */
    11271127    svn_auth_provider_object_t *provider;
     1128#ifdef DARWIN
     1129    svn_client_get_keychain_simple_provider (&provider, pool);
     1130    APR_ARRAY_PUSH (providers, svn_auth_provider_object_t *) = provider;
     1131#endif
    11281132#ifdef WIN32
    11291133    svn_client_get_windows_simple_provider(&provider, pool);
    11301134    APR_ARRAY_PUSH(providers, svn_auth_provider_object_t *) = provider;
  • ./subversion/include/svn_client.h

    old new  
    150150svn_client_get_simple_provider(svn_auth_provider_object_t **provider,
    151151                               apr_pool_t *pool);
    152152
     153#if defined(DARWIN) || defined(DOXYGEN)
     154
     155/**
     156 * Create and return @a *provider, an authentication provider of type @c
     157 * svn_auth_cred_simple_t that gets/sets information from the user's
     158 * ~/.subversion configuration directory.  Allocate @a *provider in
     159 * @a pool.
     160 *
     161 * This is like svn_client_get_simple_provider(), except that the
     162 * password is stored in the Mac OS KeyChain.
     163 *
     164 * @since New in 1.4
     165 * @note This function is only available on Mac OS 10.2 and higher.
     166 */
     167void
     168svn_client_get_keychain_simple_provider(svn_auth_provider_object_t **provider,
     169                                      apr_pool_t *pool);
     170
     171#endif /* DARWIN || DOXYGEN */
    153172
    154173#if (defined(WIN32) && !defined(__MINGW32__)) || defined(DOXYGEN)
    155174/**
  • ./subversion/libsvn_client/compat_providers.c

    old new  
    5757  svn_auth_get_simple_provider(provider, pool);
    5858}
    5959
     60#if defined(DARWIN)
     61void
     62svn_client_get_keychain_simple_provider(svn_auth_provider_object_t **provider,
     63                                       apr_pool_t *pool)
     64{
     65  svn_auth_get_keychain_simple_provider(provider, pool);
     66}
     67#endif /* DARWIN */
     68
    6069#if defined(WIN32) && !defined(__MINGW32__)
    6170void
    6271svn_client_get_windows_simple_provider(svn_auth_provider_object_t **provider,