From 4a23cd5e23ba455cd96ac8d310968048a66215da Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Tue, 8 Mar 2022 19:27:12 +1300 Subject: [PATCH] lib/krb5: Make parameters to PAC functions 'const' This allows these functions to be used with PACs obtained from KDC accessor functions such as kdc_request_get_pac(). Signed-off-by: Joseph Sutton --- lib/krb5/pac.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/krb5/pac.c b/lib/krb5/pac.c index 49bbcf250..f27976869 100644 --- a/lib/krb5/pac.c +++ b/lib/krb5/pac.c @@ -458,7 +458,7 @@ krb5_pac_add_buffer(krb5_context context, krb5_pac p, */ KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL -krb5_pac_get_buffer(krb5_context context, krb5_pac p, +krb5_pac_get_buffer(krb5_context context, krb5_const_pac p, uint32_t type, krb5_data *data) { krb5_error_code ret; @@ -508,7 +508,7 @@ static struct { */ KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL -_krb5_pac_get_buffer_by_name(krb5_context context, krb5_pac p, +_krb5_pac_get_buffer_by_name(krb5_context context, krb5_const_pac p, const krb5_data *name, krb5_data *data) { size_t i; @@ -531,7 +531,7 @@ _krb5_pac_get_buffer_by_name(krb5_context context, krb5_pac p, KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_get_types(krb5_context context, - krb5_pac p, + krb5_const_pac p, size_t *len, uint32_t **types) { @@ -1762,7 +1762,7 @@ out: KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL krb5_pac_get_kdc_checksum_info(krb5_context context, - krb5_pac pac, + krb5_const_pac pac, krb5_cksumtype *cstype, uint16_t *rodc_id) { @@ -1817,7 +1817,7 @@ out: KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL _krb5_pac_get_canon_principal(krb5_context context, - krb5_pac pac, + krb5_const_pac pac, krb5_principal *canon_princ) { *canon_princ = NULL; @@ -1833,7 +1833,7 @@ _krb5_pac_get_canon_principal(krb5_context context, KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL _krb5_pac_get_attributes_info(krb5_context context, - krb5_pac pac, + krb5_const_pac pac, uint64_t *pac_attributes) { *pac_attributes = 0;