diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-03-25 09:35:59 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-03-25 09:35:59 +0000 |
commit | 81ce41810c0c508a8f5fca995d003ab348d63c18 (patch) | |
tree | da72b59df451c150123cad9db524b4b7722e31f2 /libextra | |
parent | f31b8e682e28b826ad75d36ccbfbd574efdd2bb0 (diff) | |
download | gnutls-81ce41810c0c508a8f5fca995d003ab348d63c18.tar.gz |
Deprecated: gnutls_srp_server_set_select_function(),
gnutls_certificate_client_set_select_function(), gnutls_srp_server_set_select_function().
Diffstat (limited to 'libextra')
-rw-r--r-- | libextra/auth_srp_passwd.c | 14 | ||||
-rw-r--r-- | libextra/gnutls_srp.c | 34 |
2 files changed, 0 insertions, 48 deletions
diff --git a/libextra/auth_srp_passwd.c b/libextra/auth_srp_passwd.c index 580cc7f438..43d83832b5 100644 --- a/libextra/auth_srp_passwd.c +++ b/libextra/auth_srp_passwd.c @@ -280,20 +280,6 @@ int _gnutls_srp_pwd_read_entry( gnutls_session state, char* username, return GNUTLS_E_SRP_PWD_ERROR; } - /* use the callback to select a password file. If set. - */ - if (state->internals.server_srp_callback!=NULL) { - pwd_index = state->internals.server_srp_callback( - state, (const char**)cred->password_file, - (const char**)cred->password_conf_file, - cred->password_files); - - if (pwd_index < 0) { - gnutls_assert(); - return GNUTLS_E_SRP_PWD_ERROR; - } - } - /* Open the selected password file. */ fd = fopen( cred->password_file[pwd_index], "r"); diff --git a/libextra/gnutls_srp.c b/libextra/gnutls_srp.c index 4b5d34b09d..7f6867b7f2 100644 --- a/libextra/gnutls_srp.c +++ b/libextra/gnutls_srp.c @@ -513,40 +513,6 @@ int i; return 0; } -#define gnutls_srp_server_select_function srp_server_select_func - -/** - * gnutls_srp_server_set_select_function - Used to set a callback to assist in selecting the proper password file - * @session: is a &gnutls_session structure. - * @func: is the callback function - * - * This function sets a callback to assist in selecting the proper password file, - * in case there are more than one. The callback's function form is: - * int (*callback)(gnutls_session, const char** pfiles, const char** pconffiles, int npfiles); - * - * @pfiles contains @npfiles char* structures which hold - * the password file name. @pconffiles contain the corresponding - * conf files. - * - * This function specifies what we, in case of a server, are going - * to do when we have to use a password file. If this callback - * function is not provided then gnutls will automatically select the - * first password file - * - * In case the callback returned a negative number then gnutls will - * terminate this handshake. - * - * The callback function will only be called once per handshake. - * The callback function should return the index of the password file - * that will be used by the server. -1 indicates an error. - * - **/ -void gnutls_srp_server_set_select_function(gnutls_session session, - gnutls_srp_server_select_function - * func) -{ - session->internals.server_srp_callback = func; -} /** * gnutls_srp_set_server_credentials_function - Used to set a callback to retrieve the user's SRP credentials |