[gnutls-devel] [PATCH 0/9] Getter functions for gnutls_credentials_t

Armin Burgmeier armin at arbur.net
Thu Sep 18 19:12:08 CEST 2014


this is a series of patches that adds additional API to obtain
certificates, private keys and trusted CAs from a
gnutls_certificate_credentials_t structure. This could for example be
used to load the system CAs and then show those certificates in a user
interface. This was originally requested here:

Most functions return copies of keys or certificates, so that the
implementation remains flexible with respect to future changes.


Armin Burgmeier (9):
  Fix a documentation typo
  Memory leak fix on certificate copy failure
  Add API to retrieve a X.509 or OpenPGP certificate from a
  Add a function to obtain the trust list of a
  Add functions to export X.509 and OpenPGP private keys from the
    abstract type
  Add gnutls_certificate_get_verify_flags
  Add functions to obtain X.509 keys and certificates from certificate
  Add getter functions for openpgp keys and certificates
  Add an interface to iterate the trusted CA certificates in a trust

 lib/gnutls_pcert.c              | 100 +++++++++++++++++++++++++++++++
 lib/gnutls_privkey.c            | 126 ++++++++++++++++++++++++++++++++++++++++
 lib/gnutls_ui.c                 |  19 +++++-
 lib/gnutls_x509.c               | 114 ++++++++++++++++++++++++++++++++++++
 lib/includes/gnutls/abstract.h  |  11 ++++
 lib/includes/gnutls/gnutls.h.in |  11 ++++
 lib/includes/gnutls/openpgp.h   |  10 ++++
 lib/includes/gnutls/x509.h      |  12 ++++
 lib/libgnutls.map               |  13 +++++
 lib/openpgp/gnutls_openpgp.c    |  98 +++++++++++++++++++++++++++++++
 lib/x509/verify-high.c          |  89 ++++++++++++++++++++++++++++
 11 files changed, 602 insertions(+), 1 deletion(-)


More information about the Gnutls-devel mailing list