Difference between revisions of "AMNet:ImportCertificates"

From 3dbrew
Jump to navigation Jump to search
Line 21: Line 21:
 
|-
 
|-
 
| 5
 
| 5
| 16 * first cert size + 10
+
| (FirstCertSize<<4)  <nowiki>|</nowiki> 10
 
|-
 
|-
 
| 6
 
| 6
Line 27: Line 27:
 
|-
 
|-
 
| 7
 
| 7
| 16 * second cert size + 10
+
| (SecondCertSize<<4)  <nowiki>|</nowiki> 10
 
|-
 
|-
 
| 8
 
| 8
Line 33: Line 33:
 
|-
 
|-
 
| 9
 
| 9
| 16 * third cert size + 10
+
| (ThirdCertSize<<4)  <nowiki>|</nowiki> 10
 
|-
 
|-
 
| 10
 
| 10
Line 39: Line 39:
 
|-
 
|-
 
| 11
 
| 11
| 16 * fourth cert size + 10
+
| (FourthCertSize<<4)  <nowiki>|</nowiki> 10
 
|-
 
|-
 
| 12
 
| 12

Revision as of 20:02, 26 March 2015

Request

Index Word Description
0 Header code [0x08190108]
1 First certificate size
2 Second certificate size
3 Third certificate size
4 Fourth certificate size
5 (FirstCertSize<<4) | 10
6 First certificate ptr
7 (SecondCertSize<<4) | 10
8 Second certificate ptr
9 (ThirdCertSize<<4) | 10
10 Third certificate ptr
11 (FourthCertSize<<4) | 10
12 Fourth certificate ptr

Response

Index Word Description
0 Header code
1 Result code

Description

This is called before AMNet:OpenTicket to set the certificate chain for the tickets to be installed. You can submit up to four certificates at a time, and if you have more than four, you can make multiple calls. If you have less than four certificates, you can pass in NULL for the pointers, 0 for the sizes, and 16*0+10=10 for the other sizes.