ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
agent.c File Reference

GPG agent connection and communication implementation. More...

Go to the source code of this file.

Macros

#define SAFE_POPEN   popen
 
#define SAFE_PCLOSE   pclose
 
#define GPG_AGENT_MAX_RESPONSE   8192
 

Functions

int gpg_agent_connect (void)
 Connect to gpg-agent.
 
void gpg_agent_disconnect (int sock)
 Disconnect from gpg-agent.
 
int gpg_agent_sign (int handle_as_int, const char *keygrip, const uint8_t *message, size_t message_len, uint8_t *signature_out, size_t *signature_len_out)
 Sign a message using GPG agent.
 
bool gpg_agent_is_available (void)
 Check if GPG agent is available.
 

Detailed Description

GPG agent connection and communication implementation.

Definition in file agent.c.

Macro Definition Documentation

◆ GPG_AGENT_MAX_RESPONSE

#define GPG_AGENT_MAX_RESPONSE   8192

Definition at line 34 of file agent.c.

◆ SAFE_PCLOSE

#define SAFE_PCLOSE   pclose

Definition at line 30 of file agent.c.

◆ SAFE_POPEN

#define SAFE_POPEN   popen

Definition at line 29 of file agent.c.