diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-21 14:51:24 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-21 14:51:24 +0000 |
commit | 0445a3554997687e10655fd10b94d5ea16adbd5a (patch) | |
tree | 848519a092da399e2902b7d896906d94aa0f6303 /lib/gnutls_cert.c | |
parent | b14fc8a7a4d304521a657a6f63635f6d1c765bd1 (diff) | |
download | gnutls-0445a3554997687e10655fd10b94d5ea16adbd5a.tar.gz |
*** empty log message ***gnutls_1_1_0
Diffstat (limited to 'lib/gnutls_cert.c')
-rw-r--r-- | lib/gnutls_cert.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c index 16162b1be0..8366a5c392 100644 --- a/lib/gnutls_cert.c +++ b/lib/gnutls_cert.c @@ -319,7 +319,7 @@ void gnutls_certificate_server_set_select_function(gnutls_session session, /** * gnutls_certificate_client_set_retrieve_function - Used to set a callback to retrieve the certificate - * @session: is a &gnutls_session structure. + * @cred: is a &gnutls_certificate_credentials structure. * @func: is the callback function * * This function sets a callback to be called in order to retrieve the certificate @@ -348,15 +348,15 @@ void gnutls_certificate_server_set_select_function(gnutls_session session, * return 0 on success. The value (-1) indicates error and the handshake * will be terminated. **/ -void gnutls_certificate_client_set_retrieve_function(gnutls_session session, +void gnutls_certificate_client_set_retrieve_function(gnutls_certificate_credentials cred, gnutls_certificate_client_retrieve_function * func) { - session->internals.client_get_cert_callback = func; + cred->client_get_cert_callback = func; } /** * gnutls_certificate_server_set_retrieve_function - Used to set a callback to retrieve the certificate - * @session: is a &gnutls_session structure. + * @cred: is a &gnutls_certificate_credentials structure. * @func: is the callback function * * This function sets a callback to be called in order to retrieve the certificate @@ -379,10 +379,10 @@ void gnutls_certificate_client_set_retrieve_function(gnutls_session session, * return 0 on success. The value (-1) indicates error and the handshake * will be terminated. **/ -void gnutls_certificate_server_set_retrieve_function(gnutls_session session, +void gnutls_certificate_server_set_retrieve_function(gnutls_certificate_credentials cred, gnutls_certificate_server_retrieve_function * func) { - session->internals.server_get_cert_callback = func; + cred->server_get_cert_callback = func; } |