- Custom fork of QZ Tray 2.2.x with certificate validation bypassed - Implemented pairing key (HMAC) authentication as replacement - Modified files: PrintSocketClient.java (certificate check disabled) - New files: PairingAuth.java, PairingConfigDialog.java - Excluded build artifacts (out/, lib/javafx*) from repository - Library JARs included for dependency management
28 lines
404 B
NSIS
28 lines
404 B
NSIS
!define IndexOf "!insertmacro IndexOf"
|
|
|
|
!macro IndexOf Var Str Char
|
|
Push "${Char}"
|
|
Push "${Str}"
|
|
|
|
Exch $R0
|
|
Exch
|
|
Exch $R1
|
|
Push $R2
|
|
Push $R3
|
|
|
|
StrCpy $R3 $R0
|
|
StrCpy $R0 -1
|
|
IntOp $R0 $R0 + 1
|
|
StrCpy $R2 $R3 1 $R0
|
|
StrCmp $R2 "" +2
|
|
StrCmp $R2 $R1 +2 -3
|
|
|
|
StrCpy $R0 -1
|
|
|
|
Pop $R3
|
|
Pop $R2
|
|
Pop $R1
|
|
Exch $R0
|
|
|
|
Pop "${Var}"
|
|
!macroend |