Skip to content

Signcheck doesn't work #360

Description

@karol-gro

It seems that -signcheck option, while mentioned in help messages, doesn't work.

Steps to reproduce:

  1. download Windows 64-bit binary
  2. run meshagent64-Other.exe -signcheck

Expected result:

some message about check failing or passing

Actual result

help message as if command was invalid.

Here's detailed output:

C:\Users\User\Downloads> .\meshagent64-Other.exe -info
Compiled on: 16:51:43, Feb 15 2026
   Commit Hash: 62b206e0b485b296e8a73a6547cef02bbf5a2d62
   Commit Date: 2026-Feb-15 16:43:44-0800
Using OpenSSL 1.1.1s  1 Nov 2022
Agent ARCHID: 4
Detected OS: Microsoft Windows 11 Business - 25H2/26200 - x64
C:\Users\User\Downloads> .\meshagent64-Other.exe -signcheck
Mesh Agent available switches:
  run               Start as a console agent.
  connect           Start as a temporary console agent.
  start             Start the service.
  restart           Restart the service.
  stop              Stop the service.
  state             Display the running state of the service.
  -signcheck        Perform self - check.
  -install          Install the service from this location.
  -uninstall        Remove the service from this location.
  -nodeid           Return the current agent identifier.
  -info             Return agent version information.
  -resetnodeid      Reset the NodeID next time the service is started.
  -fulluninstall    Stop agent and clean up the program files location.
  -fullinstall      Copy agent into program files, install and launch.

                    The following switches can be specified after -fullinstall:

     --WebProxy="http://proxyhost:port"      Specify an HTTPS proxy.
     --agentName="alternate name"            Specify an alternate name to be provided by the agent.

Notes:

I noticed that in

if (argc > 1 && strcmp(argv[1], "-export") == 0 && integragedJavaScriptLen == 0)
all the options like -nodeid are handled, but there is no-signcheck. I found also that there is function signcheck_verifysign in header file and its implementation, but it seems to be never called. But I'm no C developer, but it seems like it's only a matter of handling this option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions