[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

API question - ssl server trust prompt result

From: Grzegorz Sobanski <silk_at_boktor.net>
Date: 2007-10-06 16:24:08 CEST

Hi.

I'm looking to fix some bugs in MonoDevelop svn client, and so
I have a problem dealing with
svn_auth_ssl_server_trust_prompt_func_t

I think it's either a bug, or I understand the API in wrong way.

As described in
http://svn.collab.net/svn-doxygen/group__auth__fns.html#ga12
for the prompt I get 'failures' bitmask so user can be told what
is wrong with the certificate.
Result of the user decision is saved to svn_auth_cred_ssl_server_trust_t
which has a field: accepted_failures

The problem is - even if I set accepted_failuers to 0, when failures was
!= 0 subversion library accepts the certificate and contiunes with
operations. (I return null from the prompt, not svn_error_t object)

Looking at the API and it's documentation I would assume that the
certificate would be rejected, when accepted_failures does not have
a bit set that is set in failures.
And the person implementing this in MonoDevelop thought the same,
as far as I can see from the code.

Is this a bug, or are we wrong?

Regards
Grzegorz

-- 
Grzegorz "Silk" Sobański                        silk (at) boktor.net
An algorithm must be seen to be believed.          http://boktor.net
        -- D.E. Knuth
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 6 16:24:51 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.