Label API

Description of the function calls for the Security Label object access interface. More...

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

Description of the function calls for the Security Label object access interface.

Function Documentation

◆ SecLabelInit()

int SecLabelInit ( char *  myname)

Initialize Security Label API.

Returns
zero on success or non-zero error code

◆ SecLabelPrint()

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.

Parameters
data[in] Octet string encoding of Security Label
datalen[in] Length of octet string
buffer[in] Buffer to receive XML document
bufferlen[in] Length of buffer provided
Returns
SECLABEL_E_NOERROR on success, or error code

◆ SecLabelParse()

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.

Parameters
xmldata[in] XML document representing a Security Label
outbuf[in] Buffer to receive encoding of Security Label
outbuflen[in] Length of buffer provided
lenp[out] Length of octet string encoding
Returns
SECLABEL_E_NOERROR on success, or error code