libkrb5, libkdc: Constify salted s2k default iterator counts.

These externs should really be in a .h file shared by definition and
usage sites so the C compiler can verify that they match.
This commit is contained in:
Taylor R Campbell
2023-05-28 20:27:14 +00:00
committed by Nico Williams
parent 8f2f159f7f
commit 796e420c11
3 changed files with 4 additions and 4 deletions

View File

@@ -1336,8 +1336,8 @@ get_pa_etype_info(krb5_context context,
* *
*/ */
extern int _krb5_AES_SHA1_string_to_default_iterator; extern const int _krb5_AES_SHA1_string_to_default_iterator;
extern int _krb5_AES_SHA2_string_to_default_iterator; extern const int _krb5_AES_SHA2_string_to_default_iterator;
static krb5_error_code static krb5_error_code
make_s2kparams(int value, size_t len, krb5_data **ps2kparams) make_s2kparams(int value, size_t len, krb5_data **ps2kparams)

View File

@@ -33,7 +33,7 @@
#include "krb5_locl.h" #include "krb5_locl.h"
int _krb5_AES_SHA1_string_to_default_iterator = 4096; const int _krb5_AES_SHA1_string_to_default_iterator = 4096;
static krb5_error_code static krb5_error_code
AES_SHA1_string_to_key(krb5_context context, AES_SHA1_string_to_key(krb5_context context,

View File

@@ -33,7 +33,7 @@
#include "krb5_locl.h" #include "krb5_locl.h"
int _krb5_AES_SHA2_string_to_default_iterator = 32768; const int _krb5_AES_SHA2_string_to_default_iterator = 32768;
static krb5_error_code static krb5_error_code
AES_SHA2_string_to_key(krb5_context context, AES_SHA2_string_to_key(krb5_context context,