6868 parse_routing_context ,
6969 READ_ACCESS ,
7070 ServerInfo ,
71- TRUST_ALL_CERTIFICATES ,
72- TRUST_SYSTEM_CA_SIGNED_CERTIFICATES ,
7371 URI_SCHEME_BOLT ,
7472 URI_SCHEME_BOLT_SECURE ,
7573 URI_SCHEME_BOLT_SELF_SIGNED_CERTIFICATE ,
@@ -134,10 +132,6 @@ def driver(
134132 liveness_check_timeout : float | None = ...,
135133 max_connection_pool_size : int = ...,
136134 connection_timeout : float = ...,
137- trust : (
138- te .Literal ["TRUST_ALL_CERTIFICATES" ]
139- | te .Literal ["TRUST_SYSTEM_CA_SIGNED_CERTIFICATES" ]
140- ) = ...,
141135 resolver : (
142136 t .Callable [[Address ], t .Iterable [Address ]]
143137 | t .Callable [[Address ], t .Awaitable [t .Iterable [Address ]]]
@@ -213,20 +207,6 @@ def driver(
213207 _AsyncStaticClientCertificateProvider (client_certificate )
214208 )
215209
216- # TODO: 6.0 - remove "trust" config option
217- if "trust" in config and config ["trust" ] not in {
218- TRUST_ALL_CERTIFICATES ,
219- TRUST_SYSTEM_CA_SIGNED_CERTIFICATES ,
220- }:
221- raise ConfigurationError (
222- "The config setting `trust` values are {!r}" .format (
223- [
224- TRUST_ALL_CERTIFICATES ,
225- TRUST_SYSTEM_CA_SIGNED_CERTIFICATES ,
226- ]
227- )
228- )
229-
230210 if "trusted_certificates" in config and not isinstance (
231211 config ["trusted_certificates" ], TrustStore
232212 ):
@@ -243,16 +223,14 @@ def driver(
243223 SECURITY_TYPE_SECURE ,
244224 } and (
245225 "encrypted" in config
246- or "trust" in config
247226 or "trusted_certificates" in config
248227 or "ssl_context" in config
249228 ):
250- # TODO: 6.0 - remove "trust" from error message
251229 raise ConfigurationError (
252- 'The config settings "encrypted", "trust ", '
253- '"trusted_certificates", and "ssl_context" can only be '
254- "used with the URI schemes {!r}. Use the other URI "
255- "schemes {!r} for setting encryption settings." .format (
230+ 'The config settings "encrypted", "trusted_certificates ", '
231+ 'and "ssl_context" can only be used with the URI schemes '
232+ "{!r}. Use the other URI schemes {!r} for setting "
233+ "encryption settings." .format (
256234 [
257235 URI_SCHEME_BOLT ,
258236 URI_SCHEME_NEO4J ,
0 commit comments