[gnutls-devel] simplifying certificate verification

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Mon Aug 24 13:58:08 CEST 2015

One the pains in using gnutls is the fact that there is needed quite
some copy-paste code to perform certificate verification. I decided to
simplify that from 3.5.0, using a function called
gnutls_session_auto_verify_cert(), and the result can be seen on the
following example


That is about ~60 lines of code less per program using gnutls.

I'd appreciate any comments or suggestions for improving that interface [0].


[0]. https://gitlab.com/gnutls/gnutls/blob/master/lib/includes/gnutls/gnutls.h.in#L1296

More information about the Gnutls-devel mailing list