mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:53:32 +03:00
cmake: fix unity builds for more build combinations
By using unique static function/variable names in source files implementing these interfaces. - OpenLDAP combined with any SSH backend. - MultiSSL with mbedTLS, OpenSSL, wolfSSL, SecureTransport. Closes #12027
This commit is contained in:
parent
3fd80c7b59
commit
fd328fcaf1
5 changed files with 74 additions and 67 deletions
|
|
@ -830,9 +830,9 @@ static const unsigned char ecDsaSecp384r1SpkiHeader[] = {
|
|||
#endif /* SECTRANSP_PINNEDPUBKEY_V1 */
|
||||
#endif /* SECTRANSP_PINNEDPUBKEY */
|
||||
|
||||
static OSStatus bio_cf_in_read(SSLConnectionRef connection,
|
||||
void *buf,
|
||||
size_t *dataLength) /* IN/OUT */
|
||||
static OSStatus sectransp_bio_cf_in_read(SSLConnectionRef connection,
|
||||
void *buf,
|
||||
size_t *dataLength) /* IN/OUT */
|
||||
{
|
||||
struct Curl_cfilter *cf = (struct Curl_cfilter *)connection;
|
||||
struct ssl_connect_data *connssl = cf->ctx;
|
||||
|
|
@ -870,9 +870,9 @@ static OSStatus bio_cf_in_read(SSLConnectionRef connection,
|
|||
return rtn;
|
||||
}
|
||||
|
||||
static OSStatus bio_cf_out_write(SSLConnectionRef connection,
|
||||
const void *buf,
|
||||
size_t *dataLength) /* IN/OUT */
|
||||
static OSStatus sectransp_bio_cf_out_write(SSLConnectionRef connection,
|
||||
const void *buf,
|
||||
size_t *dataLength) /* IN/OUT */
|
||||
{
|
||||
struct Curl_cfilter *cf = (struct Curl_cfilter *)connection;
|
||||
struct ssl_connect_data *connssl = cf->ctx;
|
||||
|
|
@ -2100,7 +2100,9 @@ static CURLcode sectransp_connect_step1(struct Curl_cfilter *cf,
|
|||
}
|
||||
}
|
||||
|
||||
err = SSLSetIOFuncs(backend->ssl_ctx, bio_cf_in_read, bio_cf_out_write);
|
||||
err = SSLSetIOFuncs(backend->ssl_ctx,
|
||||
sectransp_bio_cf_in_read,
|
||||
sectransp_bio_cf_out_write);
|
||||
if(err != noErr) {
|
||||
failf(data, "SSL: SSLSetIOFuncs() failed: OSStatus %d", err);
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue