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 the name of the socket used to connect the agent.
Return the name of the socket used for SSH connections. If SSH support
has not been enabled the error
GPG_ERR_NO_DATA will be returned.