Gregor Jasny
d992d0c049
Fix resource leaks ( #1048 )
2022-10-27 14:07:21 -07:00
Gregor Jasny
f488aa6921
Fix off-by-one when terminating gcm_nonce ( #1039 )
...
The `gcm_nonce` character array is `12 + 1` chars long. Writing to
`gcm_nonce[12 + 1]` overflows the array by one char.
2022-10-24 22:35:09 +02:00
Pavel Punsky
d9e74af75d
Cleanup unused include of header files ( #1004 )
...
Using clang-tidy to detect unused header files
Inspired by #855
Test Plan:
- Rebuild all on mac, review no warnings/errors
- Pass builds/docker build - review for no issues
2022-10-05 10:28:40 +02:00
Pavel Punsky
2cb395caa5
Fix issues reported by cppcheck ( #987 )
...
Fix a few additional warnings raised by cppcheck
Co-authored-by: Pavel Punsky <pavel.punsky@epicgames.com>
2022-09-24 10:08:35 +02:00
Pavel Punsky
ae259637eb
Replace bzero with memset ( #986 )
...
Replace all instances of `bzero` with memset by find-replace-edit.
This is straightforward replacement which is suboptimal in a few cases
(for example we could use calloc instead of malloc+memset(0))
Inspired by #855
2022-09-17 08:36:28 +02:00
Bradley T. Hughes
d2ee3ac291
Remove [su]{08,16,32,64}bits type defines
...
Do not overload the standard types with #defines, just use them
directly.
2019-03-08 09:08:30 +01:00
Bradley T. Hughes
7a43aae7c3
Remove ns_bzero(), ns_bcopy(), and ns_bcmp()
...
Do not overload bzero(), bcopy(), and bcmp() from strings.h
2019-03-07 08:39:20 +01:00
oleg
114881bc9a
oauth output fixed
2016-09-15 00:38:10 -07:00
Mészáros Mihály
959d49a7ef
set nonce ptr to null if string is empty
2016-09-12 10:24:48 +02:00
Mészáros Mihály
82ca50ebb2
tidy and small improvments
...
* rename long-term-key to auth-key
* add warning for auth key and token lifetime expiry or missmatch
* tidy sample script
2016-09-07 15:28:27 +02:00
Mészáros Mihály
d70d0353ec
tidy
2016-09-07 15:28:27 +02:00
Mészáros Mihály
3e1f1abcd2
ouput correction according to rfc7635 Appendix B
2016-09-07 15:28:27 +02:00
Mészáros Mihály
9c8b4ac715
Improved help
2016-09-07 15:28:27 +02:00
Mészáros Mihály
3d088acd4e
Improved timestamp doc and fix the gmt/UTC timestamp issue.
2016-09-07 15:28:27 +02:00
Mészáros Mihály
9b7256e32f
nonce decode and display & fix auto random nonce generation
2016-09-07 15:28:27 +02:00
Mészáros Mihály
d023a40b59
oauth token encode and decode utility
2016-09-07 15:28:27 +02:00