Skip to content

Commit

Permalink
Fix a couple of errors found by CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ronf committed Aug 12, 2020
1 parent 56aa073 commit 489dccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkcs11/_pkcs11.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ class Session(types.Session):

def seed_random(self, seed):
cdef CK_SESSION_HANDLE handle = self._handle
cdef CK_BYTE *seed_data = seed.data
cdef CK_BYTE *seed_data = seed
cdef CK_ULONG seed_len = len(seed)

with nogil:
Expand Down Expand Up @@ -925,8 +925,8 @@ class EncryptMixin(types.EncryptMixin):
cdef CK_SESSION_HANDLE handle = self.session._handle
cdef CK_MECHANISM *mech_data = mech.data
cdef CK_OBJECT_HANDLE key = self._handle
cdef CK_BYTE *data_ptr = data
cdef CK_ULONG data_len = len(data)
cdef CK_BYTE *data_ptr
cdef CK_ULONG data_len
cdef CK_ULONG length
cdef CK_BYTE [:] part_out = CK_BYTE_buffer(buffer_size)

Expand Down

0 comments on commit 489dccd

Please sign in to comment.