Back to index

courier  0.68.2
tlspasswordcache.h
Go to the documentation of this file.
00001 /*
00002 ** Copyright 2003 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 #ifndef tlspasswordcache_h
00007 #define tlspasswordcache_h
00008 
00009 #include      "config.h"
00010 
00011 #include      <unistd.h>
00012 
00013 
00014 #ifdef  __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 
00019 
00020        /*
00021        ** This module implements a password cache - an encrypted password
00022        ** store. OpenSSL 0.9.7 is required.
00023        */
00024 
00025 int tlspassword_init(); /* Returns 0 if OpenSSL 0.9.7 is installed */
00026 
00027 int tlspassword_save( const char * const *, /* NULL-terminated URL list */
00028                     const char * const *, /* NULL-terminated password list */
00029 
00030                     const char *,  /* Master password */
00031 
00032                     int (*)(const char *, size_t, void *),
00033                     /* Output function receives encrypted data */
00034                     void *); /* Passthrough arg to output function */
00035 
00036 int tlspassword_load( int (*)(char *, size_t, void *), /* Input function */
00037                     void *, /* Passthrough arg to input function */
00038 
00039                     const char *,  /* Master password */
00040 
00041                     void(*)(const char * const *,
00042                            const char * const *,
00043                            void *), /* Callback function - decrypted pwds */
00044                     void *); /* Passthrough arg to callback function */
00045 
00046 
00047 #ifdef  __cplusplus
00048 }
00049 #endif
00050 
00051 #endif