ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
ssh_agent.h
Go to the documentation of this file.
1#pragma once
2
31#include "../../common.h"
32#include "../../crypto/key_types.h"
33#include <stdbool.h>
34
67bool ssh_agent_is_available(void);
68
121asciichat_error_t ssh_agent_add_key(const private_key_t *private_key, const char *key_path);
122
151bool ssh_agent_has_key(const public_key_t *public_key);
152
174
192asciichat_error_t ssh_agent_sign(const public_key_t *public_key, const uint8_t *message, size_t message_len,
193 uint8_t signature[64]);
194
unsigned char uint8_t
Definition common.h:56
bool ssh_agent_has_key(const public_key_t *public_key)
Check if a public key is already in ssh-agent.
Definition ssh_agent.c:50
bool ssh_agent_is_available(void)
Check if ssh-agent is running and available.
Definition ssh_agent.c:38
asciichat_error_t ssh_agent_get_key(const public_key_t *public_key, private_key_t *key_out)
Retrieve a private key from ssh-agent by matching public key.
asciichat_error_t ssh_agent_add_key(const private_key_t *private_key, const char *key_path)
Add a private key to ssh-agent.
Definition ssh_agent.c:145
asciichat_error_t ssh_agent_sign(const public_key_t *public_key, const uint8_t *message, size_t message_len, uint8_t signature[64])
Sign data using SSH agent with the specified public key.
Definition ssh_agent.c:256
asciichat_error_t
Error and exit codes - unified status values (0-255)
Definition error_codes.h:49
ClangTool/LibTooling compatibility shim for stdbool.h.
Private key structure (for server –ssh-key)
Definition key_types.h:91
Public key structure.
Definition key_types.h:69