SerfCallbacks.cxx (307c6619) | SerfCallbacks.cxx (c58749d7) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 47 unchanged lines hidden (view full) --- 56 password, 57 request, 58 code, 59 authn_type, 60 realm, 61 pool ); 62} 63 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 47 unchanged lines hidden (view full) --- 56 password, 57 request, 58 code, 59 authn_type, 60 realm, 61 pool ); 62} 63 |
64extern "C" apr_status_t Serf_CertificationValidation( void *data, 65 int failures, 66 const serf_ssl_certificate_t *cert ) | 64extern "C" apr_status_t Serf_CertificateChainValidation( 65 void* pSerfSession, 66 int nFailures, 67 const char** pCertificateChainBase64Encoded, 68 int nCertificateChainLength) |
67{ | 69{ |
68 SerfSession* pSerfSession = static_cast< SerfSession* >( data ); 69 return pSerfSession->verifySerfCertificate( failures, 70 cert ); | 70 return static_cast<SerfSession*>(pSerfSession) 71 ->verifySerfCertificateChain(nFailures, pCertificateChainBase64Encoded, nCertificateChainLength); |
71} 72 73extern "C" apr_status_t Serf_SetupRequest( serf_request_t *request, 74 void *setup_baton, 75 serf_bucket_t **req_bkt, 76 serf_response_acceptor_t *acceptor, 77 void **acceptor_baton, 78 serf_response_handler_t *handler, --- 35 unchanged lines hidden --- | 72} 73 74extern "C" apr_status_t Serf_SetupRequest( serf_request_t *request, 75 void *setup_baton, 76 serf_bucket_t **req_bkt, 77 serf_response_acceptor_t *acceptor, 78 void **acceptor_baton, 79 serf_response_handler_t *handler, --- 35 unchanged lines hidden --- |