seclabel_api.h File Reference

Security Label XML API. More...

#include "seclabel_cdecl.h"

Go to the source code of this file.

Macros

#define SECLABEL_E_NOERROR   0
 
#define SECLABEL_E_BADPARAM   1
 
#define SECLABEL_E_NOMEMORY   2
 
#define SECLABEL_E_NOSPACE   3
 
#define SECLABEL_E_PARSEFAILED   4
 
#define SECLABEL_E_ENCODEERROR   5
 

Functions

int SecLabelInit (char *myname)
 Initialize Security Label API. More...
 
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. More...
 
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 of the Security Label. More...
 

Detailed Description

Security Label XML API.

This is an API which allows the encoding of an ASN.1 Security Label object to be converted into an XML representation, and vice versa.

Definition in file seclabel_api.h.