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/tlsclient.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/tlsclient.h')
| -rw-r--r-- | tcpd/tlsclient.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/tcpd/tlsclient.h b/tcpd/tlsclient.h new file mode 100644 index 0000000..1619449 --- /dev/null +++ b/tcpd/tlsclient.h @@ -0,0 +1,54 @@ +#ifndef tlsclient_h +#define tlsclient_h + +/* +** Copyright 2000-2001 Double Precision, Inc. +** See COPYING for distribution information. +*/ + + +#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 |
