Skip to content

Commit

Permalink
add props enable.ssl.certificate.verification
Browse files Browse the repository at this point in the history
  • Loading branch information
tabVersion committed Feb 9, 2024
1 parent d2c547a commit e713af5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/connector/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ pub struct RdKafkaPropertiesCommon {
#[serde(rename = "properties.client.id")]
#[serde_as(as = "Option<DisplayFromStr>")]
pub client_id: Option<String>,

#[serde(rename = "properties.enable.ssl.certificate.verification")]
#[serde_as(as = "Option<DisplayFromStr>")]
pub enable_ssl_certificate_verification: Option<bool>,
}

impl RdKafkaPropertiesCommon {
Expand All @@ -275,6 +279,9 @@ impl RdKafkaPropertiesCommon {
if let Some(v) = self.client_id.as_ref() {
c.set("client.id", v);
}
if let Some(v) = self.enable_ssl_certificate_verification {
c.set("enable.ssl.certificate.verification", v.to_string());
}
}
}

Expand Down

0 comments on commit e713af5

Please sign in to comment.