CURL.SetOptionSSLEngine
-----------------------

Sets which crypto engine is used.

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

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "CURL.SetOptionSSLEngine"; curl; Value { ; Encoding } ) 

**MBS**( **"CURL.SetOptionSSLEngine";** /\* Sets which crypto engine is used. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**; /\* The name of the crypto engine.e.g. "" \*/   
**$Encoding**) /\* Optional; The text encoding for text parameter.   
Default is UTF-8.e.g. "utf8" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| curl | The CURL session handle. | $curl |  |
| Value | The name of the crypto engine. | "" |  |
| Encoding | The text encoding for text parameter.    Default is UTF-8.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | "utf8" | Optional |

### Result

Returns "OK" on success.

### Description

Sets which crypto engine is used.  
Pass a string as parameter. It will be used as the identifier for the crypto engine you want to use for your private key.  
If the crypto device cannot be loaded, CURLE\_SSL\_ENGINE\_NOTFOUND is returned.  
  
Deprecated since you don't need this function. You can only use the built-in crypto engine for the plugin.  
See also [SSLENGINE](https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE.html) option in CURL manual.

### See also

- [CURL.SetOptionCRLFile](CURLSetOptionCRLFile.md)
- [CURL.SetOptionSSLCert](CURLSetOptionSSLCert.md)
- [CURL.SetOptionSSLEnableNPN](CURLSetOptionSSLEnableNPN.md)
- [CURL.SetOptionSSLKeyType](CURLSetOptionSSLKeyType.md)
- [CURL.SetOptionSSLOptions](CURLSetOptionSSLOptions.md)
- [CURL.SetOptionSSLVersion](CURLSetOptionSSLVersion.md)

### Release notes

- **Version 12.1**
    - Deprecated [CURL.SetOptionSSLEngine](https://www.mbsplugins.eu/CURLSetOptionSSLEngine.shtml) and [CURL.SetOptionSSLEngineDefault](https://www.mbsplugins.eu/CURLSetOptionSSLEngineDefault.shtml) functions since you don't need those ever.

### Blog Entries

- [MBS FileMaker Plugin, version 12.1pr3](https://www.mbsplugins.de/archive/2022-02-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 9th February 2022

  
[CURL.SetOptionSSLEnableNPN](CURLSetOptionSSLEnableNPN.md) - [CURL.SetOptionSSLEngineDefault](CURLSetOptionSSLEngineDefault.md)

[HTML Version](CURLSetOptionSSLEngine.shtml)