/* Format: (iv-auto REQUIRED-LENGTH). */
if (! NATNUMP (start))
- error ("Without a length, iv-auto can't be used. See manual.");
+ error ("Without a length, `iv-auto' can't be used; see ELisp manual");
else
{
EMACS_INT start_hold = XFASTINT (start);
*end_byte = start_hold;
}
#else
- error ("GnuTLS integration is not available, so iv-auto can't be used.");
+ error ("GnuTLS is not available, so `iv-auto' can't be used");
#endif
}
memset (storage, 0, storage_length);
SAFE_FREE ();
gnutls_aead_cipher_deinit (acipher);
- error ("GnuTLS AEAD cipher %s %sion failed: %s",
- gnutls_cipher_get_name (gca), desc, emacs_gnutls_strerror (ret));
+ if (encrypting)
+ error ("GnuTLS AEAD cipher %s encryption failed: %s",
+ gnutls_cipher_get_name (gca), emacs_gnutls_strerror (ret));
+ else
+ error ("GnuTLS AEAD cipher %s decryption failed: %s",
+ gnutls_cipher_get_name (gca), emacs_gnutls_strerror (ret));
}
gnutls_aead_cipher_deinit (acipher);
if (ret < GNUTLS_E_SUCCESS)
{
gnutls_cipher_deinit (hcipher);
- error ("GnuTLS cipher %s %sion failed: %s",
- gnutls_cipher_get_name (gca), desc, emacs_gnutls_strerror (ret));
+ if (encrypting)
+ error ("GnuTLS cipher %s encryption failed: %s",
+ gnutls_cipher_get_name (gca), emacs_gnutls_strerror (ret));
+ else
+ error ("GnuTLS cipher %s decryption failed: %s",
+ gnutls_cipher_get_name (gca), emacs_gnutls_strerror (ret));
}
gnutls_cipher_deinit (hcipher);