diff options
author | James Booth <boothj5@gmail.com> | 2016-05-06 01:47:19 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-06 01:47:19 +0100 |
commit | 8950dbb768cc29d8ed020a1355c7733275aaf998 (patch) | |
tree | b2b0ea76afe2d00c411d8eaf7e9b9716bc701b4c /src/command | |
parent | 31b0f0b0c889f6b54ac4315130f7d6a5abca6668 (diff) | |
download | profani-tty-8950dbb768cc29d8ed020a1355c7733275aaf998.tar.gz |
Move tls peer cert function
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 9127fab9..8354465f 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -236,7 +236,7 @@ cmd_tls_trust(ProfWin *window, const char *const command, gchar **args) cons_show("No TLS connection established"); return TRUE; } - TLSCertificate *cert = session_get_tls_peer_cert(); + TLSCertificate *cert = connection_get_tls_peer_cert(); if (!cert) { cons_show("Error getting TLS certificate."); return TRUE; @@ -334,7 +334,7 @@ cmd_tls_cert(ProfWin *window, const char *const command, gchar **args) cons_show("No TLS connection established"); return TRUE; } - TLSCertificate *cert = session_get_tls_peer_cert(); + TLSCertificate *cert = connection_get_tls_peer_cert(); if (!cert) { cons_show("Error getting TLS certificate."); return TRUE; |