[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

https://gitlab.com/gnutls/gnutls/blob/master/doc/examples/ex-client-x509.c

That is about ~60 lines of code less per program using gnutls.
https://gitlab.com/gnutls/gnutls/commit/25f2b0814401d1e9c98f3fdc833e09b3c877fc72

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

regards,
Nikos


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



More information about the Gnutls-devel mailing list