File: tlsclient.h

package info (click to toggle)
courier 0.60.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 52,288 kB
  • ctags: 12,677
  • sloc: ansic: 165,348; cpp: 24,820; sh: 16,410; perl: 6,839; makefile: 3,621; yacc: 289; sed: 16
file content (55 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download | duplicates (3)
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
53
54
55
#ifndef	tlsclient_h
#define	tlsclient_h

/*
** Copyright 2000-2001 Double Precision, Inc.
** See COPYING for distribution information.
*/

static const char tlsclient_h_rcsid[]="$Id: tlsclient.h,v 1.3 2008/06/29 20:18:36 mrsam Exp $";

#ifdef  __cplusplus
extern "C" {
#endif

#include "config.h"
#include <sys/types.h>
#include <stdlib.h>

struct tls_subjitem {
	struct tls_subjitem *nextitem;
	const char *name;
	const char *value;
} ;

struct tls_subject {
	struct tls_subject *next;
	struct tls_subjitem *firstitem;
} ;

struct couriertls_info {
	char errmsg[128];
	char *x509info;
	size_t x509info_len;
	size_t x509info_size;

	struct tls_subject *first_subject;

	const char *cipher;
	const char *version;
	int bits;
} ;

void couriertls_init(struct couriertls_info *);
int couriertls_start(char **, struct couriertls_info *);

const char *couriertls_get_subject(struct couriertls_info *, const char *subject);
void couriertls_export_subject_environment(struct couriertls_info *);

void couriertls_destroy(struct couriertls_info *);

#ifdef  __cplusplus
}
#endif

#endif