From ab88fec4968bda9cfa24bd81a4cf8fa381bbeeb8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 4 Jan 2009 23:44:46 +0000 Subject: removed useless gcry_strsource output --- src/cipher.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cipher.c') diff --git a/src/cipher.c b/src/cipher.c index e35e4db..a90c267 100644 --- a/src/cipher.c +++ b/src/cipher.c @@ -224,7 +224,7 @@ int cipher_aesctr_init(cipher_t* c) gcry_error_t err = gcry_cipher_open(¶ms->handle_, algo, GCRY_CIPHER_MODE_CTR, 0); if(err) { - log_printf(ERR, "failed to open cipher: %s/%s", gcry_strerror(err), gcry_strsource(err)); + log_printf(ERR, "failed to open cipher: %s", gcry_strerror(err)); return -1; } @@ -301,14 +301,14 @@ int32_t cipher_aesctr_crypt(cipher_t* c, key_derivation_t* kd, u_int8_t* in, u_i if(ret) { // a new key got generated err = gcry_cipher_setkey(params->handle_, c->key_.buf_, c->key_.length_); if(err) { - log_printf(ERR, "failed to set cipher key: %s/%s", gcry_strerror(err), gcry_strsource(err)); + log_printf(ERR, "failed to set cipher key: %s", gcry_strerror(err)); return -1; } } // no new key got generated else { err = gcry_cipher_reset(params->handle_); if(err) { - log_printf(ERR, "failed to reset cipher: %s/%s", gcry_strerror(err), gcry_strsource(err)); + log_printf(ERR, "failed to reset cipher: %s", gcry_strerror(err)); return -1; } } @@ -321,13 +321,13 @@ int32_t cipher_aesctr_crypt(cipher_t* c, key_derivation_t* kd, u_int8_t* in, u_i err = gcry_cipher_setctr(params->handle_, params->ctr_.buf_, C_AESCTR_CTR_LENGTH); if(err) { - log_printf(ERR, "failed to set cipher CTR: %s/%s", gcry_strerror(err), gcry_strsource(err)); + log_printf(ERR, "failed to set cipher CTR: %s", gcry_strerror(err)); return -1; } err = gcry_cipher_encrypt(params->handle_, out, olen, in, ilen); if(err) { - log_printf(ERR, "failed to de/encrypt packet: %s/%s", gcry_strerror(err), gcry_strsource(err)); + log_printf(ERR, "failed to de/encrypt packet: %s", gcry_strerror(err)); return -1; } -- cgit v1.2.3