Hello,
We have a C cross platform application where for Linuxes and OpenBSD, etc., we use OpenSSL.
For Windows it's crypto API, and so far for Mac have used Curl.
Pretty basic setup but low level where we want to SSL connect (both a client and a server side) and transmit secure packets.
Main problem with Curl is we can't setup a server connection with it, plus it isn't ideal. We'd rather use a more native API.
And rather not have a OpenSSL 1.x dependancy, making the user install it and/or making our application bulkier as a static lib.
This leaves two options: either use the exsiting deprecated Mac OpenSSL 0.9.8 or use the prefered Mac CommonCrypto.
Rather not use the old SSL for obvious reasons. In particular wondering if it might be completely dropped in the future.
Basically, need to take the OpenSSL API calls like: SSL_library_init(), SSL_connect(), SSL_accept(), SSL_CTX_use_certificate(), CRYPTO_set_id_callback(), etc., and find CommonCrypto equivilents.
The best resoruce I've found so far:
https://developer.apple.com/reference/security/secure_transport
I was hoping to find some sort of C drop-in OpenSSL to CommonCrypto translation library but it doesn't exist.
Also can't find any articles nor C code exmaples on how to do any of this (specificly porting OpenSSL code to "Secure Transport").
Any suggestions on a path for this porting. Trying to avoid more rabbit holes like the Windows API was if possible.
Thank you,