ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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
40
68bool ssh_agent_is_available(void);
69
71
76
122asciichat_error_t ssh_agent_add_key(const private_key_t *private_key, const char *key_path);
123
152bool ssh_agent_has_key(const public_key_t *public_key);
153
175
193asciichat_error_t ssh_agent_sign(const public_key_t *public_key, const uint8_t *message, size_t message_len,
195
⚙️ Common definitions, error codes, macros, and types shared throughout the application
unsigned char uint8_t
Definition common.h:60
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:54
bool ssh_agent_is_available(void)
Check if ssh-agent is running and available.
Definition ssh_agent.c:42
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:149
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:260
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:44
#define ED25519_SIGNATURE_SIZE
Ed25519 signature size in bytes.
Definition sizes.h:37
Private identity-key material used for server authentication and signing.
Definition key_types.h:97
The normalized public identity used by ascii-chat's crypto and key-management code.
Definition key_types.h:72