Skip to content

rioos2/nalperion_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For lastest updates: Go to gitlab.com/rioadvancement/nalperion-rust.

nalperion_rust

The document provides information on Intergration to Nalperion for licensing using Rust Lang

This is reference code to help you operate with nalperion, but the way you use it in your software to make the entitlement work needs to be solutioned by you.

Rust Lang

Tested on rust 1.24.1

Reference

nalperion.rs

This code assumes that you have ShaferFileChk.so downloaded and extracted, available in the tools/license directory

create_trial_or_verify

This method does

  • NalpLibOpen by using the .so file provided
  • NSLValidateLibrary using CUSTOMER_ID, PRODUCT_D
  • NSLGetLicense
  • NalpLibClose

The output of the method is

  • On error, the error msg has the information
  • On success, trial commenced or activated using the license code.

If you have a license code from Nalperion then edit config.rs


activation_code: Some("09090000090909".to_string()),


Compile and Run


cargo build

cd ./target/debug/

./rioos-entitlement


Voila !

Releases

No releases published

Packages

No packages published

Languages