Difference between revisions of "SSLC:ContextGetProtocolCipher"

From 3dbrew
Jump to navigation Jump to search
 
Line 12: Line 12:
 
|-
 
|-
 
| 2
 
| 2
| Outstr0_maxsize
+
| Outprotocols_maxsize
 
|-
 
|-
 
| 3
 
| 3
| Outstr1_maxsize
+
| Outcipher_maxsize
 
|-
 
|-
 
| 4
 
| 4
| (Outstr0_maxsize<<4)  <nowiki>|</nowiki> 12
+
| (Outprotocols_maxsize<<4)  <nowiki>|</nowiki> 12
 
|-
 
|-
 
| 5
 
| 5
| Pointer to output str0
+
| Pointer to outprotocols buffer
 
|-
 
|-
 
| 6
 
| 6
| (Outstr1_maxsize<<4)  <nowiki>|</nowiki> 12
+
| (Outcipher_maxsize<<4)  <nowiki>|</nowiki> 12
 
|-
 
|-
 
| 7
 
| 7
| Pointer to output str1
+
| Pointer to outcipher buffer
 
|}
 
|}
  
Line 48: Line 48:
 
This copies two strings to the specified output buffers, each string is only copied if it was successfully loaded. The out sizes include the nul-terminator.
 
This copies two strings to the specified output buffers, each string is only copied if it was successfully loaded. The out sizes include the nul-terminator.
  
Str0 contains the protocol versions supported by SSL-module. What protocol version is currently being used or what protocol versions are actually supported by the server, do not affect this string. For example: "TLSv11/TLSv1/SSLv3".
+
Outprotocols contains the protocol versions supported by SSL-module. What protocol version is currently being used or what protocol versions are actually supported by the server, do not affect this string. For example: "TLSv11/TLSv1/SSLv3".
  
Str1 contains the cipher suite currently being used. For example: "EDH-RSA-AES256-SHA".
+
Outcipher contains the cipher suite currently being used. For example: "EDH-RSA-AES256-SHA".

Latest revision as of 21:56, 30 March 2016

Request[edit]

Index Word Description
0 Header code [0x001C00C4]
1 SSL context handle
2 Outprotocols_maxsize
3 Outcipher_maxsize
4 (Outprotocols_maxsize<<4) | 12
5 Pointer to outprotocols buffer
6 (Outcipher_maxsize<<4) | 12
7 Pointer to outcipher buffer

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

This is only usable if the connection was already started successfully(SSLC:StartConnection*).

This copies two strings to the specified output buffers, each string is only copied if it was successfully loaded. The out sizes include the nul-terminator.

Outprotocols contains the protocol versions supported by SSL-module. What protocol version is currently being used or what protocol versions are actually supported by the server, do not affect this string. For example: "TLSv11/TLSv1/SSLv3".

Outcipher contains the cipher suite currently being used. For example: "EDH-RSA-AES256-SHA".