diff options
author | Andreas Schneider <asn@samba.org> | 2019-05-29 16:49:29 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-06-27 12:54:23 +0000 |
commit | cad3adb0b478e3bb2b964d4eefba4e96f34d4270 (patch) | |
tree | 1f04fbeb7da1ef4e8b93d876a860d31c381305b3 /libcli/auth | |
parent | 31f110317f52e90693e71c7035b360ac9bc21967 (diff) | |
download | samba-cad3adb0b478e3bb2b964d4eefba4e96f34d4270.tar.gz |
libcli:auth: Return NTSTATUS for netlogon_creds_decrypt_samlogon_logon()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli/auth')
-rw-r--r-- | libcli/auth/credentials.c | 8 | ||||
-rw-r--r-- | libcli/auth/proto.h | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index b7d2c4fa3a3..e0fec6e2ef2 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -804,11 +804,13 @@ static void netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_Credential } } -void netlogon_creds_decrypt_samlogon_logon(struct netlogon_creds_CredentialState *creds, - enum netr_LogonInfoClass level, - union netr_LogonLevel *logon) +NTSTATUS netlogon_creds_decrypt_samlogon_logon(struct netlogon_creds_CredentialState *creds, + enum netr_LogonInfoClass level, + union netr_LogonLevel *logon) { netlogon_creds_crypt_samlogon_logon(creds, level, logon, false); + + return NT_STATUS_OK; } NTSTATUS netlogon_creds_encrypt_samlogon_logon(struct netlogon_creds_CredentialState *creds, diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h index 88ef50357c9..0ae5cbc4ed3 100644 --- a/libcli/auth/proto.h +++ b/libcli/auth/proto.h @@ -65,9 +65,9 @@ NTSTATUS netlogon_creds_decrypt_samlogon_validation(struct netlogon_creds_Creden NTSTATUS netlogon_creds_encrypt_samlogon_validation(struct netlogon_creds_CredentialState *creds, uint16_t validation_level, union netr_Validation *validation); -void netlogon_creds_decrypt_samlogon_logon(struct netlogon_creds_CredentialState *creds, - enum netr_LogonInfoClass level, - union netr_LogonLevel *logon); +NTSTATUS netlogon_creds_decrypt_samlogon_logon(struct netlogon_creds_CredentialState *creds, + enum netr_LogonInfoClass level, + union netr_LogonLevel *logon); NTSTATUS netlogon_creds_encrypt_samlogon_logon(struct netlogon_creds_CredentialState *creds, enum netr_LogonInfoClass level, union netr_LogonLevel *logon); |