You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Johnathan Kupferer <jt...@uic.edu> on 2006/08/09 17:16:57 UTC

Ruby api feature request: add_ssl_server_trust_file_provider()

Greetings all, I'm rather new to the world of Ruby but I've worked quite 
a bit with the subversion perl API.  I'm looking to port some code from 
perl to ruby (it's a long story) and I've immediately run into trouble 
with SSL certs.  It seems the ruby API doesn't start out with an ssl 
server trust file provider, so I want to add the default version ala 
add_simple_provider() or add_username_provider(), but add_provider() is 
a private method so what I'm having to do is:

module Svn
    module Client
        class Context
            def add_ssl_server_trust_file_provider
                add_provider(Client.get_ssl_server_trust_file_provider)
            end
        end
    end
end

Which is rather ugly.  Would it be possible to get this method added to 
svn/client.rb?  Am I missing some obvious better way to get this 
working?  Am I emailing the right people?  Is there any documentation on 
the ruby API?

Thanks in advance,

- Johnathan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Ruby api feature request: add_ssl_server_trust_file_provider()

Posted by Kouhei Sutou <ko...@cozmixng.org>.
Hi,

In <44...@uic.edu>
  "Ruby api feature request: add_ssl_server_trust_file_provider()" on Wed, 09 Aug 2006 12:16:57 -0500,
  Johnathan Kupferer <jt...@uic.edu> wrote:

>                                      I'm looking to port some code from 
> perl to ruby (it's a long story)

It's good news. I will help your work.

>                  It seems the ruby API doesn't start out with an ssl 
> server trust file provider

I added three missing provider related API in r21037:
  * Svn::Client::Context#add_ssl_client_cert_file_provider
  * Svn::Client::Context#add_ssl_client_cert_pw_file_provider
  * Svn::Client::Context#add_ssl_server_trust_file_provider


> Am I emailing the right people?

Yes.

> Is there any documentation on the ruby API?

There are some RDoc in svn/*.rb by nori and some sample
codes in tools/examples/*.rb, tools/hook-scripts/*.rb and
subversion/bindings/swig/ruby/test/*.rb. Collaboa's source
codes (*) may help you.

(*): http://dev.collaboa.org/repository/browse/trunk/lib/actionsubversion


Thanks,
--
kou

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org