Skip to content

miyako/xmlsec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version platform license downloads

Licensing

  • the source code of this component is licensed under the MIT license.
  • see aleksey.com for the licensing of xmlsec.

xmlsec

dependencies.json

{
   "dependencies": {
       "xmlsec": {
           "github": "miyako/xmlsec",
           "version": "*"
       }
   }
}

Usage

#DECLARE($params : Object)

If ($params=Null)
	
	/*
		async calls must be performed in a worker or form
	*/
	
	CALL WORKER(1; Current method name; {})
	
Else 
	
	var $xmlsec : cs.xmlsec.xmlsec
	
	$xmlsec:=cs.xmlsec.xmlsec.new(cs._xmlsec_Controller)
	
	$xml:=File("/DATA/wifi.xml")
	$xml:=OB Class($xml).new($xml.platformPath; fk platform path)
	
	$pem:=File("/DATA/private.pem")
	$pem:=OB Class($pem).new($pem.platformPath; fk platform path)
	
	$out:=Folder(fk desktop folder).file("signed-wifi.xml")
	
	$xmlsec.perform(["--sign"; "--output"; $out; "--privkey-pem"; $pem; "--pwd"; "1234"; "--lax-key-search"; $xml])
	
	/*
		https://www.aleksey.com/xmlsec/faq.html
	*/
	
End if

CLI Build

export LDFLAGS="-Llib/"
export LIBS="-llzma -liconv -lgcrypt -lcharset"  
./configure --enable-static-linking --without-gnutls --without-gcrypt