| 461 | } |
| 462 | |
| 463 | static void |
| 464 | gaflight_client_options_class_init(GAFlightClientOptionsClass *klass) |
| 465 | { |
| 466 | auto gobject_class = G_OBJECT_CLASS(klass); |
| 467 | |
| 468 | gobject_class->finalize = gaflight_client_options_finalize; |
| 469 | gobject_class->set_property = gaflight_client_options_set_property; |
| 470 | gobject_class->get_property = gaflight_client_options_get_property; |
| 471 | |
| 472 | auto options = arrow::flight::FlightClientOptions::Defaults(); |
| 473 | GParamSpec *spec; |
| 474 | /** |
| 475 | * GAFlightClientOptions:tls-root-certificates: |
| 476 | * |
| 477 | * Root certificates to use for validating server certificates. |
| 478 | * |
| 479 | * Since: 14.0.0 |
| 480 | */ |
| 481 | spec = g_param_spec_string("tls-root-certificates", |
| 482 | nullptr, |
| 483 | nullptr, |
| 484 | options.tls_root_certs.c_str(), |
| 485 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 486 | g_object_class_install_property(gobject_class, PROP_TLS_ROOT_CERTIFICATES, spec); |
| 487 | |
| 488 | /** |
| 489 | * GAFlightClientOptions:override-host-name: |
| 490 | * |
| 491 | * Override the host name checked by TLS. Use with caution. |
| 492 | * |
| 493 | * Since: 14.0.0 |
| 494 | */ |
| 495 | spec = g_param_spec_string("override-host-name", |
| 496 | nullptr, |
| 497 | nullptr, |
| 498 | options.override_hostname.c_str(), |
| 499 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 500 | g_object_class_install_property(gobject_class, PROP_OVERRIDE_HOST_NAME, spec); |
| 501 | |
| 502 | /** |
| 503 | * GAFlightClientOptions:certificate-chain: |
| 504 | * |
| 505 | * The client certificate to use if using Mutual TLS. |
| 506 | * |
| 507 | * Since: 14.0.0 |
| 508 | */ |
| 509 | spec = g_param_spec_string("certificate-chain", |
| 510 | nullptr, |
| 511 | nullptr, |
| 512 | options.cert_chain.c_str(), |
| 513 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 514 | g_object_class_install_property(gobject_class, PROP_CERTIFICATE_CHAIN, spec); |
| 515 | |
| 516 | /** |
| 517 | * GAFlightClientOptions:private-key: |
| 518 | * |
| 519 | * The private key associated with the client certificate for Mutual |
| 520 | * TLS. |
nothing calls this directly
no test coverage detected