Ticket #16597: patch-ra.c.diff

File patch-ra.c.diff, 1.4 KB (added by bahamut@…, 16 years ago)

Patch file for the bzr-svn port.

  • ra.c

    old new  
    27512751}
    27522752#endif
    27532753
     2754#if defined(__APPLE__)
     2755static PyObject *get_keychain_simple_provider(PyObject* self)
     2756{
     2757        AuthProviderObject *auth = PyObject_New(AuthProviderObject, &AuthProvider_Type);
     2758        auth->pool = Pool(NULL);
     2759        if (auth->pool == NULL)
     2760                return NULL;
     2761        svn_auth_get_keychain_simple_provider(&auth->provider, auth->pool);
     2762        return (PyObject *)auth;
     2763}
     2764#endif
     2765
    27542766static PyMethodDef ra_module_methods[] = {
    27552767        { "version", (PyCFunction)version, METH_NOARGS, NULL },
    27562768        { "get_ssl_client_cert_pw_file_provider", (PyCFunction)get_ssl_client_cert_pw_file_provider, METH_NOARGS, NULL },
     
    27612773        { "get_windows_simple_provider", (PyCFunction)get_windows_simple_provider, METH_NOARGS, NULL },
    27622774        { "get_windows_ssl_server_trust_provider", (PyCFunction)get_windows_ssl_server_trust_provider, METH_NOARGS, NULL },
    27632775#endif
     2776#if defined(__APPLE__)
     2777        { "get_keychain_simple_provider", (PyCFunction)get_keychain_simple_provider, METH_NOARGS, NULL },
     2778#endif
    27642779        { "get_username_prompt_provider", (PyCFunction)get_username_prompt_provider, METH_VARARGS, NULL },
    27652780        { "get_simple_prompt_provider", (PyCFunction)get_simple_prompt_provider, METH_VARARGS, NULL },
    27662781        { "get_ssl_server_trust_prompt_provider", (PyCFunction)get_ssl_server_trust_prompt_provider, METH_VARARGS, NULL },