Skip to content

Commit

Permalink
Support empty values in gss_key_value_set_desc
Browse files Browse the repository at this point in the history
Effectively, this performs the None -> NULL transformation between Python and
C.  Currently both MIT krb5 and Heimdal will both treat NULL as an unspecified
value, which causes it to be skipped.

Resolves: pythongssapi#182
  • Loading branch information
frozencemetery committed Aug 16, 2019
1 parent a965b0e commit 2d12ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gssapi/raw/ext_cred_store.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ cdef gss_key_value_set_desc* c_create_key_value_set(dict values) except NULL:

for (i, (k, v)) in enumerate(values.items()):
res.elements[i].key = k
res.elements[i].value = v
if v:
res.elements[i].value = v

return res

Expand Down

0 comments on commit 2d12ed9

Please sign in to comment.