Skip to content

Commit

Permalink
Update jsmn submodule to the lastest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kukushkin committed Feb 19, 2020
1 parent 58aaac1 commit 3dd86d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ PAM_DIR=$(LIBDIR)/security

all: pam_oauth2.so

jsmn/libjsmn.a:
$(MAKE) CFLAGS="$(CFLAGS)" -C jsmn

pam_oauth2.so: pam_oauth2.o jsmn/libjsmn.a
pam_oauth2.so: pam_oauth2.o
$(CC) -shared $^ -lcurl -o $@

install: pam_oauth2.so
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ sudo make install

```
auth sufficient pam_oauth2.so <tokeninfo url> <login field> key1=value2 key2=value2
account sufficient pam_oauth2.so <tokeninfo url> <login field> key1=value2 key2=value2
account sufficient pam_oauth2.so
```

## How it works
Expand Down
2 changes: 1 addition & 1 deletion jsmn
Submodule jsmn updated 11 files
+90 −0 .clang-format
+4 −0 .travis.yml
+14 −19 Makefile
+28 −13 README.md
+106 −98 example/jsondump.c
+58 −57 example/simple.c
+0 −314 jsmn.c
+422 −27 jsmn.h
+13 −9 test/test.h
+285 −324 test/tests.c
+79 −77 test/testutil.h
2 changes: 1 addition & 1 deletion pam_oauth2.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int query_token_info(const char * const tokeninfo_url, const char * const
} else {
syslog(LOG_AUTH|LOG_DEBUG, "pam_oauth2: failed to perform curl request");
}

free(url);
} else {
syslog(LOG_AUTH|LOG_DEBUG, "pam_oauth2: memory allocation failed");
Expand Down

0 comments on commit 3dd86d6

Please sign in to comment.