CURL.SetOptionSocks5GSSAPINec
-----------------------------

Sets how to run the protection mode negotiation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionSocks5GSSAPINec"; curl; Value ) 

**MBS**( **"CURL.SetOptionSocks5GSSAPINec";** /\* Sets how to run the protection mode negotiation. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The setting.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | The setting. | 1 |

### Result

Returns "OK" on success.

### Description

Sets how to run the protection mode negotiation.  
Pass a long set to 1 to enable or 0 to disable. As part of the gssapi negotiation a protection mode is negotiated. The rfc1961 says in section 4.3/4.4 it should be protected, but the NEC reference implementation does not. If enabled, this option allows the unprotected exchange of the protection mode negotiation.   
See also [SOCKS5\_GSSAPI\_NEC](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html) option in CURL manual.

### See also

- [CURL.SetOptionSocks5GSSAPIService](CURLSetOptionSocks5GSSAPIService.md)

Created 18th August 2014 , last changed 18th August 2014

  
[CURL.SetOptionSocks5Auth](CURLSetOptionSocks5Auth.md) - [CURL.SetOptionSocks5GSSAPIService](CURLSetOptionSocks5GSSAPIService.md)

[HTML Version](CURLSetOptionSocks5GSSAPINec.shtml)