Hello dudes.
I tried to pass the key/cert files to the MHD library, however, it allows only passing via memory (using gnutls_certificate_set_x509_key_mem2()):
MHD_OPTION_HTTPS_MEM_KEY, "private key content",
MHD_OPTION_HTTPS_MEM_CERT, "certificate content"
but it would be nice to use the GnuTLS's builtin functions to load the key/cert files: gnutls_certificate_set_x509_key_file2(). Advantage: the programmer just pass the path of the key/cert instead of writing own unsafe functions for file loading. So, what do you thing about to add those new options?:
MHD_OPTION_HTTPS_FILE_KEY, "key.pem",
MHD_OPTION_HTTPS_FILE_CERT, "cert.pem",
MHD_OPTION_HTTPS_FILE_TRUST, "ca.pem"
Thank you!
--