This is a multipurpose function to return a variety of information.
The value of what specifies the kind of information returned:
Return the version of the program.
Return the process id of the process.
Return OK if the agent is running.
cmd_has_option cmd opt
Return OK if the command cmd implements the option opt. The leading two dashes usually used with opt shall not be given.
Return OK if the connection is in offline mode. This may be either
due to a
OPTION offline=1 or due to
started with option --disable-dirmngr.