1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

werror: replace WERR_SEC_E_DECRYPT_FAILURE with HRES_SEC_E_DECRYPT_FAILURE

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Günther Deschner 2015-12-09 15:55:59 +01:00 committed by Jeremy Allison
parent 08586e2824
commit d013dc4af1
3 changed files with 1 additions and 3 deletions

View File

@ -101,7 +101,7 @@ WERROR drsuapi_decrypt_attribute_value(TALLOC_CTX *mem_ctx,
W_ERROR_HAVE_NO_MEMORY(plain_buffer.data);
if (crc32_given != crc32_calc) {
return WERR_SEC_E_DECRYPT_FAILURE;
return W_ERROR(HRES_ERROR_V(HRES_SEC_E_DECRYPT_FAILURE));
}
/*
* The following rid_crypt obfuscation isn't session specific

View File

@ -125,7 +125,6 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_DNS_ERROR_DP_ALREADY_ENLISTED", WERR_DNS_ERROR_DP_ALREADY_ENLISTED },
{ "WERR_DNS_ERROR_DP_NOT_AVAILABLE", WERR_DNS_ERROR_DP_NOT_AVAILABLE },
{ "WERR_DNS_ERROR_DP_FSMO_ERROR", WERR_DNS_ERROR_DP_FSMO_ERROR },
{ "WERR_SEC_E_DECRYPT_FAILURE", WERR_SEC_E_DECRYPT_FAILURE },
{ "WERR_SEC_E_ALGORITHM_MISMATCH", WERR_SEC_E_ALGORITHM_MISMATCH },
{ "WERR_RPC_E_REMOTE_DISABLED", WERR_RPC_E_REMOTE_DISABLED },
/*****************************************************************************

View File

@ -107,7 +107,6 @@ typedef uint32_t WERROR;
#define WERR_RPC_E_REMOTE_DISABLED W_ERROR(0x8001011c)
/* SEC errors */
#define WERR_SEC_E_DECRYPT_FAILURE W_ERROR(0x80090330)
#define WERR_SEC_E_ALGORITHM_MISMATCH W_ERROR(0x80090331)
/* Generic error code aliases */