x400_api.h
Go to the documentation of this file.
1/* Copyright (c) 2004-2025, Isode Limited, London, England.
2 * All rights reserved.
3 *
4 * Acquisition and use of this software and related materials for any
5 * purpose requires a written licence agreement from Isode Limited,
6 * or a written licence from an organisation licenced by Isode Limited
7 * to grant such a licence.
8 *
9 */
10
11/*
12 *
13 * @VERSION@
14 */
15
16#ifndef X400_API_H
17
18#define X400_API_H
19
20#include <stdlib.h>
21
22#include "cdecl.h"
23#include "x400_att.h"
24
39/* generic X400 recipient */
40struct X400Recipient;
41
42/* generic X400 message */
43struct X400Message;
44
45/* generic X400 Body Part (Attachment) */
46struct X400Bodypart;
47
48/* object for Certificate associated with message */
49struct X400Certificate;
50
51/* X400 attribute structure */
52struct x400_attribute;
53
54/* X400 DL Expansion List History*/
55struct X400DLExpHist;
56
57/* X400 Trace Information Object */
58struct X400TraceInfo;
59
60/* X400 Internal Trace Information Object */
61struct X400InternalTraceInfo;
62
63/* X400 Redirection History Object */
64struct X400RediHist;
65
66/* X400 Address List indicator */
67struct X400ALI;
68
69/* X400 Printable String Sequence */
70struct X400PSS;
71
72/* X400 Distribution Field Object*/
73struct X400DistField;
74
75/* X400 Other Recipient Indicator Object */
76struct X400OtherRecip;
77
78/* X400 ACP127 Response Notification */
79struct X400ACP127Resp;
80
81/* X400 Originator and DL history Object */
82struct X400ORandDL;
83
84/* X400 Security Environment */
85struct X400SecurityEnv;
86
92X400COMMON_CDECL int X400Initialize(char* myname);
93
102X400COMMON_CDECL int X400InitializeLogging(const char* myname, const char* xmlfile);
103
116X400COMMON_CDECL int X400MsgNew(int type, struct X400Message** mpp);
117
127X400COMMON_CDECL int X400MsgCountRecip(struct X400Message* mp, int recipient_type, int* number);
128
134X400COMMON_CDECL int X400MsgFree(struct X400Message* mp);
135
149X400COMMON_CDECL int X400MsgAddAttachment(struct X400Message* mp, int type, const char* string, size_t length);
150
157X400COMMON_CDECL int X400MsgAddBodypart(struct X400Message* mp, struct X400Bodypart* bp);
158
161X400COMMON_CDECL int X400MsgAddMessageBody(struct X400Message* mp, struct X400Message* mbp);
162
176X400COMMON_CDECL int X400MsgAddMessageBodyWType(struct X400Message* mp, struct X400Message* mbp, int type);
177
185X400COMMON_CDECL int X400MsgAddIntParam(struct X400Message* mp, int paramtype, int value);
186
196X400COMMON_CDECL int X400MsgAddStrParam(struct X400Message* mp, int paramtype, const char* value, size_t length);
197
205X400COMMON_CDECL int X400MsgAddRecip(struct X400Message* mp, int reciptype, struct X400Recipient* recip);
206
214X400COMMON_CDECL int X400MsgGetIntParam(struct X400Message* mp, int paramtype, int* valuep);
215
225X400COMMON_CDECL int X400MsgGetStrParam(struct X400Message* mp, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
226
243X400COMMON_CDECL int X400MsgGetAttachment(struct X400Message* mp, int number, int* typep, char* buffer, size_t buflen, size_t* lengthp);
244
259X400COMMON_CDECL int X400MsgGetBodypart(struct X400Message* mp, int number, int* typep, struct X400Bodypart** bpp);
260
269X400COMMON_CDECL int X400MsgGetMessageBody(struct X400Message* mp, int number, struct X400Message** mbpp);
270
280X400COMMON_CDECL int X400MsgGetRecip(struct X400Message* mp, int recip_type, int number, struct X400Recipient** rpp);
281
292X400COMMON_CDECL int X400MsgGetCert(struct X400Message* mp, int certtype, struct X400Certificate** certp);
293
322X400COMMON_CDECL int X400RecipNew(int type, struct X400Recipient** rpp);
323
329X400COMMON_CDECL int X400RecipFree(struct X400Recipient* rpp);
330
339X400COMMON_CDECL int X400RecipAddIntParam(struct X400Recipient* rp, int paramtype, int value);
340
349X400COMMON_CDECL int X400RecipAddStrParam(struct X400Recipient* rp, int paramtype, const char* value, size_t length);
350
361X400COMMON_CDECL int X400RecipGetStrParam(struct X400Recipient* rp, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
362
370X400COMMON_CDECL int X400RecipGetIntParam(struct X400Recipient* rp, int paramtype, int* valp);
371
382X400COMMON_CDECL int X400RecipGetCert(struct X400Recipient* rp, int certtype, struct X400Certificate** certp);
383
393X400COMMON_CDECL int X400BodypartNew(int type, struct X400Bodypart** bpp);
394
400X400COMMON_CDECL int X400BodypartFree(struct X400Bodypart* bpp);
401
410X400COMMON_CDECL int X400BodypartAddIntParam(struct X400Bodypart* bp, int paramtype, int value);
411
420X400COMMON_CDECL int X400BodypartAddStrParam(struct X400Bodypart* bp, int paramtype, const char* value, size_t length);
421
432X400COMMON_CDECL int X400BodypartGetStrParam(struct X400Bodypart* bp, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
433
441X400COMMON_CDECL int X400BodypartGetIntParam(struct X400Bodypart* bp, int paramtype, int* valp);
442
448X400COMMON_CDECL int X400DefaultsNew(struct x400_attribute** ap);
449
455X400COMMON_CDECL int X400DefaultsFree(struct x400_attribute* ap);
456
465X400COMMON_CDECL int X400SetStrDefault(struct x400_attribute* ap, int paramtype, const char* value, size_t length);
466
474X400COMMON_CDECL int X400SetIntDefault(struct x400_attribute* ap, int paramtype, int value);
475
481X400COMMON_CDECL const char* X400Error(int error);
482
490X400COMMON_CDECL int X400DLExpHistGet(struct X400Message* mp, int entry, struct X400DLExpHist** hist);
491
497X400COMMON_CDECL int X400DLExpHistDelete(struct X400DLExpHist* hist);
498
508X400COMMON_CDECL int X400DLExpHistGetStrParam(struct X400DLExpHist* hist, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
509
510/* For backwards compatibility - function had wrong name originally */
511#define X400DLGetStrParam X400DLExpHistGetStrParam
512
518X400COMMON_CDECL int X400DLExpHistNew(struct X400DLExpHist** histp);
519
526X400COMMON_CDECL int X400MsgAddDLExpHist(struct X400Message* mp, struct X400DLExpHist* histp);
527
536X400COMMON_CDECL int X400DLExpHistAddStrParam(struct X400DLExpHist* hist, int paramtype, const char* value, size_t length);
537
543X400COMMON_CDECL struct X400DLExpHist* X400DLExpHistDeepCopy(struct X400DLExpHist* original);
544
553X400COMMON_CDECL int X400TraceInfoGet(struct X400Message* mp, int entry, struct X400TraceInfo** info, int trace_info_type);
554
564X400COMMON_CDECL int X400TraceInfoGetStrParam(struct X400TraceInfo* info, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
572X400COMMON_CDECL int X400TraceInfoGetIntParam(struct X400TraceInfo* info, int paramtype, int* valuep);
573
581X400COMMON_CDECL int X400TraceInfoNew(struct X400Message* msg, struct X400TraceInfo** info, int type);
582
590X400COMMON_CDECL struct X400TraceInfo* X400TraceInfoDeepCopy(struct X400Message* mp, struct X400TraceInfo* original, int type);
591
599X400COMMON_CDECL int X400MsgAddTraceInfo(struct X400Message* mp, struct X400TraceInfo* info, int type);
600
609X400COMMON_CDECL int X400TraceInfoAddStrParam(struct X400TraceInfo* info, int paramtype, const char* value, size_t length);
610
618X400COMMON_CDECL int X400TraceInfoAddIntParam(struct X400TraceInfo* info, int paramtype, int value);
619
628X400COMMON_CDECL int X400RediHistAddStrParam(struct X400RediHist* hist, int paramtype, const char* value, size_t length);
629
637X400COMMON_CDECL int X400RediHistAddIntParam(struct X400RediHist* hist, int paramtype, int value);
638
648X400COMMON_CDECL int X400RediHistGetStrParam(struct X400RediHist* hist, int paramtype, char* value, size_t length, size_t* lengthp);
649
657X400COMMON_CDECL int X400RediHistGetIntParam(struct X400RediHist* info, int paramtype, int* valuep);
658
666X400COMMON_CDECL int X400RediHistGet(struct X400Recipient* recip, int entry, struct X400RediHist** hist);
667
674X400COMMON_CDECL int X400RediHistNew(struct X400Recipient* recip, struct X400RediHist** hist);
675
683X400COMMON_CDECL int X400RediHistGetEnv(struct X400Message* msg, int entry, struct X400RediHist** hist);
684
691X400COMMON_CDECL int X400RediHistNewEnv(struct X400Message* msg, struct X400RediHist** hist);
692
699X400COMMON_CDECL struct X400RediHist* X400RediHistDeepCopyEnv(struct X400Message* msg, struct X400RediHist* original);
700
707X400COMMON_CDECL struct X400RediHist* X400RediHistDeepCopy(struct X400Recipient* recip, struct X400RediHist* original);
708
714X400COMMON_CDECL const char* X400RediReason(int redirection_reason);
715
723X400COMMON_CDECL int X400InternalTraceInfoGet(struct X400Message* mp, int entry, struct X400InternalTraceInfo** info);
724
731X400COMMON_CDECL struct X400InternalTraceInfo* X400InternalTraceInfoDeepCopy(struct X400Message* mp, struct X400InternalTraceInfo* original);
732
739X400COMMON_CDECL int X400InternalTraceInfoNew(struct X400Message* msg, struct X400InternalTraceInfo** info);
740
747X400COMMON_CDECL int X400MsgAddInternalTraceInfo(struct X400Message* mp, struct X400InternalTraceInfo* info);
748
758X400COMMON_CDECL int
759X400InternalTraceInfoGetStrParam(struct X400InternalTraceInfo* info, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
760
768X400COMMON_CDECL int X400InternalTraceInfoGetIntParam(struct X400InternalTraceInfo* info, int paramtype, int* valuep);
769
778X400COMMON_CDECL int X400InternalTraceInfoAddStrParam(struct X400InternalTraceInfo* info, int paramtype, const char* value, size_t length);
779
787X400COMMON_CDECL int X400InternalTraceInfoAddIntParam(struct X400InternalTraceInfo* info, int paramtype, int value);
788
796X400COMMON_CDECL int X400ALIGet(struct X400Message* mp, int entry, struct X400ALI** ali);
797
804X400COMMON_CDECL int X400ALINew(struct X400Message* msg, struct X400ALI** ali);
805
812X400COMMON_CDECL struct X400ALI* X400ALIDeepCopy(struct X400Message* mp, struct X400ALI* ali);
813
823X400COMMON_CDECL int X400ALIGetStrParam(struct X400ALI* ALI, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
824
832X400COMMON_CDECL int X400ALIGetIntParam(struct X400ALI* ALI, int paramtype, int* valuep);
833
842X400COMMON_CDECL int X400ALIAddStrParam(struct X400ALI* info, int paramtype, const char* value, size_t length);
843
851X400COMMON_CDECL int X400ALIAddIntParam(struct X400ALI* info, int paramtype, int value);
852
861X400COMMON_CDECL int X400PSSGet(struct X400Message* mp, int type, int entry, struct X400PSS** pss);
862
870X400COMMON_CDECL struct X400PSS* X400PSSDeepCopy(struct X400Message* mp, struct X400PSS* pss, int type);
871
879X400COMMON_CDECL int X400PSSNew(struct X400Message* msg, struct X400PSS** pss, int type);
880
889X400COMMON_CDECL int X400PSSGetStrParam(struct X400PSS* pss, char* buffer, size_t buflen, size_t* paramlenp);
890
898X400COMMON_CDECL int X400PSSAddStrParam(struct X400PSS* pss, const char* value, size_t length);
906X400COMMON_CDECL int X400DistFieldGet(struct X400Message* mp, int entry, struct X400DistField** distfield);
907
914X400COMMON_CDECL struct X400DistField* X400DistFieldDeepCopy(struct X400Message* mp, struct X400DistField* original);
915
922X400COMMON_CDECL int X400DistFieldNew(struct X400Message* msg, struct X400DistField** distfield);
923
933X400COMMON_CDECL int X400DistFieldGetStrParam(struct X400DistField* distfield, int type, char* buffer, size_t buflen, size_t* paramlenp);
934
943X400COMMON_CDECL int X400DistFieldAddStrParam(struct X400DistField* distfield, int type, const char* value, size_t length);
944
952X400COMMON_CDECL int X400OtherRecipGet(struct X400Message* mp, int entry, struct X400OtherRecip** otherrecip);
953
960X400COMMON_CDECL struct X400OtherRecip* X400OtherRecipDeepCopy(struct X400Message* mp, struct X400OtherRecip* original);
961
968X400COMMON_CDECL int X400OtherRecipNew(struct X400Message* mp, struct X400OtherRecip** otherrecip);
969
978X400COMMON_CDECL int X400OtherRecipGetStrParam(struct X400OtherRecip* otherrecip, char* buffer, size_t buflen, size_t* paramlenp);
979
987X400COMMON_CDECL int X400OtherRecipAddStrParam(struct X400OtherRecip* otherrecip, const char* value, size_t length);
988
996X400COMMON_CDECL int X400OtherRecipAddIntParam(struct X400OtherRecip* otherrecip, int value);
997
1004X400COMMON_CDECL int X400OtherRecipGetIntParam(struct X400OtherRecip* otherrecip, int* value);
1005
1012X400COMMON_CDECL int X400ACP127RespGet(struct X400Message* mp, struct X400ACP127Resp** resp);
1013
1020X400COMMON_CDECL struct X400ACP127Resp* X400ACP127RespDeepCopy(struct X400Message* mp, struct X400ACP127Resp* original);
1021
1028X400COMMON_CDECL int X400ACP127RespNew(struct X400Message* mp, struct X400ACP127Resp** resp);
1029
1039X400COMMON_CDECL int X400ACP127RespGetStrParam(struct X400ACP127Resp* resp, int type, char* buffer, size_t buflen, size_t* paramlenp);
1040
1049X400COMMON_CDECL int X400ACP127RespAddStrParam(struct X400ACP127Resp* resp, int type, const char* value, size_t length);
1050
1057X400COMMON_CDECL int X400ACP127RespAddIntParam(struct X400ACP127Resp* resp, int value);
1058
1065X400COMMON_CDECL int X400ACP127RespGetIntParam(struct X400ACP127Resp* resp, int* value);
1066
1073X400COMMON_CDECL int X400ACP127RespNewALI(struct X400ACP127Resp* resp, struct X400ALI** ali);
1074
1082X400COMMON_CDECL int X400ACP127RespGetALI(struct X400ACP127Resp* resp, struct X400ALI** ali, int entry);
1083
1092X400COMMON_CDECL int X400ORandDLAddStrParam(struct X400ORandDL* or_and_dl, int type, const char* value, size_t length);
1093
1100X400COMMON_CDECL struct X400ORandDL* X400ORandDLDeepCopy(struct X400Message* msg, struct X400ORandDL* orig);
1101
1108X400COMMON_CDECL int X400ORandDLNew(struct X400Message* msg, struct X400ORandDL** or_and_dl);
1109
1117X400COMMON_CDECL int X400MsgORandDLGet(struct X400Message* msg, int entry, struct X400ORandDL** or_and_dl);
1118
1128X400COMMON_CDECL int X400ORandDLGetStrParam(struct X400ORandDL* or_and_dl, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
1129
1140X400COMMON_CDECL int X400CertGetStrParam(struct X400Certificate* cp, int paramtype, char* buffer, size_t buflen, size_t* paramlenp);
1141
1149X400COMMON_CDECL int X400CertGetIntParam(struct X400Certificate* cp, int paramtype, int* valp);
1150
1162X400COMMON_CDECL int X400GetContentOctets(struct X400Message* mp, char* buf, size_t buflen, size_t* lenp);
1163
1174X400COMMON_CDECL int X400SetContentOctets(struct X400Message* mp, char* buf, size_t len);
1175
1191X400COMMON_CDECL int X400SetupSecEnv(struct X400SecurityEnv** envp, struct x400_attribute* attrs, int allow_no_id);
1192
1204X400COMMON_CDECL int X400SetupSecEnvSecurityDb(struct X400SecurityEnv** envp, const char* identity, const char* channel_name);
1205
1218X400COMMON_CDECL int X400SetupMessageSecEnv(struct X400SecurityEnv** msgenvp, struct x400_attribute* msg_attrs, struct x400_attribute* default_attrs);
1219
1233X400COMMON_CDECL int X400SetupRecipSecenv(struct X400SecurityEnv** recipenvp,
1234 struct x400_attribute* recip_attrs,
1235 struct x400_attribute* msg_attrs,
1236 struct x400_attribute* default_attrs);
1237
1248X400COMMON_CDECL int X400MsgGetCriticality(struct X400Message* mp, int paramtype, int* critp);
1249
1250/* \} */
1251
1252#endif
X400COMMON_CDECL int X400TraceInfoGetIntParam(struct X400TraceInfo *info, int paramtype, int *valuep)
Get int parameter from Trace Information object.
X400COMMON_CDECL int X400MsgGetAttachment(struct X400Message *mp, int number, int *typep, char *buffer, size_t buflen, size_t *lengthp)
Return data from a simple attachment.
X400COMMON_CDECL int X400InternalTraceInfoGetIntParam(struct X400InternalTraceInfo *info, int paramtype, int *valuep)
Get int parameter from Internal Trace Information object.
X400COMMON_CDECL struct X400TraceInfo * X400TraceInfoDeepCopy(struct X400Message *mp, struct X400TraceInfo *original, int type)
Copy an existing Trace information object.
X400COMMON_CDECL int X400MsgGetMessageBody(struct X400Message *mp, int number, struct X400Message **mbpp)
Return a pointer to a body part object.
X400COMMON_CDECL struct X400ACP127Resp * X400ACP127RespDeepCopy(struct X400Message *mp, struct X400ACP127Resp *original)
Copy an ACP127 Notification Response object.
X400COMMON_CDECL int X400MsgAddMessageBodyWType(struct X400Message *mp, struct X400Message *mbp, int type)
Add a message body part object to a message.
X400COMMON_CDECL int X400ACP127RespNew(struct X400Message *mp, struct X400ACP127Resp **resp)
Create an ACP127 Notification Response object.
X400COMMON_CDECL int X400DLExpHistGetStrParam(struct X400DLExpHist *hist, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Return a string parameter from the DL Expansion History object.
X400COMMON_CDECL int X400ACP127RespAddStrParam(struct X400ACP127Resp *resp, int type, const char *value, size_t length)
Add string-valued parameter to the ACP127 Notification Response object.
X400COMMON_CDECL int X400PSSGetStrParam(struct X400PSS *pss, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from Printable String Sequence object.
X400COMMON_CDECL int X400RecipGetStrParam(struct X400Recipient *rp, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Return a string-valued parameter from the recipient object.
X400COMMON_CDECL int X400BodypartNew(int type, struct X400Bodypart **bpp)
Create a new body part object.
X400COMMON_CDECL int X400DLExpHistAddStrParam(struct X400DLExpHist *hist, int paramtype, const char *value, size_t length)
Add string-valued parameter to the X400DLExpHist object.
X400COMMON_CDECL int X400SetContentOctets(struct X400Message *mp, char *buf, size_t len)
Takes a byte stream containing the ASN.1 encoding of a P22 (or P772) content, decodes it and sets it ...
X400COMMON_CDECL int X400BodypartAddIntParam(struct X400Bodypart *bp, int paramtype, int value)
Add integer-valued parameter to the body part.
X400COMMON_CDECL int X400CertGetStrParam(struct X400Certificate *cp, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Return a string-valued parameter from the certificate object.
X400COMMON_CDECL struct X400OtherRecip * X400OtherRecipDeepCopy(struct X400Message *mp, struct X400OtherRecip *original)
Copy a P772 Other Recipient object.
X400COMMON_CDECL int X400InternalTraceInfoGet(struct X400Message *mp, int entry, struct X400InternalTraceInfo **info)
Get the Trace information object from a message.
X400COMMON_CDECL int X400PSSAddStrParam(struct X400PSS *pss, const char *value, size_t length)
Add string-valued parameter to the PSS info object.
X400COMMON_CDECL int X400MsgFree(struct X400Message *mp)
Frees a message.
X400COMMON_CDECL struct X400DistField * X400DistFieldDeepCopy(struct X400Message *mp, struct X400DistField *original)
Copy a P772 Distribution Code extension Field object.
X400COMMON_CDECL int X400MsgORandDLGet(struct X400Message *msg, int entry, struct X400ORandDL **or_and_dl)
Get Originator and DL expansion history object.
X400COMMON_CDECL int X400ACP127RespAddIntParam(struct X400ACP127Resp *resp, int value)
Add integer parameter to the ACP127 Notification Response object.
X400COMMON_CDECL int X400RecipGetIntParam(struct X400Recipient *rp, int paramtype, int *valp)
Return a integer-valued parameter from the recipient object.
X400COMMON_CDECL int X400InternalTraceInfoGetStrParam(struct X400InternalTraceInfo *info, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from Internal Trace Information object.
X400COMMON_CDECL int X400ALIGet(struct X400Message *mp, int entry, struct X400ALI **ali)
Get the Address List Indicator information object from a message.
X400COMMON_CDECL int X400SetupMessageSecEnv(struct X400SecurityEnv **msgenvp, struct x400_attribute *msg_attrs, struct x400_attribute *default_attrs)
Test that the message security environment has been initialised with valid values,...
X400COMMON_CDECL int X400InitializeLogging(const char *myname, const char *xmlfile)
Initialize X.400 API logging. If just the name of the logging configuration file is provided,...
X400COMMON_CDECL int X400ORandDLAddStrParam(struct X400ORandDL *or_and_dl, int type, const char *value, size_t length)
Add string parameter for a Originator and DL Expansion History object.
X400COMMON_CDECL int X400SetupRecipSecenv(struct X400SecurityEnv **recipenvp, struct x400_attribute *recip_attrs, struct x400_attribute *msg_attrs, struct x400_attribute *default_attrs)
Test that the message security environment has been initialised with valid values,...
X400COMMON_CDECL const char * X400Error(int error)
Return string for error code.
X400COMMON_CDECL int X400ORandDLNew(struct X400Message *msg, struct X400ORandDL **or_and_dl)
Create new Originator and DL Expansion history object.
X400COMMON_CDECL int X400DLExpHistDelete(struct X400DLExpHist *hist)
Delete the DL Expansion History object.
X400COMMON_CDECL int X400ACP127RespGetIntParam(struct X400ACP127Resp *resp, int *value)
Get integer parameter from the ACP127 Notification Response object.
X400COMMON_CDECL int X400PSSGet(struct X400Message *mp, int type, int entry, struct X400PSS **pss)
Get the Printable String Sequence object from a message.
X400COMMON_CDECL int X400TraceInfoAddIntParam(struct X400TraceInfo *info, int paramtype, int value)
Set an integer value in a Trace Info object.
X400COMMON_CDECL int X400OtherRecipAddIntParam(struct X400OtherRecip *otherrecip, int value)
Add integer parameter to the Other Recipient Indicator object.
X400COMMON_CDECL int X400BodypartGetStrParam(struct X400Bodypart *bp, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Return a string-valued parameter from the body part object.
X400COMMON_CDECL int X400ALINew(struct X400Message *msg, struct X400ALI **ali)
Create an Address List Indicator object.
X400COMMON_CDECL int X400SetIntDefault(struct x400_attribute *ap, int paramtype, int value)
Set an integer value in a defaults object.
X400COMMON_CDECL int X400DefaultsFree(struct x400_attribute *ap)
Free a defaults object.
X400COMMON_CDECL int X400RecipNew(int type, struct X400Recipient **rpp)
Create a new recipient object.
X400COMMON_CDECL int X400ACP127RespGet(struct X400Message *mp, struct X400ACP127Resp **resp)
Get the ACP127 Notification Response object from a message.
X400COMMON_CDECL int X400RediHistGetStrParam(struct X400RediHist *hist, int paramtype, char *value, size_t length, size_t *lengthp)
Get string-valued parameter from the X400RediHist object.
X400COMMON_CDECL int X400DistFieldAddStrParam(struct X400DistField *distfield, int type, const char *value, size_t length)
Add string-valued parameter to the DistField info object.
X400COMMON_CDECL int X400TraceInfoAddStrParam(struct X400TraceInfo *info, int paramtype, const char *value, size_t length)
Add string-valued parameter to the X400TraceInfo object.
X400COMMON_CDECL int X400OtherRecipGetIntParam(struct X400OtherRecip *otherrecip, int *value)
Get integer parameter from the Other Recipient Indicator object.
X400COMMON_CDECL int X400MsgNew(int type, struct X400Message **mpp)
Creates new message.
X400COMMON_CDECL int X400SetupSecEnvSecurityDb(struct X400SecurityEnv **envp, const char *identity, const char *channel_name)
Set up a security database configuration for a channel, i.e. a security database configuration has be...
X400COMMON_CDECL const char * X400RediReason(int redirection_reason)
Return a human readable string based on a redirection reason.
X400COMMON_CDECL int X400MsgAddBodypart(struct X400Message *mp, struct X400Bodypart *bp)
Add a body part object to a message.
X400COMMON_CDECL struct X400ALI * X400ALIDeepCopy(struct X400Message *mp, struct X400ALI *ali)
Copy an Address List Indicator object.
X400COMMON_CDECL int X400SetStrDefault(struct x400_attribute *ap, int paramtype, const char *value, size_t length)
Set a string value in a defaults object.
X400COMMON_CDECL int X400RediHistGetIntParam(struct X400RediHist *info, int paramtype, int *valuep)
Get int parameter from Redirection History object.
X400COMMON_CDECL int X400ACP127RespGetStrParam(struct X400ACP127Resp *resp, int type, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from ACP127 Notification Response object.
X400COMMON_CDECL int X400OtherRecipGetStrParam(struct X400OtherRecip *otherrecip, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from Other Recipient object.
X400COMMON_CDECL int X400DefaultsNew(struct x400_attribute **ap)
Return a new defaults object.
X400COMMON_CDECL int X400MsgAddRecip(struct X400Message *mp, int reciptype, struct X400Recipient *recip)
Add a recipient object to the message.
X400COMMON_CDECL int X400MsgAddStrParam(struct X400Message *mp, int paramtype, const char *value, size_t length)
Add string-valued parameter to the message.
X400COMMON_CDECL int X400RediHistNew(struct X400Recipient *recip, struct X400RediHist **hist)
Create a new Redirection History object.
X400COMMON_CDECL int X400OtherRecipAddStrParam(struct X400OtherRecip *otherrecip, const char *value, size_t length)
Add string-valued parameter to the Other Recipient Indicator object.
X400COMMON_CDECL int X400ACP127RespGetALI(struct X400ACP127Resp *resp, struct X400ALI **ali, int entry)
Get an Address List Indicator object associated with the X400ACP127 object.
X400COMMON_CDECL int X400MsgGetIntParam(struct X400Message *mp, int paramtype, int *valuep)
Return a integer-valued parameter from the message object.
X400COMMON_CDECL struct X400ORandDL * X400ORandDLDeepCopy(struct X400Message *msg, struct X400ORandDL *orig)
Copy Originator and DL Expansion history object.
X400COMMON_CDECL int X400TraceInfoNew(struct X400Message *msg, struct X400TraceInfo **info, int type)
Create a new Trace information object.
X400COMMON_CDECL int X400MsgAddTraceInfo(struct X400Message *mp, struct X400TraceInfo *info, int type)
Create a new Trace information object.
X400COMMON_CDECL int X400MsgAddInternalTraceInfo(struct X400Message *mp, struct X400InternalTraceInfo *info)
Create a new Trace information object.
X400COMMON_CDECL int X400DLExpHistGet(struct X400Message *mp, int entry, struct X400DLExpHist **hist)
Create a new DL Expansion History object from the message object.
X400COMMON_CDECL struct X400RediHist * X400RediHistDeepCopy(struct X400Recipient *recip, struct X400RediHist *original)
Copy an existing Redirection History object into a recipient.
X400COMMON_CDECL int X400DistFieldNew(struct X400Message *msg, struct X400DistField **distfield)
Create a P772 Distribution Code extension Field object.
X400COMMON_CDECL int X400CertGetIntParam(struct X400Certificate *cp, int paramtype, int *valp)
Return a integer-valued parameter from the certificate object.
X400COMMON_CDECL int X400ACP127RespNewALI(struct X400ACP127Resp *resp, struct X400ALI **ali)
Create new Address List Indicator object associated with the X400ACP127 Resp.
X400COMMON_CDECL int X400ALIGetIntParam(struct X400ALI *ALI, int paramtype, int *valuep)
Get int parameter from Address List Indicator object.
X400COMMON_CDECL int X400DistFieldGet(struct X400Message *mp, int entry, struct X400DistField **distfield)
Get the Distribution Code extension Field object from a message.
X400COMMON_CDECL int X400ORandDLGetStrParam(struct X400ORandDL *or_and_dl, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from ACP127 Response object.
X400COMMON_CDECL int X400MsgGetStrParam(struct X400Message *mp, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Return a string-valued parameter from the message object.
X400COMMON_CDECL int X400RediHistAddStrParam(struct X400RediHist *hist, int paramtype, const char *value, size_t length)
Add string-valued parameter to the X400RediHist object.
X400COMMON_CDECL int X400MsgGetBodypart(struct X400Message *mp, int number, int *typep, struct X400Bodypart **bpp)
Return a pointer to a body part object.
X400COMMON_CDECL int X400PSSNew(struct X400Message *msg, struct X400PSS **pss, int type)
Create a Printable String Sequence object.
X400COMMON_CDECL int X400RecipAddStrParam(struct X400Recipient *rp, int paramtype, const char *value, size_t length)
Add string-valued parameter to the recipient.
X400COMMON_CDECL int X400MsgAddDLExpHist(struct X400Message *mp, struct X400DLExpHist *histp)
Associates a X400DLExpHist object with a X400Message object.
X400COMMON_CDECL struct X400RediHist * X400RediHistDeepCopyEnv(struct X400Message *msg, struct X400RediHist *original)
Copy an existing Redirection History object into a message.
X400COMMON_CDECL int X400RediHistGetEnv(struct X400Message *msg, int entry, struct X400RediHist **hist)
Get the Redirection History object from a message envelope this is represented by 8....
X400COMMON_CDECL int X400GetContentOctets(struct X400Message *mp, char *buf, size_t buflen, size_t *lenp)
Obtains the bytes containing the ASN.1 encoding of the Content of a message. The Content is obtained ...
X400COMMON_CDECL int X400ALIAddIntParam(struct X400ALI *info, int paramtype, int value)
Set an integer value in an Address List Indicator object.
X400COMMON_CDECL struct X400DLExpHist * X400DLExpHistDeepCopy(struct X400DLExpHist *original)
Copy an existing DL Expansion History object.
X400COMMON_CDECL int X400RediHistAddIntParam(struct X400RediHist *hist, int paramtype, int value)
Set an integer value in a Redirection History object.
X400COMMON_CDECL int X400MsgCountRecip(struct X400Message *mp, int recipient_type, int *number)
Returns count of addresses of given type in message object.
X400COMMON_CDECL int X400RediHistGet(struct X400Recipient *recip, int entry, struct X400RediHist **hist)
Get the Redirection History object from a recipient.
X400COMMON_CDECL int X400RediHistNewEnv(struct X400Message *msg, struct X400RediHist **hist)
Create a new Redirection History object for a message envelope this is represented by 8....
X400COMMON_CDECL int X400BodypartAddStrParam(struct X400Bodypart *bp, int paramtype, const char *value, size_t length)
Add string-valued parameter to the body part.
X400COMMON_CDECL int X400ALIGetStrParam(struct X400ALI *ALI, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from Address List Indicator object.
X400COMMON_CDECL int X400InternalTraceInfoNew(struct X400Message *msg, struct X400InternalTraceInfo **info)
Create a new Trace information object.
X400COMMON_CDECL int X400MsgAddIntParam(struct X400Message *mp, int paramtype, int value)
Add integer-valued parameter to the message.
X400COMMON_CDECL int X400MsgAddAttachment(struct X400Message *mp, int type, const char *string, size_t length)
Add an attachment to the message.
X400COMMON_CDECL int X400SetupSecEnv(struct X400SecurityEnv **envp, struct x400_attribute *attrs, int allow_no_id)
Test that the default (sessions) security environment has been initialised with valid values,...
X400COMMON_CDECL int X400MsgGetCert(struct X400Message *mp, int certtype, struct X400Certificate **certp)
Get certificate object from message This returns a certificate which was used to sign an object in th...
X400COMMON_CDECL int X400Initialize(char *myname)
Initialize X.400 API.
X400COMMON_CDECL int X400MsgGetRecip(struct X400Message *mp, int recip_type, int number, struct X400Recipient **rpp)
Get recipient object from message.
X400COMMON_CDECL int X400OtherRecipNew(struct X400Message *mp, struct X400OtherRecip **otherrecip)
Create a new P772 Other Recipient object for a message object.
X400COMMON_CDECL int X400DistFieldGetStrParam(struct X400DistField *distfield, int type, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from Distribution Code extension Field object.
X400COMMON_CDECL int X400MsgGetCriticality(struct X400Message *mp, int paramtype, int *critp)
Get the criticality value for a parameter which comes from an extension field within a message's enve...
X400COMMON_CDECL int X400RecipGetCert(struct X400Recipient *rp, int certtype, struct X400Certificate **certp)
Get certificate object from recipient This returns a certificate which was used to sign an object in ...
X400COMMON_CDECL struct X400InternalTraceInfo * X400InternalTraceInfoDeepCopy(struct X400Message *mp, struct X400InternalTraceInfo *original)
Copy an existing Internal Trace information object.
X400COMMON_CDECL int X400OtherRecipGet(struct X400Message *mp, int entry, struct X400OtherRecip **otherrecip)
Get a new P772 Other Recipient object for a message object.
X400COMMON_CDECL int X400TraceInfoGet(struct X400Message *mp, int entry, struct X400TraceInfo **info, int trace_info_type)
Get the Trace information object from a message.
X400COMMON_CDECL int X400DLExpHistNew(struct X400DLExpHist **histp)
Create a new X400DLExpHist object.
X400COMMON_CDECL int X400ALIAddStrParam(struct X400ALI *info, int paramtype, const char *value, size_t length)
Add string-valued parameter to the ALI info object.
X400COMMON_CDECL int X400TraceInfoGetStrParam(struct X400TraceInfo *info, int paramtype, char *buffer, size_t buflen, size_t *paramlenp)
Get string parameter from Trace Information object.
X400COMMON_CDECL int X400RecipFree(struct X400Recipient *rpp)
Free a recipient object.
X400COMMON_CDECL int X400InternalTraceInfoAddStrParam(struct X400InternalTraceInfo *info, int paramtype, const char *value, size_t length)
Add string-valued parameter to the Internal Trace info object.
X400COMMON_CDECL int X400BodypartGetIntParam(struct X400Bodypart *bp, int paramtype, int *valp)
Return a integer-valued parameter from the body part object.
X400COMMON_CDECL int X400InternalTraceInfoAddIntParam(struct X400InternalTraceInfo *info, int paramtype, int value)
Set an integer value in an Internal Trace Info object.
X400COMMON_CDECL int X400BodypartFree(struct X400Bodypart *bpp)
Free a body part object.
X400COMMON_CDECL int X400RecipAddIntParam(struct X400Recipient *rp, int paramtype, int value)
Add integer-valued parameter to the recipient.
X400COMMON_CDECL int X400MsgAddMessageBody(struct X400Message *mp, struct X400Message *mbp)
X400COMMON_CDECL struct X400PSS * X400PSSDeepCopy(struct X400Message *mp, struct X400PSS *pss, int type)
Copy a Printable String Sequence object.
X400 Symbolic Constants.

All rights reserved © 2002 - 2024 Isode Ltd.