subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1235797 - /subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c
Date Wed, 25 Jan 2012 15:14:01 GMT
Author: gstein
Date: Wed Jan 25 15:14:01 2012
New Revision: 1235797

URL: http://svn.apache.org/viewvc?rev=1235797&view=rev
Log:
Fix some ugly formatting in order to clarify the prompt invocation.

* subversion/libsvn_subr/ssl_server_trust_providers.c:
  (ssl_server_trust_prompt_first_cred): new helper variable. fix some
    formatting. no semantic change.

Modified:
    subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c

Modified: subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c?rev=1235797&r1=1235796&r2=1235797&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c (original)
+++ subversion/trunk/subversion/libsvn_subr/ssl_server_trust_providers.c Wed Jan 25 15:14:01
2012
@@ -208,11 +208,12 @@ ssl_server_trust_prompt_first_cred(void 
     apr_hash_get(parameters,
                  SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO,
                  APR_HASH_KEY_STRING);
+  svn_boolean_t may_save = (!no_auth_cache
+                            && !(*failures & SVN_AUTH_SSL_OTHER));
 
-  SVN_ERR(pb->prompt_func((svn_auth_cred_ssl_server_trust_t **)
-                          credentials_p, pb->prompt_baton, realmstring,
-                          *failures, cert_info, ! no_auth_cache &&
-                          ! (*failures & SVN_AUTH_SSL_OTHER), pool));
+  SVN_ERR(pb->prompt_func((svn_auth_cred_ssl_server_trust_t **)credentials_p,
+                          pb->prompt_baton, realmstring, *failures, cert_info,
+                          may_save, pool));
 
   *iter_baton = NULL;
   return SVN_NO_ERROR;



Mime
View raw message