You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
/// Start Ssl handshake without negotiation, only works for PostgreSQL 17+
60
64
Direct,
@@ -116,9 +120,15 @@ pub enum Host {
116
120
/// path to the directory containing Unix domain sockets. Otherwise, it is treated as a hostname. Multiple hosts
117
121
/// can be specified, separated by commas. Each host will be tried in turn when connecting. Required if connecting
118
122
/// with the `connect` method.
119
-
/// * `sslnegotiation` - TLS negotiation method. If set to `direct`, the client will perform direct TLS handshake, this only works for PostgreSQL 17 and newer.
120
-
/// Note that you will need to setup ALPN of TLS client configuration to `postgresql` when using direct TLS.
121
-
/// If set to `postgres`, the default value, it follows original postgres wire protocol to perform the negotiation.
123
+
/// * `sslnegotiation` - TLS negotiation method. If set to `direct`, the client
124
+
/// will perform direct TLS handshake, this only works for PostgreSQL 17 and
125
+
/// newer.
126
+
/// Note that you will need to setup ALPN of TLS client configuration to
127
+
/// `postgresql` when using direct TLS. If you are using postgres_openssl
128
+
/// as TLS backend, a `postgres_openssl::set_postgresql_alpn` helper is
129
+
/// provided for that.
130
+
/// If set to `postgres`, the default value, it follows original postgres
131
+
/// wire protocol to perform the negotiation.
122
132
/// * `hostaddr` - Numeric IP address of host to connect to. This should be in the standard IPv4 address format,
123
133
/// e.g., 172.28.40.9. If your machine supports IPv6, you can also use those addresses.
124
134
/// If this parameter is not specified, the value of `host` will be looked up to find the corresponding IP address,