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
{{ message }}
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
CONFIG.set(cfg).map_err(|_| String::from("config global was already set"))?;
89
+
Ok(())
90
+
}
91
+
92
+
#[allow(clippy::expect_used)]
93
+
/// Gets a static reference to the parsed configuration file. Will panic, if [Self] has not been initialized using [Self::init()].
94
+
pubfnget_or_panic() -> &'staticSelf{
95
+
CONFIG.get().expect("config has not been initialized yet")
96
+
}
97
+
}
98
+
99
+
#[derive(Debug,Deserialize,Default)]
100
+
/// TLS configuration modes. Also called `sslconfig` by PostgreSQL. See <https://www.postgresql.org/docs/current/libpq-ssl.html#:~:text=32.1.%C2%A0SSL%20Mode-,descriptions,-sslmode>
101
+
/// for the security implications of this choice.
102
+
pubenumTlsConfig{
103
+
/// I don't care about security, and I don't want to pay the overhead of
104
+
/// encryption.
105
+
Disable,
106
+
/// I don't care about security, but I will pay the overhead of encryption
107
+
/// if the server insists on it.
108
+
Allow,
109
+
/// I don't care about encryption, but I wish to pay the overhead of
110
+
/// encryption if the server supports it.
111
+
Prefer,
112
+
/// I want my data to be encrypted, and I accept the overhead. I trust that
113
+
/// the network will make sure I always connect to the server I want.
114
+
#[default]
115
+
Require,
116
+
/// I want my data encrypted, and I accept the overhead. I want to be sure
117
+
/// that I connect to a server that I trust.
118
+
VerifyCa,
119
+
/// I want my data encrypted, and I accept the overhead. I want to be sure
120
+
/// that I connect to a server I trust, and that it's the one I specify.
0 commit comments