mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
agent: Replace most assert by log_assert.
--
This commit is contained in:
parent
5651b2c460
commit
54e96c6fd2
17 changed files with 42 additions and 60 deletions
|
@ -41,7 +41,6 @@
|
|||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <assert.h>
|
||||
#ifndef HAVE_W32_SYSTEM
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
|
@ -1030,7 +1029,7 @@ search_control_file (ssh_control_file_t cf, const char *hexgrip,
|
|||
{
|
||||
gpg_error_t err;
|
||||
|
||||
assert (strlen (hexgrip) == 40 );
|
||||
log_assert (strlen (hexgrip) == 40 );
|
||||
|
||||
if (r_disabled)
|
||||
*r_disabled = 0;
|
||||
|
@ -2646,7 +2645,7 @@ ssh_handler_request_identities (ctrl_t ctrl,
|
|||
continue; /* Should not happen. */
|
||||
if (cf->item.disabled)
|
||||
continue;
|
||||
assert (strlen (cf->item.hexgrip) == 40);
|
||||
log_assert (strlen (cf->item.hexgrip) == 40);
|
||||
hex2bin (cf->item.hexgrip, grip, sizeof (grip));
|
||||
|
||||
err = agent_public_key_from_file (ctrl, grip, &key_public);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue