Difference between revisions of "SSLC:CreateContext"

From 3dbrew
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
|-
 
|-
 
| 2
 
| 2
| Unknown u32, the default value is 0x0.
+
| u32 input_opt
 
|-
 
|-
 
| 3
 
| 3
Line 41: Line 41:
  
 
=Description=
 
=Description=
This creates a session context.
+
This creates a session context. The specified sockfd must be used with [[SOCU:AddGlobalSocket]] before SSLC:CreateContext.
  
The specified sockfd must be used with [[SOCU:AddGlobalSocket]] before SSLC:CreateContext.
+
The context opt field also used by [[SSLC:ContextClearOpt]] is set to: <nowiki>input_opt | 0x1b</nowiki>. For user-processes the default value for input_opt is 0x0.

Latest revision as of 04:43, 22 February 2016

Request[edit]

Index Word Description
0 Header code [0x000200C2]
1 Socket descriptor
2 u32 input_opt
3 Host-name size, including null-terminator.
4 (Size<<4) | 10
5 Pointer to input host-name buffer

Response[edit]

Index Word Description
0 Header code
1 Result code
2 Output SSL context handle

Description[edit]

This creates a session context. The specified sockfd must be used with SOCU:AddGlobalSocket before SSLC:CreateContext.

The context opt field also used by SSLC:ContextClearOpt is set to: input_opt | 0x1b. For user-processes the default value for input_opt is 0x0.