SK_PLUS_NetworkSessionLoad Function

Loads the Network Session Certificate from the file.

Remarks

The loaded certificate file will automatically be locked to the process. If it is not desired to lock the file use the SK_FLAGS_NETWORKSESSION_SKIPLOCKATTEMPT flag.

Syntax

C/C++
SK_ResultCode SK_PLUS_NetworkSessionLoad(SK_ApiContext context, int flags, const char *path);
Visual Basic
Declare Function SK_PLUS_NetworkSessionLoad(ByVal context As Long, ByVal flags As Long, ByVal path As String) As Long

Arguments

context
The API Context handle.
flags
Any flags passed into this function-call.
path
The absolute path to the Network Session Certificate file.

Returns

All possible return values are included in the SK_ResultCode enumeration. Return codes to expect include:

Result Code Description
SK_ResultCode.SK_ERROR_NONE No error.
SK_ResultCode.SK_ERROR_XML_PARSER_FAILED The XML parser encountered an error.
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS Some or all of the arguments are invalid.
SK_ResultCode.SK_ERROR_INVALID_DATA The presence of invalid data has been detected.
SK_ResultCode.SK_ERROR_DECRYPTION_FAILED The requested decryption operation has failed.
SK_ResultCode.SK_ERROR_VERIFICATION_FAILED The requested verification operation has failed.
SK_ResultCode.SK_ERROR_COULD_NOT_OPEN_FILE An attempt to open a file failed.
SK_ResultCode.SK_ERROR_COULD_NOT_READ_FILE An attempt to read a file failed.
SK_ResultCode.SK_ERROR_IO_OPERATION_FAILED An attempt to perform an I/O operation failed.
SK_ResultCode.SK_ERROR_MEMORY_ALLOCATION Memory could not be allocated.
SK_ResultCode.SK_ERROR_LICENSE_SYSTEM_IDENTIFIERS_DONT_MATCH License system identifiers do not match.
SK_ResultCode.SK_ERROR_LICENSE_NOT_EFFECTIVE_YET License is not yet effective.
SK_ResultCode.SK_ERROR_LICENSE_EXPIRED License has expired.