diff options
author | Werner Koch <[email protected]> | 2016-04-29 09:05:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-04-29 09:05:24 +0000 |
commit | 64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c (patch) | |
tree | 820e0e686ef9672b4b05c1e644026840e5710b6a /g10/cipher.c | |
parent | common: Improve log_assert. (diff) | |
download | gnupg-64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c.tar.gz gnupg-64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c.zip |
gpg: Remove all assert.h and s/assert/log_assert/.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/cipher.c')
-rw-r--r-- | g10/cipher.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/g10/cipher.c b/g10/cipher.c index 41324c37d..ae7ba17e3 100644 --- a/g10/cipher.c +++ b/g10/cipher.c @@ -23,7 +23,6 @@ #include <stdlib.h> #include <string.h> #include <errno.h> -#include <assert.h> #include "gpg.h" #include "status.h" @@ -123,7 +122,7 @@ cipher_filter( void *opaque, int control, rc = -1; /* not yet used */ } else if( control == IOBUFCTRL_FLUSH ) { /* encrypt */ - assert(a); + log_assert(a); if( !cfx->header ) { write_header( cfx, a ); } @@ -139,7 +138,7 @@ cipher_filter( void *opaque, int control, (cfx->mdc_hash)); byte temp[22]; - assert( hashlen == 20 ); + log_assert( hashlen == 20 ); /* We must hash the prefix of the MDC packet here. */ temp[0] = 0xd3; temp[1] = 0x14; |