diff options
Diffstat (limited to 'include/mailutils/auth.h')
-rw-r--r-- | include/mailutils/auth.h | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/include/mailutils/auth.h b/include/mailutils/auth.h index b4332f033..abeb5c7f4 100644 --- a/include/mailutils/auth.h +++ b/include/mailutils/auth.h @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2005 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -25,37 +25,36 @@ extern "C" { #endif -extern int ticket_create __P ((ticket_t *, void *owner)); -extern void ticket_destroy __P ((ticket_t *, void *owner)); -extern int ticket_set_destroy __P ((ticket_t, void (*) - __PMT ((ticket_t)), void *owner)); -extern void *ticket_get_owner __P ((ticket_t)); - -extern int ticket_set_pop __P ((ticket_t, int (*_pop) - __PMT ((ticket_t, url_t, const char *, char **)), void *)); -extern int ticket_pop __P ((ticket_t, url_t, const char *, char **)); -extern int ticket_set_data __P ((ticket_t, void *, void *owner)); -extern int ticket_get_data __P ((ticket_t, void **)); - -extern int authority_create __P ((authority_t *, ticket_t, void *)); -extern void authority_destroy __P ((authority_t *, void *)); -extern void *authority_get_owner __P ((authority_t)); -extern int authority_set_ticket __P ((authority_t, ticket_t)); -extern int authority_get_ticket __P ((authority_t, ticket_t *)); -extern int authority_authenticate __P ((authority_t)); -extern int authority_set_authenticate __P ((authority_t, - int (*_authenticate) __PMT ((authority_t)), void *)); - -extern int authority_create_null __P ((authority_t *pauthority, void *owner)); - -extern int wicket_create __P ((wicket_t *, const char *)); -extern void wicket_destroy __P ((wicket_t *)); -extern int wicket_set_filename __P ((wicket_t, const char *)); -extern int wicket_get_filename __P ((wicket_t, char *, size_t, size_t *)); -extern int wicket_set_ticket __P ((wicket_t, int (*) - __PMT ((wicket_t, const char *, - const char *, ticket_t *)))); -extern int wicket_get_ticket __P ((wicket_t, ticket_t *, const char *, const char *)); +extern int ticket_create (ticket_t *, void *owner); +extern void ticket_destroy (ticket_t *, void *owner); +extern int ticket_set_destroy (ticket_t, void (*) (ticket_t), void *); +extern void *ticket_get_owner (ticket_t); + +extern int ticket_set_pop (ticket_t, + int (*_pop) (ticket_t, url_t, const char *, char **), void *); +extern int ticket_pop (ticket_t, url_t, const char *, char **); +extern int ticket_set_data (ticket_t, void *, void *owner); +extern int ticket_get_data (ticket_t, void **); + +extern int authority_create (authority_t *, ticket_t, void *); +extern void authority_destroy (authority_t *, void *); +extern void *authority_get_owner (authority_t); +extern int authority_set_ticket (authority_t, ticket_t); +extern int authority_get_ticket (authority_t, ticket_t *); +extern int authority_authenticate (authority_t); +extern int authority_set_authenticate (authority_t, + int (*_authenticate) (authority_t), void *); + +extern int authority_create_null (authority_t *pauthority, void *owner); + +extern int wicket_create (wicket_t *, const char *); +extern void wicket_destroy (wicket_t *); +extern int wicket_set_filename (wicket_t, const char *); +extern int wicket_get_filename (wicket_t, char *, size_t, size_t *); +extern int wicket_set_ticket (wicket_t, + int (*) (wicket_t, const char *, + const char *, ticket_t *)); +extern int wicket_get_ticket (wicket_t, ticket_t *, const char *, const char *); #ifdef __cplusplus } |