Skip to content

API Fixes to update to latest TLS API from aws-c-io #14

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

Merged
merged 2 commits into from
Mar 18, 2019
Merged

Conversation

justinboswell
Copy link
Contributor

Issue #, if available: #13

Description of changes: API Fixes to update to latest TLS API from aws-c-io

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@justinboswell justinboswell requested a review from a team March 18, 2019 20:58
@justinboswell justinboswell merged commit ca5ea86 into master Mar 18, 2019
@justinboswell justinboswell deleted the apifixes branch March 18, 2019 21:21
@@ -186,7 +186,7 @@ int main(int argc, char *argv[])
}

auto connectionOptions = tlsCtx.NewConnectionOptions();
connectionOptions.server_name = endpoint.c_str();
connectionOptions.server_name = aws_string_new_from_c_str(aws_default_allocator(), endpoint.c_str());
Copy link
Contributor

Choose a reason for hiding this comment

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

This is way beyond the scope of this CR, but as a general whine, I dislike the way we don't do full cleanup . Sure, the process ends, but given how people tend to use code samples (cut-and-paste-and-modify), anyone who uses this and embeds it somewhere other than main() is going to naturally have resource issues.

I've seen this in some of the unit tests to, where we don't necessarily call clean_up on various os resource wrappers (or leave them locked, etc...). Those will get the cut-and-paste treatment too.

yourslab pushed a commit to yourslab/aws-iot-device-sdk-cpp-v2 that referenced this pull request Apr 22, 2021
@lanceyao1009 lanceyao1009 mentioned this pull request Jul 5, 2024
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.

3 participants