-
Notifications
You must be signed in to change notification settings - Fork 620
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
Greengrass local auth demo #1831
Conversation
sslStatus = ( int32_t ) SSL_set_tlsext_host_name( | ||
pSsl, pOpensslCredentials->sniHostName ); | ||
|
||
if( sslStatus != 1 ) | ||
{ | ||
LogError( ( "Failed to set server name %s for SNI.", | ||
pOpensslCredentials->sniHostName ) ); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that we had to split platform/posix/transport/src/openssl_posix.c
into this file to get around the unit tests preventing modifications that would allow the separate hostname standards. After this PR is merged, the openssl_posix.c
unit tests should be removed or modified to allow openssl_posix.c
to support both hostname standards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have plans to remove those; once those are removed, we can merge my other PR on this repo, and then the extra copy will no longer be needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this demo is merged, I can rebase/fixup the other PR which will de-duplicate them
d0691e1
to
8bf52f7
Compare
8bf52f7
to
93e7b73
Compare
0548e2b
to
aee59eb
Compare
* in eventCallback to reflect the status of the SUBACK sent by the broker. */ | ||
if( ( returnStatus == EXIT_SUCCESS ) && ( globalSubAckStatus == MQTTSubAckFailure ) ) | ||
{ | ||
LogInfo( ( "Server rejected subscription request." ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Should this be WARN level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, probably; it was Info, since other demos have it info
a92f65d
This PR adds a demo for connecting a device to a Greengrass core using the new feature that allows using custom CAs.
For more info on the feature, see:
https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-release-2022-11-15.html
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.