setting Maximum Fragment Length Negotiation for SSL records using curlpp

313 Views Asked by At

I have requirement to set Maximum Fragment Length Negotiation for SSL records in my C++ application. I am using curlpp and wolfSSL for SSL support.

In wolfSSL I can find wolfSSL_UseMaxFragment(), and wolfSSL_CTX_UseMaxFragment() which supports this feature. However I am not able to find any such option to set in curlpp in options.hpp.

I am very new to curl and curlpp. Please let me know how I can achieve this.

1

There are 1 best solutions below

1
On BEST ANSWER

libcurl does not offer any API to set this config as of today.

If you really need this, I would propose two different ways forward with different amounts of work and features:

  1. just add the code yourself to libcurl's WolfSSL's backend to make it happen automagically. Although that would be a change the curl project wouldn't want...

  2. write up a way to set this via the standard libcurl API and propose this change to the curl project and then we could work on seeing how feasible it is and what it would take to support in other TLS backends as well

libcurl truly is the sum of all our best efforts!