We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7018e58 commit 3826b71Copy full SHA for 3826b71
gssapi/raw/cython_converters.pyx
@@ -29,6 +29,13 @@ cdef gss_OID_set c_get_mech_oid_set(object mechs):
29
cdef object c_create_oid_set(gss_OID_set mech_set, bint free=True):
30
"""Convert a GSS OID set struct to a set of OIDs"""
31
32
+ if mech_set == GSS_C_NO_OID_SET:
33
+ # return the empty set if the we get passed the C equivalent
34
+ # (it could be argued that the C equivalent is closer to None,
35
+ # but returning None would make the API harder to work with,
36
+ # without much value)
37
+ return set()
38
+
39
py_set = set()
40
cdef i
41
for i in range(mech_set.count):
0 commit comments