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

GSSAPI wrap/unwrap functions should honor max_buffer #13

Open
karth295 opened this issue Mar 24, 2016 · 2 comments
Open

GSSAPI wrap/unwrap functions should honor max_buffer #13

karth295 opened this issue Mar 24, 2016 · 2 comments

Comments

@karth295
Copy link

If I call client.wrap(HUGE_BUFFER) or client.unwrap(HUGE_BUFFER), where HUGE_BUFFER > max_buffer, it should raise an exception. The caller should probably call wrap() or unwrap() in a loop based on client._chosen_mech.max_buffer.

thobbs added a commit that referenced this issue Mar 25, 2016
@thobbs
Copy link
Owner

thobbs commented Mar 25, 2016

@karth295 thanks for the report! Does the commit above seem reasonable to you?

@karth295
Copy link
Author

Is a buffer size negotiated in the plain algorithm? You only need to call wrap() or unwrap() if qop=auth-int or auth-conf, which it won't be for the plain mechanism.

Otherwise LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants