Changes

Jump to navigation Jump to search
308 bytes added ,  15:47, 23 April 2020
no edit summary
Line 279: Line 279:  
Same as [[#DoHandshake]] except the params for the func called internally are user-specified, instead of all 0.
 
Same as [[#DoHandshake]] except the params for the func called internally are user-specified, instead of all 0.
   −
The buffer contains the output server cert. The first u32 is the output size.
+
The buffer contains the output server cert DER. The first u32 is the output size, the second u32 is the total certs in the buffer.
 +
 
 +
When [[#OptionType|GetServerCertChain]] is set, the output buffer contains the full chain. This buffer can then be parsed by a seperate sdknso func.
    
==== Read ====
 
==== Read ====
Line 707: Line 709:     
[[#SetOption_2|SetOption]] with "DoNotCloseSocket" is only available when [[#SetSocketDescriptor]] was not used previously. "EnableAlpn" can optionally use the state setup by [[#SetSocketDescriptor]], but it will return 0 regardless.
 
[[#SetOption_2|SetOption]] with "DoNotCloseSocket" is only available when [[#SetSocketDescriptor]] was not used previously. "EnableAlpn" can optionally use the state setup by [[#SetSocketDescriptor]], but it will return 0 regardless.
 +
 +
See [[#SetNextAlpnProto]] for "EnableAlpn", and [[#DoHandshakeGetServerCert]] for "GetServerCertChain".
    
= AlpnProtoState =
 
= AlpnProtoState =

Navigation menu