[winpr,sspi] fix krb5glue_verify_checksum_iov

use proper type for usage parameter
This commit is contained in:
akallabeth
2024-12-20 10:19:15 +01:00
parent 57667dd955
commit becc3403ab
2 changed files with 6 additions and 6 deletions

View File

@@ -66,9 +66,9 @@ krb5_error_code krb5glue_crypto_length(krb5_context ctx, krb5glue_key key, int t
krb5_decrypt_iov_ivec(ctx, key, usage, iov, size, NULL)
#define krb5glue_make_checksum_iov(ctx, key, usage, iov, size) \
krb5_create_checksum_iov(ctx, key, usage, iov, size, NULL)
krb5_error_code krb5glue_verify_checksum_iov(krb5_context ctx, krb5glue_key key, unsigned usage,
krb5_crypto_iov* iov, unsigned int iov_size,
krb5_boolean* is_valid);
krb5_error_code krb5glue_verify_checksum_iov(krb5_context ctx, krb5glue_key key,
krb5_keyusage usage, krb5_crypto_iov* iov,
unsigned int iov_size, krb5_boolean* is_valid);
#define krb5glue_auth_con_set_cksumtype(ctx, auth_ctx, cksumtype) \
krb5_auth_con_setcksumtype(ctx, auth_ctx, cksumtype)
#define krb5glue_set_principal_realm(ctx, principal, realm) \

View File

@@ -83,9 +83,9 @@ krb5_error_code krb5glue_update_keyset(krb5_context ctx, krb5_auth_context auth_
return rv;
}
krb5_error_code krb5glue_verify_checksum_iov(krb5_context ctx, krb5glue_key key, unsigned usage,
krb5_crypto_iov* iov, unsigned int iov_size,
krb5_boolean* is_valid)
krb5_error_code krb5glue_verify_checksum_iov(krb5_context ctx, krb5glue_key key,
krb5_keyusage usage, krb5_crypto_iov* iov,
unsigned int iov_size, krb5_boolean* is_valid)
{
krb5_error_code rv = 0;