seclabel_api.h
Go to the documentation of this file.
1/* Copyright (c) 2004-2009, 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 SECLABEL_API_H
17#define SECLABEL_API_H
18
19#include "seclabel_cdecl.h"
20
31#define SECLABEL_E_NOERROR 0
34#define SECLABEL_E_BADPARAM 1
37#define SECLABEL_E_NOMEMORY 2
40#define SECLABEL_E_NOSPACE 3
43#define SECLABEL_E_PARSEFAILED 4
46#define SECLABEL_E_ENCODEERROR 5
49/*\}*/
50
51
62SECLABEL_CDECL int SecLabelInit(char *myname);
63
73SECLABEL_CDECL int SecLabelPrint(const unsigned char *data,
74 const int datalen,
75 char *buffer,
76 const int bufferlen);
77
87SECLABEL_CDECL int SecLabelParse(const char *xmldata,
88 char *outbuf,
89 int outbuflen,
90 int *lenp);
91/*\}*/
92
93#endif
int SecLabelInit(char *myname)
Initialize Security Label API.
int SecLabelPrint(const unsigned char *data, const int datalen, char *buffer, const int bufferlen)
Converts an octet string containing encoding of a Security Label into an XML document.
int SecLabelParse(const char *xmldata, char *outbuf, int outbuflen, int *lenp)
Converts an XML document representing a Security Label into an octet string containing the encoding o...

All rights reserved © 2002 - 2024 Isode Ltd.