Skip to content

IOV/AEAD Extensions #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions gssapi/raw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@
from gssapi.raw.ext_password_add import * # noqa
except ImportError:
pass

# optional DCE (IOV/AEAD) support
try:
from gssapi.raw.ext_dce import * # noqa
# optional IOV MIC support (requires DCE support)
from gssapi.raw.ext_iov_mic import * # noqa
except ImportError:
pass
18 changes: 18 additions & 0 deletions gssapi/raw/ext_dce.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from gssapi.raw.cython_types cimport gss_buffer_desc, OM_uint32

cdef extern from "python_gssapi_ext.h":
ctypedef struct gss_iov_buffer_desc:
OM_uint32 type
gss_buffer_desc buffer
ctypedef gss_iov_buffer_desc* gss_iov_buffer_t

cdef class IOV:
cdef int iov_len
cdef bint c_changed

cdef bint _unprocessed
cdef list _buffs
cdef gss_iov_buffer_desc *_iov

cdef gss_iov_buffer_desc* __cvalue__(IOV self) except NULL
cdef _recreate_python_values(IOV self)
Loading