File tree 4 files changed +11
-2
lines changed
4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ Thin Mode Changes
20
20
#) Perform TLS server matching in python-oracledb instead of the Python SSL
21
21
library to allow alternate names to be checked
22
22
(`issue 415 <https://github.com/oracle/python-oracledb/issues/415 >`__).
23
+ #) If the database states that an out-of-band break check should not take place
24
+ during connect (by setting the `DISABLE_OOB_AUTO
25
+ <https://www.oracle.com/pls/topic/lookup?ctx=dblatest&
26
+ id=GUID-490A0B3B-FEF3-425A-81B0-6FA29D4B8C0E> `__ parameter to TRUE),
27
+ python-oracledb no longer attempts to do so
28
+ (`issue 419 <https://github.com/oracle/python-oracledb/issues/419 >`__).
23
29
#) Error ``DPY-6002: The distinguished name (DN) on the server certificate
24
30
does not match the expected value: "{expected_dn}" `` now shows the expected
25
31
value.
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ cdef class Capabilities:
41
41
uint32_t max_string_size
42
42
bint supports_fast_auth
43
43
bint supports_oob
44
+ bint supports_oob_check
44
45
bint supports_end_of_response
45
46
bint supports_pipelining
46
47
uint32_t sdu
@@ -60,6 +61,8 @@ cdef class Capabilities:
60
61
self .supports_oob = protocol_options & TNS_GSO_CAN_RECV_ATTENTION
61
62
if flags & TNS_ACCEPT_FLAG_FAST_AUTH:
62
63
self .supports_fast_auth = True
64
+ if flags & TNS_ACCEPT_FLAG_CHECK_OOB:
65
+ self .supports_oob_check = True
63
66
if protocol_version >= TNS_VERSION_MIN_END_OF_RESPONSE:
64
67
if flags & TNS_ACCEPT_FLAG_HAS_END_OF_RESPONSE:
65
68
self .compile_caps[TNS_CCAP_TTC4] |= TNS_CCAP_END_OF_RESPONSE
Original file line number Diff line number Diff line change @@ -762,6 +762,7 @@ cdef enum:
762
762
763
763
# accept flags
764
764
cdef enum :
765
+ TNS_ACCEPT_FLAG_CHECK_OOB = 0x00000001
765
766
TNS_ACCEPT_FLAG_FAST_AUTH = 0x10000000
766
767
TNS_ACCEPT_FLAG_HAS_END_OF_RESPONSE = 0x02000000
767
768
Original file line number Diff line number Diff line change @@ -289,8 +289,7 @@ cdef class Protocol(BaseProtocol):
289
289
290
290
# if we can use OOB, send an urgent message now followed by a reset
291
291
# marker to see if the server understands it
292
- if self ._caps.supports_oob \
293
- and self ._caps.protocol_version >= TNS_VERSION_MIN_OOB_CHECK:
292
+ if self ._caps.supports_oob and self ._caps.supports_oob_check:
294
293
self ._transport.send_oob_break()
295
294
self ._send_marker(self ._write_buf, TNS_MARKER_TYPE_RESET)
296
295
You can’t perform that action at this time.
0 commit comments