[gnutls-dev] gnutls_certificate_client_set_select_function vs _set_retrieve_function

Gergely Nagy algernon at bonehunter.rulez.org
Wed Jul 28 22:26:42 CEST 2004


> > I have a program here that uses
> > gnutls_certificate_client_set_select_function, which got deprecated, and
> > produces a warning. I'd like to get rid of that warning and at the same
> > time, allow those users who didn't upgrade their GnuTLS yet to compile
> > my program even when only _set_select_function is available, and
> > _set_retrieve_function is not.
> This function is deprecated because it will not be available in gnutls 1.2.0
> (when released). All gnutls 1.0.x releases will be backwards compatible
> and will contain this function. If you just want to get rid of the warning you
> may add #define DEPRECATED
> before including gnutls.h.

Mmmhm.. I think I'll just wait a bit then, until 1.0.13 gets into more
places (namely Debian testing/sarge O:), and just bump the requirement.
I don't want to be caught off-guard when 1.2.0 comes out ^_^"

> > And while I'm here - do I get it right, that unlike
> > _set_select_function, which I used every time I created a
> > gnutls_session, I should only use _set_retrieve_function once, after
> > setting up the credentials-foo?
> Yes.

Cool, thanks a lot!

-- 
Gergely Nagy




More information about the Gnutls-dev mailing list