aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test11.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test11.c')
-rw-r--r--tests/test11.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test11.c b/tests/test11.c
index de605365a6..36ec9c6159 100644
--- a/tests/test11.c
+++ b/tests/test11.c
@@ -22,6 +22,15 @@
#include <fcntl.h>
#include <glib.h>
+static char *
+auth_callback(char *prompt, gboolean secret,
+ CamelService *service, char *item,
+ CamelException *ex)
+{
+ printf ("auth_callback called: %s\n", prompt);
+ return NULL;
+}
+
int
main (int argc, char**argv)
{
@@ -40,7 +49,7 @@ main (int argc, char**argv)
ex = camel_exception_new ();
camel_provider_register_as_module ("../camel/providers/mbox/.libs/libcamelmbox.so.0");
- session = camel_session_new ();
+ session = camel_session_new (auth_callback);
store = camel_session_get_store (session, store_url, ex);
if (camel_exception_get_id (ex)) {
printf ("Exception caught in camel_session_get_store\n"