[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/src
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/src |
Date: |
Thu, 18 Nov 2004 14:00:31 +0100 |
Update of /home/cvs/gsasl/lib/src
In directory dopio:/tmp/cvs-serv2613
Modified Files:
Makefile.am obsolete.c
Removed Files:
callback-c.c callback-s.c
Log Message:
Move obsolete callback interface to obsolete.c.
--- /home/cvs/gsasl/lib/src/Makefile.am 2004/10/31 22:32:17 1.14
+++ /home/cvs/gsasl/lib/src/Makefile.am 2004/11/18 13:00:31 1.15
@@ -31,7 +31,7 @@
libgsasl_la_LIBADD = @LTLIBINTL@ ../gl/libgl.la ../crypto/libgc.la
libgsasl_la_SOURCES = gsasl.h.in internal.h \
init.c done.c register.c error.c version.c common.c \
- callback.c property.c callback-c.c callback-s.c \
+ callback.c property.c \
supportp.c suggest.c listmech.c \
xstart.c xstep.c xfinish.c xcode.c \
base64.c md5pwd.c crypto.c obsolete.c
--- /home/cvs/gsasl/lib/src/obsolete.c 2004/10/31 15:29:39 1.14
+++ /home/cvs/gsasl/lib/src/obsolete.c 2004/11/18 13:00:31 1.15
@@ -608,3 +608,934 @@
{
return NULL; /* This function is just silly. */
}
+
+/**
+ * gsasl_client_callback_authentication_id_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to set the
+ * authentication identity. The function can be later retrieved using
+ * gsasl_client_callback_authentication_id_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_authentication_id_set (Gsasl * ctx,
+
Gsasl_client_callback_authentication_id
+ cb)
+{
+ ctx->cbc_authentication_id = cb;
+}
+
+/**
+ * gsasl_client_callback_authentication_id_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_authentication_id_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_authentication_id
+gsasl_client_callback_authentication_id_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_authentication_id : NULL;
+}
+
+/**
+ * gsasl_client_callback_authorization_id_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to set the
+ * authorization identity. The function can be later retrieved using
+ * gsasl_client_callback_authorization_id_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_authorization_id_set (Gsasl * ctx,
+
Gsasl_client_callback_authorization_id
+ cb)
+{
+ ctx->cbc_authorization_id = cb;
+}
+
+/**
+ * gsasl_client_callback_authorization_id_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_authorization_id_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_authorization_id
+gsasl_client_callback_authorization_id_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_authorization_id : NULL;
+}
+
+/**
+ * gsasl_client_callback_password_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to set the
+ * password. The function can be later retrieved using
+ * gsasl_client_callback_password_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_password_set (Gsasl * ctx,
+ Gsasl_client_callback_password cb)
+{
+ ctx->cbc_password = cb;
+}
+
+
+/**
+ * gsasl_client_callback_password_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_password_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_password
+gsasl_client_callback_password_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_password : NULL;
+}
+
+/**
+ * gsasl_client_callback_passcode_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to set the
+ * passcode. The function can be later retrieved using
+ * gsasl_client_callback_passcode_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_passcode_set (Gsasl * ctx,
+ Gsasl_client_callback_passcode cb)
+{
+ ctx->cbc_passcode = cb;
+}
+
+
+/**
+ * gsasl_client_callback_passcode_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_passcode_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_passcode
+gsasl_client_callback_passcode_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_passcode : NULL;
+}
+
+/**
+ * gsasl_client_callback_pin_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to chose a new
+ * pin, possibly suggested by the server, for the SECURID mechanism.
+ * This is not normally invoked, but only when the server requests it.
+ * The function can be later retrieved using
+ * gsasl_client_callback_pin_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_pin_set (Gsasl * ctx, Gsasl_client_callback_pin cb)
+{
+ ctx->cbc_pin = cb;
+}
+
+
+/**
+ * gsasl_client_callback_pin_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_pin_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_pin
+gsasl_client_callback_pin_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_pin : NULL;
+}
+
+/**
+ * gsasl_client_callback_service_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to set the name
+ * of the service. The service buffer should be a registered GSSAPI
+ * host-based service name, hostname the name of the server.
+ * Servicename is used by DIGEST-MD5 and should be the name of generic
+ * server in case of a replicated service. The function can be later
+ * retrieved using gsasl_client_callback_service_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_service_set (Gsasl * ctx,
+ Gsasl_client_callback_service cb)
+{
+ ctx->cbc_service = cb;
+}
+
+/**
+ * gsasl_client_callback_service_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_service_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_service
+gsasl_client_callback_service_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_service : NULL;
+}
+
+/**
+ * gsasl_client_callback_anonymous_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to set the
+ * anonymous token, which usually is the users email address. The
+ * function can be later retrieved using
+ * gsasl_client_callback_anonymous_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_anonymous_set (Gsasl * ctx,
+ Gsasl_client_callback_anonymous cb)
+{
+ ctx->cbc_anonymous = cb;
+}
+
+/**
+ * gsasl_client_callback_anonymous_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_anonymous_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_anonymous
+gsasl_client_callback_anonymous_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_anonymous : NULL;
+}
+
+/**
+ * gsasl_client_callback_qop_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to determine the
+ * qop to use after looking at what the server offered. The function
+ * can be later retrieved using gsasl_client_callback_qop_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_qop_set (Gsasl * ctx, Gsasl_client_callback_qop cb)
+{
+ ctx->cbc_qop = cb;
+}
+
+/**
+ * gsasl_client_callback_qop_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_qop_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_qop
+gsasl_client_callback_qop_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_qop : NULL;
+}
+
+/**
+ * gsasl_client_callback_maxbuf_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to inform the
+ * server of the largest buffer the client is able to receive when
+ * using the DIGEST-MD5 "auth-int" or "auth-conf" Quality of
+ * Protection (qop). If this directive is missing, the default value
+ * 65536 will be assumed. The function can be later retrieved using
+ * gsasl_client_callback_maxbuf_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_maxbuf_set (Gsasl * ctx,
+ Gsasl_client_callback_maxbuf cb)
+{
+ ctx->cbc_maxbuf = cb;
+}
+
+/**
+ * gsasl_client_callback_maxbuf_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_maxbuf_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+Gsasl_client_callback_maxbuf
+gsasl_client_callback_maxbuf_get (Gsasl * ctx)
+{
+ return ctx ? ctx->cbc_maxbuf : NULL;
+}
+
+/**
+ * gsasl_client_callback_realm_set:
+ * @ctx: libgsasl handle.
+ * @cb: callback function
+ *
+ * Specify the callback function to use in the client to know which
+ * realm it belongs to. The realm is used by the server to determine
+ * which username and password to use. The function can be later
+ * retrieved using gsasl_client_callback_realm_get().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
+ * callback, and uses gsasl_callback() or gsasl_property() to invoke
+ * the callback for certain properties.
+ **/
+void
+gsasl_client_callback_realm_set (Gsasl * ctx, Gsasl_client_callback_realm cb)
+{
+ ctx->cbc_realm = cb;
+}
+
+/**
+ * gsasl_client_callback_realm_get:
+ * @ctx: libgsasl handle.
+ *
+ * Return value: Returns the callback earlier set by calling
+ * gsasl_client_callback_realm_set().
+ *
+ * Deprecated: This function is part of the old callback interface.
+ * The new interface uses gsasl_callback_set() to set the application
[537 lines skipped]
- CVS gsasl/lib/src, gsasl-commit, 2004/11/07
- CVS gsasl/lib/src,
gsasl-commit <=
- CVS gsasl/lib/src, gsasl-commit, 2004/11/18
- CVS gsasl/lib/src, gsasl-commit, 2004/11/18
- CVS gsasl/lib/src, gsasl-commit, 2004/11/18
- CVS gsasl/lib/src, gsasl-commit, 2004/11/18
- CVS gsasl/lib/src, gsasl-commit, 2004/11/18
- CVS gsasl/lib/src, gsasl-commit, 2004/11/18
- CVS gsasl/lib/src, gsasl-commit, 2004/11/18
- CVS gsasl/lib/src, gsasl-commit, 2004/11/26
- CVS gsasl/lib/src, gsasl-commit, 2004/11/26
- CVS gsasl/lib/src, gsasl-commit, 2004/11/26