subversion/libsvn_subr/ssl_server_trust_providers.c
/*** Public API to SSL prompting providers. ***/
Public API to SSL prompting providers.
Public API to SSL prompting providers .
void
svn_auth_get_ssl_server_trust_prompt_provider
  (svn_auth_provider_object_t **provider,
   svn_auth_ssl_server_trust_prompt_func_t prompt_func,
   void *prompt_baton,
   apr_pool_t *pool)
{
  svn_auth_provider_object_t *po = apr_pcalloc(pool, sizeof(*po));
  ssl_server_trust_prompt_provider_baton_t *pb =
    apr_palloc(pool, sizeof(*pb));
  pb->prompt_func = prompt_func;
  pb->prompt_baton = prompt_baton;
  po->vtable = &ssl_server_trust_prompt_provider;
  po->provider_baton = pb;
  *provider = po;
}
void svn_auth_get_ssl_server_trust_prompt_provider ( svn_auth_provider_object_t * * provider , svn_auth_ssl_server_trust_prompt_func_t prompt_func , void * prompt_baton , apr_pool_t * pool ) { svn_auth_provider_object_t * po = apr_pcalloc ( pool , sizeof ( * po ) ) ; ssl_server_trust_prompt_provider_baton_t * pb = apr_palloc ( pool , sizeof ( * pb ) ) ; pb -> prompt_func = prompt_func ; pb -> prompt_baton = prompt_baton ; po -> vtable = & ssl_server_trust_prompt_provider ; po -> provider_baton = pb ; * provider = po ; }
Public API to SSL prompting providers.
Public API to SSL prompting providers .