diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-04-21 00:21:56 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-04-21 00:21:56 +0200 |
commit | 6e4e6b0aa30acc8db68fcc19a9406abcfe44ae9c (patch) | |
tree | 60b638467e98c287fe8ba3a28340e6ddab632819 /tests/x509dn.c | |
parent | ce1ceebc782aa6b920ceaef7754e9f87bb0820d0 (diff) | |
download | gnutls-6e4e6b0aa30acc8db68fcc19a9406abcfe44ae9c.tar.gz |
Added gnutls_certificate_set_retrieve_function2() to replace
gnutls_certificate_set_retrieve_function(). The new one is a
efficient for busy servers because it eliminates the need
for the server to encode the certificate to DER format.
Diffstat (limited to 'tests/x509dn.c')
-rw-r--r-- | tests/x509dn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/x509dn.c b/tests/x509dn.c index cf6cc2ba95..4ee44c14e7 100644 --- a/tests/x509dn.c +++ b/tests/x509dn.c @@ -115,7 +115,8 @@ static int cert_callback (gnutls_session_t session, const gnutls_datum_t * req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t * sign_algos, - int sign_algos_length, gnutls_retr2_st * st) + int sign_algos_length, gnutls_pcert_st ** pcert, + unsigned int* pcert_length, gnutls_privkey_t *pkey) { int result; gnutls_x509_dn_t dn; @@ -199,7 +200,7 @@ client (void) */ gnutls_certificate_set_x509_trust_mem (xcred, &ca, GNUTLS_X509_FMT_PEM); - gnutls_certificate_set_retrieve_function (xcred, cert_callback); + gnutls_certificate_set_retrieve_function2 (xcred, cert_callback); /* Initialize TLS session */ |