1
0
Fork 0

Print an incoming pub key.

This commit is contained in:
Alexander Andreev 2024-03-26 18:14:38 +04:00
parent 9e9b0ba047
commit c8d69f23bc
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34
1 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,11 @@ int main(int argc, char **argv) {
if (result != 0)
goto cleanup;
fprintf(stderr, "A connection established!\n");
char rkph[CRYPT_PKEY_HEXLEN];
crypt_key_export_public(&rk, rkph);
fprintf(stderr, "A connection with %s established!\n", rkph);
cleanup: