"Fossies" - the Fresh Open Source Software Archive

Member "smbnetfs-0.6.3/src/auth-libsecret.h" (2 Jan 2018, 754 Bytes) of package /linux/misc/smbnetfs-0.6.3.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "auth-libsecret.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef __AUTH_LIBSECRET_H__
    2 #define __AUTH_LIBSECRET_H__
    3 
    4 #define AUTH_FALLBACK           0
    5 #define AUTH_MATCH_DEFAULT      1
    6 #define AUTH_MATCH_DOMAIN_COMPAT    2
    7 #define AUTH_MATCH_DOMAIN       3
    8 #define AUTH_MATCH_SERVER       4
    9 #define AUTH_MATCH_RESOURCE     5
   10 
   11 #ifdef HAVE_LIBSECRET
   12 struct libsecret_authinfo{
   13     char    *domain;
   14     char    *user;
   15     char    *password;
   16     int     suitability;
   17 };
   18 
   19 void libsecret_init(void);
   20 void libsecret_done(void);
   21 int  libsecret_enable(int state);
   22 int  libsecret_set_request_timeout(int timeout);
   23 
   24 struct libsecret_authinfo* libsecret_get_authinfo(
   25                     const char *domain,
   26                     const char *server,
   27                     const char *share);
   28 
   29 void libsecret_free_authinfo(struct libsecret_authinfo*);
   30 #endif /* HAVE_LIBSECRET */
   31 
   32 #endif /* __AUTH_LIBSECRET_H__ */