<pclass="level0">Set the <spanClass="emphasis">option</span> to <spanClass="emphasis">parameter</span> for the given <spanClass="emphasis">share</span>. <aname="OPTIONS"></a><h2class="nroffsh">OPTIONS</h2>
<pclass="level1"><spanClass="emphasis">data</span> defines what data libcurl wants to lock, and you must make sure that only one lock is given at any time for each kind of data.
<pclass="level1"><spanClass="emphasis">access</span> defines what access type libcurl wants, shared or single.
<pclass="level1"><spanClass="emphasis">userptr</span> is the pointer you set with <aclass="emphasis"href="#CURLSHOPTUSERDATA">CURLSHOPT_USERDATA</a>.
<pclass="level1"><spanClass="emphasis">data</span> defines what data libcurl wants to unlock, and you must make sure that only one lock is given at any time for each kind of data.
<pclass="level1">The <spanClass="emphasis">parameter</span> specifies a type of data that should be shared. This may be set to one of the values described below.
<pclass="level2">Cached DNS hosts will be shared across the easy handles using this shared object. Note that when you use the multi interface, all easy handles added to the same multi handle will share DNS cache by default without this having to be used!
<pclass="level2">SSL session IDs will be shared across the easy handles using this shared object. This will reduce the time spent in the SSL handshake when reconnecting to the same server. Note SSL session IDs are reused within the same easy handle by default.
<pclass="level1">This option does the opposite of <aclass="emphasis"href="#CURLSHOPTSHARE">CURLSHOPT_SHARE</a>. It specifies that the specified <spanClass="emphasis">parameter</span> will no longer be shared. Valid values are the same as those for <aclass="emphasis"href="#CURLSHOPTSHARE">CURLSHOPT_SHARE</a>.
<pclass="level1">The <spanClass="emphasis">parameter</span> allows you to specify a pointer to data that will be passed to the lock_function and unlock_function each time it is called. <aname="RETURN"></a><h2class="nroffsh">RETURN VALUE</h2>
<pclass="level0">CURLSHE_OK (zero) means that the option was set properly, non-zero means an error occurred as <spanClass="emphasis"><curl/curl.h></span> defines. See the <spanClass="emphasis">libcurl-errors.3</span> man page for the full list with descriptions. <aname="SEE"></a><h2class="nroffsh">SEE ALSO</h2>