SceLibSsl: Difference between revisions
Jump to navigation
Jump to search
Devnoname120 (talk | contribs) (Swapped Module <-> Library, see revision 1.1 under "Revision History" of "Vita SDK specifications" (https://wiki.henkaku.xyz/vita/File:Vita_SDK_specifications.pdf)) |
No edit summary |
||
Line 2: | Line 2: | ||
=== Known NIDs === | === Known NIDs === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Version !! Name !! World !! Privilege !! NID | ! Version !! Name !! World !! Privilege !! NID | ||
|- | |- | ||
| | | 3.60 || SceLibSsl || Non-secure || User || 0x9CD6CA85 | ||
|} | |} | ||
Line 16: | Line 17: | ||
|- | |- | ||
! Version !! Name !! World !! Visibility !! NID | ! Version !! Name !! World !! Visibility !! NID | ||
|- | |||
| 3.60 || SceSsl || Non-secure || User || 0xCAF5F2E9 | |||
|- | |||
| 3.60 || SceSslInternal || Non-secure || User || 0x68D6C3FF | |||
|} | |||
==== Internal Get CA ==== | |||
Obtains a certificate from <code>vs0:data/external/cert/CA_LIST.cer</code>. If <code>unk</code>, <code>buf</code>, and <code>unk2</code> are zero, then get the size of the certificate. Otherwise, load the certificate (PEM) into <code>buf</code>. The file offset and size in <code>CA_LIST.cer</code> is hard coded into the function for each given id pair. There is also a hard coded list of SHA1 hashes for each certificate that is checked against before returning. | |||
{| class="wikitable" | |||
|- | |||
! Version | |||
! NID | |||
|- | |||
| 3.60 | |||
| 0x064DFC99 | |||
|} | |} | ||
<source lang="c">int internal_get_ca(int id1, int id2, int unk, char *buf, int unk2, size_t *size);</source> | |||
[[Category:Modules]] | [[Category:Modules]] | ||
[[Category:Userland]] | [[Category:Userland]] |
Revision as of 06:16, 6 December 2016
Module
Known NIDs
Version | Name | World | Privilege | NID |
---|---|---|---|---|
3.60 | SceLibSsl | Non-secure | User | 0x9CD6CA85 |
Libraries
Known NIDs
Version | Name | World | Visibility | NID |
---|---|---|---|---|
3.60 | SceSsl | Non-secure | User | 0xCAF5F2E9 |
3.60 | SceSslInternal | Non-secure | User | 0x68D6C3FF |
Internal Get CA
Obtains a certificate from vs0:data/external/cert/CA_LIST.cer
. If unk
, buf
, and unk2
are zero, then get the size of the certificate. Otherwise, load the certificate (PEM) into buf
. The file offset and size in CA_LIST.cer
is hard coded into the function for each given id pair. There is also a hard coded list of SHA1 hashes for each certificate that is checked against before returning.
Version | NID |
---|---|
3.60 | 0x064DFC99 |
int internal_get_ca(int id1, int id2, int unk, char *buf, int unk2, size_t *size);