summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-05-29 16:49:29 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-27 12:54:23 +0000
commitcad3adb0b478e3bb2b964d4eefba4e96f34d4270 (patch)
tree1f04fbeb7da1ef4e8b93d876a860d31c381305b3 /libcli/auth
parent31f110317f52e90693e71c7035b360ac9bc21967 (diff)
downloadsamba-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.c8
-rw-r--r--libcli/auth/proto.h6
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);