On Mon, Sep 26, 2022 at 7:03 AM Lars Ingebrigtsen wrote: > > Nikolaos Chatzikonstantinou writes: > > > However, I suspect that this API is not used by most > > packages. Instead, these functions are called from Emacs' > > make-network-process and friends in src/process.c. If I just dump new > > gnutls functions in src/gnutls.c, they might not be accessible for > > use, or I might duplicate functionality. > > I'm not sure I understand what you mean here. The point was to use > gnutls_certificate_set_x509_key_file2 instead of > gnutls_certificate_set_x509_key_file in gnutls.c -- so that should be an > internal change in gnutls.c that nothing else should need to know about. Ah yes, thanks for setting me straight. I should start with that. Actually, this is not too complicated, and I just prepared this patch save for one thing: how should the ORed values be passed in the last parameter? In C, it is an 'unsigned int' of ORed values of type 'gnutls_pkcs_encrypt_flags_t', whose enumeration constants are detailed here, See the patch attached (do not merge yet?).