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

my issue: ignore server invaild certificate by call api in linux

From: 袁立新 <yuanlixin_at_geostar.com.cn>
Date: Thu, 20 Oct 2016 10:08:59 +0000

dear,
      our program call the api "svn_auth_ssl_server_trust_prompt_func_t" in windows can ignore server invaild certificate,
code like :
       svn_client_get_ssl_server_trust_prompt_provider(
                &provider, onSslServerTrustPrompt, this, pool);
      *(svn_auth_provider_object_t **)apr_array_push(providers) = provider;
but in linux can't run normal,and change the api :
    typedef svn_error_t *(*svn_auth_ssl_server_trust_prompt_func_t)(
            svn_auth_cred_ssl_server_trust_t **cred,
            void *baton,
            const char *realm,
            apr_uint32_t *failures,
            const svn_auth_ssl_server_cert_info_t *cert_info,
            svn_boolean_t may_save,
            apr_pool_t *pool);
this could connect the server by "https".

my last way is this :
change code file:"\src-trunk\subversion\libsvn_subr\ssl_server_trust_providers.c"

       *failures = 0; //wj add
        /* If all failures are cleared now, we return the creds */
        if (! *failures)
        {
              svn_auth_cred_ssl_server_trust_t *creds =
                apr_pcalloc(pool, sizeof(*creds));
                  creds->may_save = FALSE; /* No need to save it again... */
              *credentials = creds;
        }
this way was deny by my leader, please help me!
________________________________
[说明: geostar]
武大吉奥信息技术有限公司
袁立新 软件研发中心

手机:15107179985
座机:(027) 87196288
传真:(027) 87196133
邮箱:yuanlixin_at_geostar.com.cn<mailto:yuyun_at_geostar.com.cn>
网址:http://www.geostar.com.cn<http://www.geostar.com.cn/>
地址:武汉市东湖新技术开发区大学园路武大科技园吉奥大厦(430223)
==================================================================

9279_image001(06-03-15-22-21).jpg
Received on 2016-10-20 12:22:27 CEST

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

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