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

Fix for setting scopes via API #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/certifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ char * certifier_create_csr_post_data(CertifierPropMap * props, const unsigned c
const char * authenticated_tag_1 = property_get(props, CERTIFIER_OPT_AUTH_TAG_1);
size_t num_days = (size_t) property_get(props, CERTIFIER_OPT_VALIDITY_DAYS);
bool is_certificate_lite = property_is_option_set(props, CERTIFIER_OPTION_CERTIFICATE_LITE);
bool use_scopes = property_is_option_set(props, CERTIFIER_OPTION_USE_SCOPES);
bool use_scopes = property_get(props, CERTIFIER_OPTION_USE_SCOPES);

Choose a reason for hiding this comment

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

Suggested change
bool use_scopes = property_get(props, CERTIFIER_OPTION_USE_SCOPES);
bool use_scopes = (bool) property_get(props, CERTIFIER_OPT_USE_SCOPES);


json_object_set_string(root_object, "csr", (const char *) csr);

Expand Down