18590a0fdSAndre Fischer /************************************************************** 28590a0fdSAndre Fischer * 38590a0fdSAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one 48590a0fdSAndre Fischer * or more contributor license agreements. See the NOTICE file 58590a0fdSAndre Fischer * distributed with this work for additional information 68590a0fdSAndre Fischer * regarding copyright ownership. The ASF licenses this file 78590a0fdSAndre Fischer * to you under the Apache License, Version 2.0 (the 88590a0fdSAndre Fischer * "License"); you may not use this file except in compliance 98590a0fdSAndre Fischer * with the License. You may obtain a copy of the License at 108590a0fdSAndre Fischer * 118590a0fdSAndre Fischer * http://www.apache.org/licenses/LICENSE-2.0 128590a0fdSAndre Fischer * 138590a0fdSAndre Fischer * Unless required by applicable law or agreed to in writing, 148590a0fdSAndre Fischer * software distributed under the License is distributed on an 158590a0fdSAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 168590a0fdSAndre Fischer * KIND, either express or implied. See the License for the 178590a0fdSAndre Fischer * specific language governing permissions and limitations 188590a0fdSAndre Fischer * under the License. 198590a0fdSAndre Fischer * 208590a0fdSAndre Fischer *************************************************************/ 218590a0fdSAndre Fischer 228590a0fdSAndre Fischer 238590a0fdSAndre Fischer #ifndef INCLUDED_CALLBACKS_HXX 248590a0fdSAndre Fischer #define INCLUDED_CALLBACKS_HXX 258590a0fdSAndre Fischer 268590a0fdSAndre Fischer #include <serf.h> 278590a0fdSAndre Fischer 288590a0fdSAndre Fischer extern "C" apr_status_t Serf_ConnectSetup( apr_socket_t *skt, 298590a0fdSAndre Fischer serf_bucket_t **read_bkt, 308590a0fdSAndre Fischer serf_bucket_t **write_bkt, 318590a0fdSAndre Fischer void *setup_baton, 328590a0fdSAndre Fischer apr_pool_t *pool ); 338590a0fdSAndre Fischer 34307c6619SOliver-Rainer Wittmann extern "C" apr_status_t Serf_Credentials( char **username, 35307c6619SOliver-Rainer Wittmann char **password, 36307c6619SOliver-Rainer Wittmann serf_request_t *request, 37307c6619SOliver-Rainer Wittmann void *baton, 38307c6619SOliver-Rainer Wittmann int code, 39307c6619SOliver-Rainer Wittmann const char *authn_type, 40c58749d7SAndre Fischer const char *realm, 41c58749d7SAndre Fischer apr_pool_t *pool ); 428590a0fdSAndre Fischer 43c58749d7SAndre Fischer extern "C" apr_status_t Serf_CertificateChainValidation( 44c58749d7SAndre Fischer void* pSerfSession, 45c58749d7SAndre Fischer int nFailures, 46*10e20387SAndre Fischer int error_depth, 47*10e20387SAndre Fischer const serf_ssl_certificate_t * const * pCertificateChainBase64Encoded, 48*10e20387SAndre Fischer apr_size_t nCertificateChainLength); 498590a0fdSAndre Fischer 508590a0fdSAndre Fischer extern "C" apr_status_t Serf_SetupRequest( serf_request_t *request, 518590a0fdSAndre Fischer void *setup_baton, 528590a0fdSAndre Fischer serf_bucket_t **req_bkt, 538590a0fdSAndre Fischer serf_response_acceptor_t *acceptor, 548590a0fdSAndre Fischer void **acceptor_baton, 558590a0fdSAndre Fischer serf_response_handler_t *handler, 568590a0fdSAndre Fischer void **handler_baton, 578590a0fdSAndre Fischer apr_pool_t * pool ); 588590a0fdSAndre Fischer 598590a0fdSAndre Fischer extern "C" serf_bucket_t* Serf_AcceptResponse( serf_request_t *request, 608590a0fdSAndre Fischer serf_bucket_t *stream, 618590a0fdSAndre Fischer void *acceptor_baton, 628590a0fdSAndre Fischer apr_pool_t *pool ); 638590a0fdSAndre Fischer 648590a0fdSAndre Fischer extern "C" apr_status_t Serf_HandleResponse( serf_request_t *request, 658590a0fdSAndre Fischer serf_bucket_t *response, 668590a0fdSAndre Fischer void *handler_baton, 678590a0fdSAndre Fischer apr_pool_t *pool ); 688590a0fdSAndre Fischer 698590a0fdSAndre Fischer #endif // INCLUDED_CALLBACKS_HXX 70