-
Notifications
You must be signed in to change notification settings - Fork 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
add support for network enrollment token enrollment #765
Conversation
ekoby
commented
Nov 7, 2024
- simplify enrollment code memory usage
- fix memory leaks
- simplify enrollment code memory usage - fix memory leaks
let calling code log errors if so desired
[fixes #766]
.jwt_content = jwt, | ||
.enroll_key = key, | ||
.enroll_cert = cert, | ||
.token = jwt, |
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.
why rename these and why would this only be a minor bump? shouldn't this be a major bump since the api is changing?
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.
enroll_
prefix is redundant. it is minor to be consistent with how we always versioned things
if (url.query != NULL) { | ||
// TODO magic URL | ||
} else { | ||
// controller URL must be verifiable with default/OS cert bundle |
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.
will there be a clear log message or error when trying to use network jwt without a verifiable os / cert bundle?
#define ZITI_ENROLL_H | ||
|
||
#include <stdbool.h> | ||
#include "ziti_model.h" |
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.
should this be "ziti/ziti_model.h"? "ziti-sdk-c/includes" is the only public include dir.
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.
it should work "ziti_model.h" will also resolve against this file's dir
@@ -29,6 +29,7 @@ | |||
#include "ziti_model.h" | |||
#include "enums.h" | |||
#include "ziti_events.h" | |||
#include "enroll.h" |
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.
"ziti/enroll.h"?