shchmue
4c3339e38c
Implement support for 8.0.0 Kernel-embedded INI1
2019-04-25 11:07:08 -04:00
SciresM
4f6c4bf38b
Merge pull request #71 from blawar/master
...
removed PFS0 file entry offset check that failed when file entries were not packed.
2019-04-20 15:05:40 -07:00
Blake Warner
2427664682
removed PFS0 file entry offset check that failed when file entries were not packed.
2019-04-20 17:55:52 -04:00
Michael Scire
dc6fbd927e
new key support. TODO: new pk11 support
2019-03-03 10:03:30 -08:00
SciresM
1af84ef846
Merge pull request #64 from baconwaifu/master
...
Fixed possibility of missing null-terminator in strncpy(input_name)
2018-12-30 23:55:54 -08:00
slango20
98c9d8e42a
Fixed possibility of missing null-terminator if the input filename exceeded 512 bytes in length.
2018-12-31 01:07:59 -05:00
Michael Scire
4d8d84dae2
Extkeys: Allow skipping key warning output.
2018-12-12 06:12:43 -08:00
Michael Scire
3058366f12
Loosen title.keys content restrictions.
2018-12-12 05:55:48 -08:00
SciresM
5c70f5c193
Merge pull request #62 from roblabla/master
...
Properly derive the package1_keys and master_keks
2018-11-30 15:13:27 -08:00
roblabla
bf224c967b
Properly derive the package1_keys and masater_keks if the keyblob are hardcoded in the ini file
2018-11-30 22:42:32 +00:00
Michael Scire
6546bfda4c
Add 6.2.0 key name, add tsec_root_key alias.
2018-11-24 01:03:40 -08:00
Michael Scire
0388e1bdaa
Implement support for 6.2.0+ keygen.
2018-11-24 01:01:30 -08:00
Michael Scire
3b399f2197
Fix aes buffer passing error ( closes #59 )
2018-11-24 00:34:42 -08:00
SciresM
499f06ed9c
Merge pull request #57 from JamePeng/update-get_key_revision_summary
...
update function get_key_revision_summary for 6.0.0
2018-11-04 03:16:09 +09:00
SciresM
d773aa91fa
Merge pull request #53 from lioncash/const
...
Resolve remaining -Wdiscarded-qualifiers warnings
2018-11-04 03:15:51 +09:00
SciresM
c007745a75
Merge pull request #54 from roblabla/master
...
Stop using duplicate keys
2018-11-04 03:15:37 +09:00
JamePeng
cc947e1b4f
update function get_key_revision_summary for 6.0.0
2018-10-18 22:35:16 +08: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
50c164382e
hfs0: Resolve -Wdiscarded-qualifier warnings
...
name is only ever assigned via string literals, which can cause
warnings, as string literals have a const qualifier associated with
them. This is only ever used for information display in console
printouts, so this is a safe change to make.
2018-09-02 10:07:05 -04: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
Lioncash
52486c12e3
nca: Resolve -Wdiscarded-qualifiers warnings
...
String literals are always const char arrays of N length (where N is the
number of characters plus the null terminator), given a few functions
were returning by char*, they were casting the const qualifier away,
causing warnings.
This is a safe change, as these are only used with logging functions.
2018-09-02 09:57:19 -04:00
Michael Scire
a4e8ab6322
Fix base NCA titlekey loading failure ( closes #48 )
2018-08-16 23:07:01 -07: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
SciresM
e6227c84aa
Merge pull request #45 from lioncash/const
...
main, npdm: Make parameters/members const where applicable
2018-08-16 20:54:51 -07:00
SciresM
f7112b1948
Merge pull request #46 from aveao/patch-1
...
Fix a markdown error on README.md
2018-08-16 20:54:08 -07:00
Ave
4df287b655
Fix a markdown error on README.md
2018-08-13 13:11:22 +03: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
SciresM
d3a475a00b
Merge pull request #44 from lioncash/cast
...
aes, utils: Avoid casting away const
2018-08-11 20:02:09 -07:00
Lioncash
cf7418e684
aes, utils: Avoid casting away const
...
Gets rid of -Wcast-qual warnings.
2018-08-11 22:57:13 -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
SciresM
6c3a6a52f7
Merge pull request #42 from lioncash/leak
...
kip, nax0, npdm: Minor build and API fixes
2018-08-11 19:26:37 -07:00
Lioncash
515cbb67c5
nax0: Add missing semicolon to return in nax0_save()
...
This slipped through before I was able to amend it in the PR.
2018-08-11 22:23:32 -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
SciresM
1371815e2a
Merge pull request #41 from lioncash/leak
...
Fix a few minor memory leaks
2018-08-11 18:54:48 -07:00
SciresM
f9e37fb05c
Merge pull request #40 from lioncash/memset
...
extkeys: Correct memset zeroing in extkeys_initialize_keyset()
2018-08-11 18:53:40 -07:00
SciresM
373bdd04e6
Merge pull request #39 from lioncash/conjunc
...
extkeys: Correct logical ANDs in get_kv()
2018-08-11 18:53:32 -07: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
Lioncash
ff6c8eba11
nax0: Close file descriptor in nax0_save() when done with it
...
Avoids a resource leak.
2018-08-11 21:40:08 -04:00
Lioncash
17ada97b05
nax0: Invert conditionals within nax0_save()
...
Allows unindenting most of the code within the function to be nicer to
follow.
2018-08-11 21:39:10 -04:00
Lioncash
a97bdb8a24
kip: Fix memory leaks within kip1_save()
...
Just two minor leaks that can be amended.
2018-08-11 21:33:48 -04:00
Lioncash
4719beb055
extkeys: Correct memset zeroing in extkeys_initialize_keyset()
...
sizeof(100) will evaluate to 4, so this wasn't zeroing out the whole
array (which is likely what was intended here). Instead, we can use a
braced initializer to perform the desirable behavior here.
2018-08-11 21:14:23 -04:00
Lioncash
70166c1e5f
extkeys: Correct logical ANDs in get_kv()
...
These two expressions would always be false as both sides of the
expression would never be satisfied at the same time.
2018-08-11 21:10:30 -04:00
Michael Scire
bdbd4f639e
Fix bugs in BKTR romfs parsing, keyfile parsing
2018-07-26 12:19:00 -07:00
SciresM
84715a89f8
Merge pull request #35 from jakibaki/master
...
getopt_long returns an int, not a char.
2018-07-24 00:36:48 -07:00
Michael Scire
221d009277
Add additional warning, bump version to 1.2.0
2018-07-24 00:25:48 -07:00
Michael Scire
8dfd4a51e8
Add support for NSO parsing + decompression.
2018-07-24 00:14:48 -07:00
Michael Scire
9b13c5cd7c
Add support for KIP1 decompression.
2018-07-23 23:18:48 -07:00