Commit graph

25 commits

Author SHA1 Message Date
Michael Scire
eef1139b82 add support for 9.x+ new ACID keys 2020-02-21 14:00:47 -08:00
Michael Scire
55e625d67d fix npdm output, modern keygen 2020-01-15 02:06:03 -08:00
Lioncash
653ed85536
npdm: Silence -Wformat warnings
One case was specifying a size smaller than the actual type being
printed, while the other was caused due to C's integral promotion rules.
Operation on types smaller than int, will be promoted to an int. In this
case, the mask was unnecessary anyways, so it can just be removed.
2019-05-05 00:29:55 -04:00
SciresM
d773aa91fa
Merge pull request #53 from lioncash/const
Resolve remaining -Wdiscarded-qualifiers warnings
2018-11-04 03:15:51 +09:00
roblabla
867a91cc48 Avoid duplicate keys in service_access
Splits service_access into service_host and service_access, both arrays of
string.
2018-09-29 01:24:39 +00:00
roblabla
3197e5f386 Fix a small bug in cJSON_AddU32ToObject 2018-09-24 23:46:12 +00:00
roblabla
075b91620d Avoid duplicate keys in generated kernel caps 2018-09-24 23:46:12 +00:00
Lioncash
83077e3991 npdm: Resolve -Wdiscarded-qualifiers warnings
Like with 52486c12e3, these functions'
return types was char*, which casts away the constness of the string
literals.
2018-09-02 09:59:12 -04:00
SciresM
0269d0b91b
Merge pull request #43 from lioncash/func
Mark identifiers as internally linked where appropriate
2018-08-16 20:55:15 -07:00
Lioncash
ce7d5d85da main, npdm: Make parameters/members const where applicable
The data pointed to isn't modified and in the case of char*, resolves
-Wdiscarded-qualifiers warnings, as string literals are const char* and
are used with the relevant functions.
2018-08-11 23:42:40 -04:00
Lioncash
29e27ee831 Mark identifiers as internally linked where appropriate
Makes it more obvious which parts are only used within the translation
unit, and which functions are part of the exposed interface in the
headers (and also has the benefit of allowing better
inlining/optimizing)
2018-08-11 22:49:22 -04:00
Lioncash
54abbac0b3 kip, npdm: Prevent const qualifier discarding warnings from occurring
Given this is an allocated buffer that the caller needs to deal with,
the return type being const causes warnings when passing to free.
2018-08-11 22:22:32 -04:00
Lioncash
2098e42ebe npdm: Free JSON buffer when done with it in npdm_save()
It's the caller's responsibility to free the buffer returned by cJSON,
so we do that here to avoid a leak.
2018-08-11 21:44:39 -04:00
Lioncash
ab6fe349da npdm: Invert top-level conditional within ndpm_save()
Allows for denesting of the code.
2018-08-11 21:43:46 -04:00
Michael Scire
04926319f4 JSON: Output mapped pages/sizes as u32. 2018-05-02 22:10:57 -06:00
Michael Scire
d2d9146f68 Add JSON output for KIP1/INI, fix encrypted package2 input 2018-05-02 22:09:11 -06:00
Michael Scire
cdbcdf0d4a Update outdated SVC Names. 2018-05-02 20:41:09 -06:00
Michael Scire
fa2730ef59 Implement npdm -> JSON autogeneration. 2018-05-02 18:35:19 -06:00
Michael Scire
488dc27057 Fix some potential memory corruption bugs 2018-02-07 10:39:47 -08:00
Michael Scire
3e1fddd9de Finish Package2 support, add support for INI1, KIP1 (Closes #4) 2018-02-07 00:10:53 -08:00
Michael Scire
6213403ffb Re-brand ourselves, bump version number to 0.9 2018-02-02 21:35:43 -08:00
hexkyz
59ccf0455a Port to mbedtls 2018-01-29 18:39:30 +00:00
Aurora Wright
6a4b94bec3 Fix compiling on macOS by adding the Homebrew library includes, fix clang compilation warnings (missing newlines, fixed some printf arguments, updated old POSIX standard causing clang not to define vsnprintf) 2018-01-24 23:18:27 +01:00
Michael Scire
9e5c20c465 Fix search/replace typo. 2018-01-24 10:18:19 -08:00
Michael Scire
e2c9c1116f First Public commit. 2018-01-24 09:52:25 -08:00