commit 4655add68bea2925dae643694004d6a3ac73c5d8 from: Omar Polo date: Mon Feb 05 18:25:05 2024 UTC add client-certificate-info commit - 5a39f5931f4b5be1d57d75c7f25cff8adae5f235 commit + 4655add68bea2925dae643694004d6a3ac73c5d8 blob - 8a32941b4aad1fa405ae08f275800dd1c45b6693 blob + eb957a31d19f62d6666b85f8e6cccda7e5d8983f --- cmd.c +++ cmd.c @@ -1104,3 +1104,12 @@ cmd_use_certificate(struct buffer *buffer) strlcpy(ministate.prompt, "Select certificate: ", sizeof(ministate.prompt)); } + +void +cmd_client_certificate_info(struct buffer *buffer) +{ + if (current_tab->client_cert) + message("Using certificate %s", current_tab->client_cert); + else + message("Not using any client certificate."); +} blob - 5f194e9f36baf000919951aaf3efe24470856f86 blob + 630ad042c62f9bc77605cd74c29b29993a9ed5c0 --- cmd.h +++ cmd.h @@ -16,6 +16,7 @@ CMD(cmd_backward_paragraph, "Move point on paragraph b CMD(cmd_beginning_of_buffer, "Move point to the beginning of the buffer."); CMD(cmd_bookmark_page, "Save a page in the bookmark file."); CMD(cmd_cache_info, "Show cache stats."); +CMD(cmd_client_certificate_info,"Show the client certificate in use."); CMD(cmd_clear_minibuf, "Clear the echo area."); CMD(cmd_dec_fill_column, "Decrement fill-column by two."); CMD(cmd_end_of_buffer, "Move the point to the end of the buffer.");