Skip to content

Commit

Permalink
Fix deserialize signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Apr 28, 2019
1 parent 3c07a1b commit ada0c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scitokens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int scitoken_serialize(const SciToken token, char **value, char **err_msg) {
return 0;
}

int scitoken_deserialize(const char *value, SciToken *token, char **allowed_issuers, char **err_msg) {
int scitoken_deserialize(const char *value, SciToken *token, const char **allowed_issuers, char **err_msg) {
if (value == nullptr) {
if (err_msg) {*err_msg = strdup("Token may not be NULL");}
return -1;
Expand Down
2 changes: 1 addition & 1 deletion src/scitokens.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void scitoken_set_lifetime(SciToken token, int lifetime);

int scitoken_serialize(const SciToken token, char **value, char **err_msg);

int scitoken_deserialize(const char *value, SciToken *token, char **allowed_issuers, char **err_msg);
int scitoken_deserialize(const char *value, SciToken *token, const char **allowed_issuers, char **err_msg);

Validator validator_create();

Expand Down

0 comments on commit ada0c1e

Please sign in to comment.