Sentinel Licensing API C Reference

The Sentinel Licensing API reference contains the following sections:

>Overview of each of the functions that make up the Sentinel Licensing API

>Structural declarations and detailed information on individual Sentinel Licensing API functions

>Description of XML tags that can be used to define scope and format of various functions, and their usage

>A summary and description of all API return codes

>Description of how to cause an HL key LED to blink

The Sentinel Licensing API in this reference applies to the C programming language interface. APIs for supported languages can be accessed in the %ProgramFiles(x86)%\Thales\Sentinel LDK\API\Licensing directory.

All Licensing API functions are compatible with remote License Managers and with the local License Manager, depending on the scope specified.

API Samples

Each Sentinel LDK installation includes API samples for various programming languages. Use the samples to integrate Sentinel LDK protection into your own code.

API Function Overview

The Sentinel Licensing API includes the functions described below.

Function Description

DatetimeToHasptime

Converts a date and time value to hasptime

Decrypt

Decrypts a buffer using the AES encryption algorithm.

Detach

Detaches a license for a Product from a Sentinel SL key, according to customizable parameters.

Encrypt

Encrypts a buffer using the AES encryption algorithm.

Free

Releases allocated memory resources.

GetInfo

Retrieves information according to customizable search parameters, and presents it according to customizable formats.

GetRealTimeClock

Reads the current time from a HLTime or HLNetTime key.

GetSessionInfo

Retrieves information regarding a session context.

GetVersion

Retrieves the version and build number of the Sentinel Licensing API library.

HasptimeToDatetime

Converts a time value into a date and time.

Login

Logs in to a Feature, establishing a session context.

LoginScope

Logs in to a Feature according to customizable search parameters.

Logout

Logs out from a context or session.

Update

Writes an update for a Sentinel LDK license.

Update Session

Writes an update for a login session for a protection key.

Protection Key Memory Function

Function Description

Read

Reads the memory of a Sentinel protection key.

Write

Writes to the memory of a Sentinel protection key.

FileSize Retrieves the byte size of a memory file from a Sentinel protection key.

 

Related Topics

Sentinel License Managers - Overview

Calling Licensing API Functions From DllMain

Blinking the Sentinel HL Key LED