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

Move SSL management to a distinct private pointer. #855

Merged

Conversation

michael-grunder
Copy link
Collaborator

We need to allow our users to use redisContext->privdata as context
for any RESP3 PUSH messages, which means we can't use it for managing
SSL connections.

Bullet points:

  • Create a secondary redisContext member for internal use only called
    privctx and rename the redisContextFuncs->free_privdata accordingly.

  • Adds a free_privdata function pointer so the user can tie allocated
    memory to the lifetime of a redisContext (like they can already do
    with redisAsyncContext)

  • Enables SSL tests in .travis.yml (On Linux/OSX 64 bit)

We need to allow our users to use redisContext->privdata as context
for any RESP3 PUSH messages, which means we can't use it for managing
SSL connections.

Bulletpoints:

* Create a secondary redisContext member for internal use only called
  privctx and rename the redisContextFuncs->free_privdata accordingly.

* Adds a `free_privdata` function pointer so the user can tie allocated
  memory to the lifetime of a redisContext (like they can already do
  with redisAsyncContext)

* Enables SSL tests in .travis.yml
@michael-grunder
Copy link
Collaborator Author

michael-grunder commented Jul 29, 2020

@yossigo I'm not overly fluent in CMake so if there is a better way to structure the changes in CMakeLists.txt feel free to let me know.

Also, in the future, I'll try to get the SSL tests running in 32 bit Travis builds as well but running them at all in CI is a decent improvement.

Copy link
Member

@yossigo yossigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, CMake seems straight forward!

@michael-grunder michael-grunder merged commit d8ff723 into redis:master Jul 29, 2020
@michael-grunder michael-grunder deleted the dedicated-ssl-context-member branch July 29, 2020 18:53
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

Successfully merging this pull request may close these issues.

2 participants