On Fri, Mar 28, 2014 at 12:44:13PM -0400, Daniel Kahn Gillmor wrote: > On 03/28/2014 05:18 AM, Hani B wrote: > > I am trying to set the Diffie-Hellman parameters in a case where the > > library I > > use (Libmicrohttpd) only exposes the gnutls_session_t value, but not the > > gnutls_certificate_credentials_t value (to use with > > gnutls_certificate_set_dh_params().) > > If the session isn't already underway, i think you want to create a new > gnutls_certificate_credentials_t, configure it as you like, and then use > gnutls_credentials_set() to associate the credentials with the session. > > http://gnutls.org/manual/html_node/Core-TLS-API.html#gnutls_005fcredentials_005fset > > If this doesn't work for you, can you give details about the particular > circumstances, or what you've tried and how it (mis)behaved? > > hope this helps, > > --dkg >
Thanks Daniel. Apparently, earliest one can get access to the session pointer is at the connection callback, at which point, the tls handshake has already happened anyway. Guess that all I have left is hacking a patch for libmicrohttpd. Cheers, Hani. _______________________________________________ Gnutls-help mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnutls-help
