Summary: Isode provides a number of APIs which allow integrators and product developers to build components that access the Isode Messaging server products or other products supporting the same protocols.
example.h
1 /*
2  * Copyright (c) 2004-2014, Isode Limited, London, England.
3  * All rights reserved.
4  *
5  * Acquisition and use of this software and related materials for any
6  * purpose requires a written licence agreement from Isode Limited,
7  * or a written licence from an organisation licenced by Isode Limited
8  * to grant such a licence.
9  */
10 
11 /*
12  * @VERSION@
13  */
14 
15 #include <stdio.h>
16 #include <stddef.h>
17 #include <stdlib.h>
18 #include <string.h>
19 
20 #define INIT_BUFFER_SIZE 10000
21 
22 extern int use_defaults;
23 extern int x400_contype;
24 extern char *x400_ms_user_addr;
25 extern char *x400_ms_user_dn;
26 extern char *x400_ms_presentation_address;
27 extern char *x400_ms_password;
28 extern char *x400_p7_password;
29 extern char *x400_mta_user_addr;
30 extern char *x400_mta_user_dn;
31 extern char *x400_mta_presentation_address;
32 extern char *x400_mta_password;
33 extern char *x400_p3_password;
34 extern char *x400_default_originator_return_address;
35 extern char *x400_default_recipient;
36 extern char *x400_default_gw_recipient;
37 extern int x400_default_priority;
38 extern int x400_default_content_type;
39 extern char *x400_default_external_content_type;
40 extern int x400_default_implicit_conversion_prohibited;
41 extern int x400_default_alternate_recipient_allowed;
42 extern int x400_default_content_return_request;
43 extern int x400_default_disclosure_of_recipients;
44 extern int x400_default_recipient_reassignment_prohibited;
45 extern int x400_default_dl_expansion_prohibited;
46 extern int x400_default_conversion_with_loss_prohibited;
47 extern char *x400_default_originator;
48 extern char *x400_default_gw_originator;
49 extern char *x400_default_exempted_recipient;
50 extern char *x400_default_fwd_originator;
51 extern char *x400_default_fwd_recipient;
52 extern char *x400_channel;
53 extern char *x400_logline;
54 extern int x400_reports;
55 extern char *security_id;
56 extern char *passphrase;
57 extern char *identity_dn;
58 extern char *identity_dn2;
59 extern char *identity_filename;
60 extern char *identity_filename2;
61 extern int sign_message;
62 extern int use_new_sec_env;
63 extern char *filename_to_send;
64 extern int num_msgs_to_send;
65 extern int bin_bp_size;
66 extern int until_no_more_msgs;
67 extern int new_messages;
68 extern int submitted_messages;
69 extern char *since_time;
70 extern char *until_time;
71 extern int attr_to_fault;
72 extern char *attrs[];
73 extern char *x400_default_gw_dlexphist1_or;
74 extern char *x400_default_gw_dlexphist1_dn;
75 extern char *x400_default_gw_dlexphist2_or;
76 extern char *x400_default_gw_dlexphist2_dn;
77 extern int talking_to_marben_ms;
78 extern int priority;
79 extern char *trusted_ca_certs_dir;
80 extern int gen_moac;
81 extern int gen_4406_sig;
82 extern int need_x411_label;
83 extern int need_4066_label;
84 extern int x400_dr_req;
85 extern int x400_rn_req;
86 extern char *subject;
87 extern char *flot_string;
88 extern int send_4406_label;
89 extern int send_x411_label;
90 extern int num_of_ia5_bytes;
91 
92 
93 int getopt (int nargc, char *const *nargv, const char *ostr);
94 int get_args(int argc, char **argv, char *optstr);
95 char *ic_fgets(char *s, int size, FILE *stream);
96 int ic_fgetc(int default_char, FILE *stream);
97