]> git.sur5r.net Git - openldap/blob - contrib/tweb/support_exp.h
fixed test on "" (empty) parent dn
[openldap] / contrib / tweb / support_exp.h
1 /*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
2 *                                                                          *
3 * support_exp.h                                                            *
4 *                                                                          *
5 * Function:..WorldWideWeb-X.500-Gateway - Supporting Routines              *
6 *            Based on web500gw.c 1.3 written by Frank Richter, TU Chemmniz *
7 *            which is based on go500gw by Tim Howes, University of         *
8 *            Michigan  - All rights reserved                               *
9 *                                                                          *
10 * Authors:...Dr. Kurt Spanier & Bernhard Winkler,                          *
11 *            Zentrum fuer Datenverarbeitung, Bereich Entwicklung           *
12 *            neuer Dienste, Universitaet Tuebingen, GERMANY                *
13 *                                                                          *
14 *                                       ZZZZZ  DDD    V   V                *
15 *            Creation date:                Z   D  D   V   V                *
16 *            December 2 1995              Z    D   D   V V                 *
17 *            Last modification:          Z     D  D    V V                 *
18 *            September 7 1999           ZZZZ   DDD      V                  *
19 *                                                                          *
20 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/
21
22 /*
23  * $Id: support_exp.h,v 1.6 1999/09/10 15:01:20 zrnsk01 Exp $
24  *
25  */
26
27 #ifndef _SUPPORT_EXP_H_
28 #define _SUPPORT_EXP_H_
29
30 PUBLIC char * hex_decode ();
31 PUBLIC char * hex_qdecode ();
32 PUBLIC char * form_encode ();
33
34 PUBLIC char * format_date ();
35 PUBLIC char * friendly_dn ();
36 PUBLIC char * format_time ();
37 PUBLIC char * strQuoteChr();
38 PUBLIC int    strlstcmp (/* char *s1, char *s2, char sep */);
39 PUBLIC void   re_fail ();
40 PUBLIC char *dnrcut(/*rdn, target, basecount*/);
41 PUBLIC void  disp_file (/* GLOB_STRUCT glob, char *filename, FILE *fp */);
42
43 PUBLIC char *elapsed();
44
45 PUBLIC char *hex_html_encode();
46
47 #define hex_encode(x) hex_html_encode((x), 0)
48 #define char2html(x) hex_html_encode((x), 1)
49 #define flatten_chars(x) hex_html_encode((x), 2)
50
51 PUBLIC char * get_parentDN();
52 PUBLIC char **dn2charray();
53 PUBLIC char * strrQuoteChr();
54 PUBLIC int exit_tweb();
55
56
57 /*  dn_cmp and return codes  */
58 PUBLIC int dn_cmp( /* dn1, dn2 */ );
59 PUBLIC int dn_cmp_parts( /* dn1, dn2, &matched */ );
60 #define DN_EQUAL       0       /*  dns are exactly equal            */
61 #define DN_LESS       -1       /*  dn1 is part of dn2               */
62 #define DN_GREATER     1       /*  dn2 is part of dn1               */
63 #define DN_UNMATCHED  -2       /*  dns differ, matched is the same  */
64                                /*    (matched as seen from c down)  */
65
66
67 #endif
68