X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fgcrypt%2Fcipher.c;h=bb7da5d0ef87f89cc01266d9d61941b45eaeaec3;hp=77add6c3284dc568d3414b19a92b2dad247f5be9;hb=07a560eab66b575f382428a956550817697e25e2;hpb=7ea85043ac1fb2096baea44f6b0af27ac0d0b2cf diff --git a/src/gcrypt/cipher.c b/src/gcrypt/cipher.c index 77add6c3..bb7da5d0 100644 --- a/src/gcrypt/cipher.c +++ b/src/gcrypt/cipher.c @@ -99,12 +99,12 @@ static bool cipher_open(cipher_t *cipher, int algo, int mode) { gcry_error_t err; if(!ciphertonid(algo, mode, &cipher->nid)) { - logger(LOG_DEBUG, _("Cipher %d mode %d has no corresponding nid!"), algo, mode); + logger(LOG_DEBUG, "Cipher %d mode %d has no corresponding nid!", algo, mode); return false; } if((err = gcry_cipher_open(&cipher->handle, algo, mode, 0))) { - logger(LOG_DEBUG, _("Unable to intialise cipher %d mode %d: %s"), algo, mode, gcry_strerror(err)); + logger(LOG_DEBUG, "Unable to intialise cipher %d mode %d: %s", algo, mode, gcry_strerror(err)); return false; } @@ -122,7 +122,7 @@ bool cipher_open_by_name(cipher_t *cipher, const char *name) { int algo, mode; if(!nametocipher(name, &algo, &mode)) { - logger(LOG_DEBUG, _("Unknown cipher name '%s'!"), name); + logger(LOG_DEBUG, "Unknown cipher name '%s'!", name); return false; } @@ -133,7 +133,7 @@ bool cipher_open_by_nid(cipher_t *cipher, int nid) { int algo, mode; if(!nidtocipher(nid, &algo, &mode)) { - logger(LOG_DEBUG, _("Unknown cipher ID %d!"), nid); + logger(LOG_DEBUG, "Unknown cipher ID %d!", nid); return false; } @@ -233,7 +233,7 @@ bool cipher_encrypt(cipher_t *cipher, const void *indata, size_t inlen, void *ou // To be fixed if((err = gcry_cipher_encrypt(cipher->handle, outdata, inlen, indata, inlen))) { - logger(LOG_ERR, _("Error while encrypting: %s"), gcry_strerror(err)); + logger(LOG_ERR, "Error while encrypting: %s", gcry_strerror(err)); return false; } @@ -246,7 +246,7 @@ bool cipher_decrypt(cipher_t *cipher, const void *indata, size_t inlen, void *ou // To be fixed if((err = gcry_cipher_decrypt(cipher->handle, outdata, inlen, indata, inlen))) { - logger(LOG_ERR, _("Error while decrypting: %s"), gcry_strerror(err)); + logger(LOG_ERR, "Error while decrypting: %s", gcry_strerror(err)); return false; }