File: tlspasswordcache.h

package info (click to toggle)
courier 0.47-4sarge5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 32,680 kB
  • ctags: 12,265
  • sloc: ansic: 164,045; cpp: 23,863; sh: 19,569; perl: 7,225; makefile: 4,192; yacc: 316; sed: 16
file content (52 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
** 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

static const char tlspasswordcache_h_rcsid[]="$Id: tlspasswordcache.h,v 1.1 2003/06/05 01:22:16 mrsam Exp $";


	/*
	** 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