From a30f06fb5df93967c971a6ba8ab1b7925c01bfe6 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 28 Jun 2012 21:49:20 +0200 Subject: [PATCH] document the gnutls_pcert_st --- doc/cha-gtls-app.texi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/cha-gtls-app.texi b/doc/cha-gtls-app.texi index 52f6126dd..e2218521f 100644 --- a/doc/cha-gtls-app.texi +++ b/doc/cha-gtls-app.texi @@ -430,7 +430,19 @@ algorithm preferences. To get those preferences use The functions above do not handle the requested server name automatically. A server would need to check the name requested by the client using @funcref{gnutls_server_name_get}, and serve the appropriate -certificate. +certificate. Note that some of these functions require the @code{gnutls_pcert_st} structure to be +filled in. Helper functions to make the required structures are listed below. + +@verbatim +typedef struct gnutls_pcert_st +{ + gnutls_pubkey_t pubkey; + gnutls_datum_t cert; + gnutls_certificate_type_t type; +} gnutls_pcert_st; +@end verbatim + +@showfuncE{gnutls_pcert_import_x509,gnutls_pcert_import_openpgp,gnutls_pcert_import_x509_raw,gnutls_pcert_import_openpgp_raw,gnutls_pcert_deinit} In a handshake, the negotiated cipher suite depends on the certificate's parameters, so some key exchange methods might not be -- 2.11.4.GIT