Skip to content
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

SecBufferDesc incorrectly declares public Pointer pBuffers #843

Closed
dblock opened this issue Aug 9, 2017 · 0 comments
Closed

SecBufferDesc incorrectly declares public Pointer pBuffers #843

dblock opened this issue Aug 9, 2017 · 0 comments

Comments

@dblock
Copy link
Member

dblock commented Aug 9, 2017

See discussion in #839 (comment). Structure broken with cbBuffers > 1.

matthiasblaesing added a commit to matthiasblaesing/jna that referenced this issue Aug 9, 2017
(Re-)Bind SSPI functions:
- InitializeSecurityContext
- AcceptSecurityContext
- QueryCredentialsAttributes
- QuerySecurityPackageInfo
- EncryptMessage
- DecryptMessage
- MakeSignature
- VerifySignature

Add binding for SEC_WINNT_AUTH_IDENTITY structure.

The existing SecBufferDesc binding is replaced as the binding does
not correctly map the native structure. The pBuffers member is not
an array of SecBuffer.ByReference, but a pointer to an array of
SecBuffer's. This manifests when more than one buffer is specified.

The SecBufferDesc structure is the literal transliteration of the
native C header. In addition a ManagedSecBufferDesc was introduced, that
allows easy access to its members, as long, as the structure is managed
from the java side.

Closes: java-native-access#843
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants