• Home
  • Raw
  • Download

Lines Matching refs:backend

301   struct ssl_backend_data *backend = connssl->backend;  in bearssl_connect_step1()  local
344 ret = load_cafile(ssl_cafile, &backend->anchors, &backend->anchors_len); in bearssl_connect_step1()
357 br_ssl_client_init_full(&backend->ctx, &backend->x509.minimal, in bearssl_connect_step1()
358 backend->anchors, backend->anchors_len); in bearssl_connect_step1()
359 br_ssl_engine_set_versions(&backend->ctx.eng, version_min, version_max); in bearssl_connect_step1()
360 br_ssl_engine_set_buffer(&backend->ctx.eng, backend->buf, in bearssl_connect_step1()
361 sizeof(backend->buf), 1); in bearssl_connect_step1()
364 backend->x509.vtable = &x509_vtable; in bearssl_connect_step1()
365 backend->x509.verifypeer = verifypeer; in bearssl_connect_step1()
366 backend->x509.verifyhost = verifyhost; in bearssl_connect_step1()
367 br_ssl_engine_set_x509(&backend->ctx.eng, &backend->x509.vtable); in bearssl_connect_step1()
375 br_ssl_engine_set_session_parameters(&backend->ctx.eng, session); in bearssl_connect_step1()
394 backend->protocols[cur++] = ALPN_H2; in bearssl_connect_step1()
399 backend->protocols[cur++] = ALPN_HTTP_1_1; in bearssl_connect_step1()
402 br_ssl_engine_set_protocol_names(&backend->ctx.eng, in bearssl_connect_step1()
403 backend->protocols, cur); in bearssl_connect_step1()
419 if(!br_ssl_client_reset(&backend->ctx, hostname, 0)) in bearssl_connect_step1()
421 backend->active = TRUE; in bearssl_connect_step1()
433 struct ssl_backend_data *backend = connssl->backend; in bearssl_run_until() local
442 state = br_ssl_engine_current_state(&backend->ctx.eng); in bearssl_run_until()
444 err = br_ssl_engine_last_error(&backend->ctx.eng); in bearssl_run_until()
474 buf = br_ssl_engine_sendrec_buf(&backend->ctx.eng, &len); in bearssl_run_until()
484 br_ssl_engine_sendrec_ack(&backend->ctx.eng, ret); in bearssl_run_until()
487 buf = br_ssl_engine_recvrec_buf(&backend->ctx.eng, &len); in bearssl_run_until()
501 br_ssl_engine_recvrec_ack(&backend->ctx.eng, ret); in bearssl_run_until()
510 struct ssl_backend_data *backend = connssl->backend; in bearssl_connect_step2() local
518 if(br_ssl_engine_current_state(&backend->ctx.eng) == BR_SSL_CLOSED) { in bearssl_connect_step2()
531 struct ssl_backend_data *backend = connssl->backend; in bearssl_connect_step3() local
539 protocol = br_ssl_engine_get_selected_protocol(&backend->ctx.eng); in bearssl_connect_step3()
567 br_ssl_engine_get_session_parameters(&backend->ctx.eng, session); in bearssl_connect_step3()
594 struct ssl_backend_data *backend = connssl->backend; in bearssl_send() local
602 app = br_ssl_engine_sendapp_buf(&backend->ctx.eng, &applen); in bearssl_send()
608 if(backend->pending_write) { in bearssl_send()
609 applen = backend->pending_write; in bearssl_send()
610 backend->pending_write = 0; in bearssl_send()
616 br_ssl_engine_sendapp_ack(&backend->ctx.eng, applen); in bearssl_send()
617 br_ssl_engine_flush(&backend->ctx.eng, 0); in bearssl_send()
618 backend->pending_write = applen; in bearssl_send()
627 struct ssl_backend_data *backend = connssl->backend; in bearssl_recv() local
634 app = br_ssl_engine_recvapp_buf(&backend->ctx.eng, &applen); in bearssl_recv()
640 br_ssl_engine_recvapp_ack(&backend->ctx.eng, applen); in bearssl_recv()
755 struct ssl_backend_data *backend = connssl->backend; in bearssl_data_pending() local
756 return br_ssl_engine_current_state(&backend->ctx.eng) & BR_SSL_RECVAPP; in bearssl_data_pending()
804 struct ssl_backend_data *backend = connssl->backend; in bearssl_get_internals() local
805 return &backend->ctx; in bearssl_get_internals()
812 struct ssl_backend_data *backend = connssl->backend; in bearssl_close() local
815 if(backend->active) { in bearssl_close()
816 br_ssl_engine_close(&backend->ctx.eng); in bearssl_close()
819 for(i = 0; i < backend->anchors_len; ++i) in bearssl_close()
820 free(backend->anchors[i].dn.data); in bearssl_close()
821 free(backend->anchors); in bearssl_close()