ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
ssh_agent.h
Go to the documentation of this file.
1#pragma once
2
30
32#include "../../common.h"
34#include <stdbool.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
44
72bool ssh_agent_is_available(void);
73
75
80
126asciichat_error_t ssh_agent_add_key(const private_key_t *private_key, const char *key_path);
127
156bool ssh_agent_has_key(const public_key_t *public_key);
157
179
197asciichat_error_t ssh_agent_sign(const public_key_t *public_key, const uint8_t *message, size_t message_len, uint8_t signature[ED25519_SIGNATURE_SIZE]);
198
200
201#ifdef __cplusplus
202}
203#endif
unsigned char uint8_t
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:55
bool ssh_agent_is_available(void)
Check if ssh-agent is running and available.
Definition ssh_agent.c:43
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:150
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:271
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
⚙️ Common definitions, error codes, macros, and types shared throughout the application
#define ED25519_SIGNATURE_SIZE
Ed25519 signature size in bytes.
Definition sizes.h:42
Private identity-key material used for server authentication and signing.
Definition key_types.h:113
The normalized public identity used by ascii-chat's crypto and key-management code.
Definition key_types.h:83