Changes

390 bytes added ,  19:41, 10 May 2020
no edit summary
Line 1: Line 1:  
This page documents the libcurl package used by official sw. This is statically linked in the main-codebin, on old versions (~v2.x) this was a subsdk NSO. This page does not apply to the libcurl build included in the browser OSS NRO.
 
This page documents the libcurl package used by official sw. This is statically linked in the main-codebin, on old versions (~v2.x) this was a subsdk NSO. This page does not apply to the libcurl build included in the browser OSS NRO.
   −
With sdkver 10.x, this is built with support for NGHTTP2 with the relevant [[SSL_services|Alpn]] cmds being used for this.
+
Starting with sdkver 10.x, this is built with support for NGHTTP2 with the relevant [[SSL_services|Alpn]] cmds being used for this.
    
The changes to libcurl compared to the original libcurl are documented below, etc.
 
The changes to libcurl compared to the original libcurl are documented below, etc.
Line 46: Line 46:     
== SSL_CTX_FUNCTION ==
 
== SSL_CTX_FUNCTION ==
This funcptr is called with the same params as normal, with the context ptr being {sdknso container object for [[SSL_services#ISslContext|ISslContext]]}.
+
This funcptr is called with the same params as normal, with the context ptr being {sdknso container object for [[SSL_services#ISslContext|ISslContext]]}. If this funcptr returns non-zero, the CURLcode is set to CURLE_ABORTED_BY_CALLBACK.
    
This is only used if [[#UNK502]] is not set, in which case an error is thrown if this funcptr is not set. An error is also thrown afterwards if the context wasn't created.
 
This is only used if [[#UNK502]] is not set, in which case an error is thrown if this funcptr is not set. An error is also thrown afterwards if the context wasn't created.
Line 113: Line 113:     
This is used during Curl_resolver_getaddrinfo. See also [[#URL]].
 
This is used during Curl_resolver_getaddrinfo. See also [[#URL]].
 +
 +
= CURLcode =
 +
This section documents the custom CURLcode values.
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Value
 +
!  Description
 +
|-
 +
| 95 || {sdknso container object for [[SSL_services#ISslContext|ISslContext]]} isn't initialized.
 +
|-
 +
| 96 || nnsslContextGetContextId failed.
 +
|-
 +
| 98 || Ptr is NULL.
 +
|}