Lines Matching refs:backend

265   struct st_ssl_backend_data *backend =  in sectransp_bio_cf_in_read()  local
266 (struct st_ssl_backend_data *)connssl->backend; in sectransp_bio_cf_in_read()
281 backend->ssl_direction = FALSE; in sectransp_bio_cf_in_read()
305 struct st_ssl_backend_data *backend = in sectransp_bio_cf_out_write() local
306 (struct st_ssl_backend_data *)connssl->backend; in sectransp_bio_cf_out_write()
320 backend->ssl_direction = TRUE; in sectransp_bio_cf_out_write()
723 struct st_ssl_backend_data *backend, in sectransp_set_ssl_version_min_max() argument
772 err = SSLSetProtocolVersionMin(backend->ssl_ctx, ver_min); in sectransp_set_ssl_version_min_max()
777 err = SSLSetProtocolVersionMax(backend->ssl_ctx, ver_max); in sectransp_set_ssl_version_min_max()
799 SSLSetProtocolVersionEnabled(backend->ssl_ctx, kSSLProtocolAll, FALSE); in sectransp_set_ssl_version_min_max()
800 SSLSetProtocolVersionEnabled(backend->ssl_ctx, kTLSProtocol1, TRUE); in sectransp_set_ssl_version_min_max()
1034 struct st_ssl_backend_data *backend = local
1035 (struct st_ssl_backend_data *)connssl->backend;
1051 DEBUGASSERT(backend);
1059 if(backend->ssl_ctx)
1060 CFRelease(backend->ssl_ctx);
1061 backend->ssl_ctx = SSLCreateContext(NULL, kSSLClientSide, kSSLStreamType);
1062 if(!backend->ssl_ctx) {
1070 if(backend->ssl_ctx)
1071 (void)SSLDisposeContext(backend->ssl_ctx);
1072 err = SSLNewContext(FALSE, &(backend->ssl_ctx));
1080 if(backend->ssl_ctx)
1081 (void)SSLDisposeContext(backend->ssl_ctx);
1082 err = SSLNewContext(FALSE, &(backend->ssl_ctx));
1088 backend->ssl_write_buffered_length = 0UL; /* reset buffered write length */
1090 result = sectransp_set_ssl_version_min_max(data, backend, conn_config);
1111 err = SSLSetALPNProtocols(backend->ssl_ctx, alpnArr);
1179 err = SSLSetCertificate(backend->ssl_ctx, certs);
1245 err = SSLSetSessionOption(backend->ssl_ctx,
1255 err = SSLSetEnableCertVerify(backend->ssl_ctx,
1264 err = SSLSetEnableCertVerify(backend->ssl_ctx,
1289 err = SSLSetPeerDomainName(backend->ssl_ctx, server, strlen(server));
1308 result = sectransp_set_selected_ciphers(data, backend->ssl_ctx, ciphers);
1311 result = sectransp_set_default_ciphers(data, backend->ssl_ctx);
1323 SSLSetSessionOption(backend->ssl_ctx, kSSLSessionOptionSendOneByteRecord,
1325 SSLSetSessionOption(backend->ssl_ctx, kSSLSessionOptionFalseStart,
1340 err = SSLSetPeerID(backend->ssl_ctx, ssl_sessionid, ssl_sessionid_len);
1359 err = SSLSetPeerID(backend->ssl_ctx, ssl_sessionid, ssl_sessionid_len);
1375 err = SSLSetIOFuncs(backend->ssl_ctx,
1383 err = SSLSetConnection(backend->ssl_ctx, cf);
1801 struct st_ssl_backend_data *backend = local
1802 (struct st_ssl_backend_data *)connssl->backend;
1809 DEBUGASSERT(backend);
1815 err = SSLHandshake(backend->ssl_ctx);
1820 connssl->io_need = backend->ssl_direction ?
1831 backend->ssl_ctx);
2043 pkp_pin_peer_pubkey(data, backend->ssl_ctx,
2053 (void)SSLGetNegotiatedCipher(backend->ssl_ctx, &cipher);
2054 (void)SSLGetNegotiatedProtocolVersion(backend->ssl_ctx, &protocol);
2092 err = SSLCopyALPNProtocols(backend->ssl_ctx, &alpnArr);
2178 struct st_ssl_backend_data *backend = local
2179 (struct st_ssl_backend_data *)connssl->backend;
2186 DEBUGASSERT(backend);
2191 if(!backend->ssl_ctx)
2197 err = SSLCopyPeerTrust(backend->ssl_ctx, &trust);
2219 err = SSLCopyPeerTrust(backend->ssl_ctx, &trust);
2235 err = SSLCopyPeerCertificates(backend->ssl_ctx, &server_certs);
2253 err = SSLCopyPeerCertificates(backend->ssl_ctx, &server_certs);
2424 struct st_ssl_backend_data *backend = local
2425 (struct st_ssl_backend_data *)connssl->backend;
2431 DEBUGASSERT(backend);
2432 if(!backend->ssl_ctx || cf->shutdown) {
2440 if(send_shutdown && !backend->sent_shutdown) {
2444 err = SSLClose(backend->ssl_ctx);
2447 backend->sent_shutdown = TRUE;
2461 if(!backend->sent_shutdown) {
2502 struct st_ssl_backend_data *backend = local
2503 (struct st_ssl_backend_data *)connssl->backend;
2507 DEBUGASSERT(backend);
2509 if(backend->ssl_ctx) {
2513 CFRelease(backend->ssl_ctx);
2516 (void)SSLDisposeContext(backend->ssl_ctx);
2519 (void)SSLDisposeContext(backend->ssl_ctx);
2521 backend->ssl_ctx = NULL;
2534 struct st_ssl_backend_data *backend = local
2535 (struct st_ssl_backend_data *)connssl->backend;
2540 DEBUGASSERT(backend);
2542 if(backend->ssl_ctx) { /* SSL is in use */
2544 err = SSLGetBufferedReadSize(backend->ssl_ctx, &buffer);
2600 struct st_ssl_backend_data *backend = local
2601 (struct st_ssl_backend_data *)connssl->backend;
2605 DEBUGASSERT(backend);
2622 if(backend->ssl_write_buffered_length) {
2624 err = SSLWrite(backend->ssl_ctx, NULL, 0UL, &processed);
2629 processed = backend->ssl_write_buffered_length;
2630 backend->ssl_write_buffered_length = 0UL;
2643 err = SSLWrite(backend->ssl_ctx, mem, len, &processed);
2649 backend->ssl_write_buffered_length = len;
2669 struct st_ssl_backend_data *backend = local
2670 (struct st_ssl_backend_data *)connssl->backend;
2675 DEBUGASSERT(backend);
2679 err = SSLRead(backend->ssl_ctx, buf, buffersize, &processed);
2706 backend->ssl_ctx);
2725 struct st_ssl_backend_data *backend = local
2726 (struct st_ssl_backend_data *)connssl->backend;
2728 DEBUGASSERT(backend);
2729 return backend->ssl_ctx;