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

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