diff options
| author | Sam Varshavchik | 2013-08-19 16:39:41 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2013-08-25 14:43:51 -0400 |
| commit | 9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch) | |
| tree | 7a81a04cb51efb078ee350859a64be2ebc6b8813 /tcpd/tlspasswordcache.h | |
| parent | a9520698b770168d1f33d6301463bb70a19655ec (diff) | |
| download | courier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2 | |
Initial checkin
Imported from subversion report, converted to git. Updated all paths in
scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'tcpd/tlspasswordcache.h')
| -rw-r--r-- | tcpd/tlspasswordcache.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tcpd/tlspasswordcache.h b/tcpd/tlspasswordcache.h new file mode 100644 index 0000000..c794580 --- /dev/null +++ b/tcpd/tlspasswordcache.h @@ -0,0 +1,51 @@ +/* +** Copyright 2003 Double Precision, Inc. +** See COPYING for distribution information. +*/ + +#ifndef tlspasswordcache_h +#define tlspasswordcache_h + +#include "config.h" + +#include <unistd.h> + + +#ifdef __cplusplus +extern "C" { +#endif + + + + /* + ** This module implements a password cache - an encrypted password + ** store. OpenSSL 0.9.7 is required. + */ + +int tlspassword_init(); /* Returns 0 if OpenSSL 0.9.7 is installed */ + +int tlspassword_save( const char * const *, /* NULL-terminated URL list */ + const char * const *, /* NULL-terminated password list */ + + const char *, /* Master password */ + + int (*)(const char *, size_t, void *), + /* Output function receives encrypted data */ + void *); /* Passthrough arg to output function */ + +int tlspassword_load( int (*)(char *, size_t, void *), /* Input function */ + void *, /* Passthrough arg to input function */ + + const char *, /* Master password */ + + void(*)(const char * const *, + const char * const *, + void *), /* Callback function - decrypted pwds */ + void *); /* Passthrough arg to callback function */ + + +#ifdef __cplusplus +} +#endif + +#endif |
