Print an incoming pub key.
This commit is contained in:
parent
9e9b0ba047
commit
c8d69f23bc
@ -57,8 +57,12 @@ int main(int argc, char **argv) {
|
|||||||
: (result = server_handshake(&n, &s, &ok, &rk));
|
: (result = server_handshake(&n, &s, &ok, &rk));
|
||||||
if (result != 0)
|
if (result != 0)
|
||||||
goto cleanup;
|
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:
|
cleanup:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user