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:

committed by
Nico Williams

parent
8f2f159f7f
commit
796e420c11
@@ -1336,8 +1336,8 @@ get_pa_etype_info(krb5_context context,
|
||||
*
|
||||
*/
|
||||
|
||||
extern int _krb5_AES_SHA1_string_to_default_iterator;
|
||||
extern int _krb5_AES_SHA2_string_to_default_iterator;
|
||||
extern const int _krb5_AES_SHA1_string_to_default_iterator;
|
||||
extern const int _krb5_AES_SHA2_string_to_default_iterator;
|
||||
|
||||
static krb5_error_code
|
||||
make_s2kparams(int value, size_t len, krb5_data **ps2kparams)
|
||||
|
@@ -33,7 +33,7 @@
|
||||
|
||||
#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
|
||||
AES_SHA1_string_to_key(krb5_context context,
|
||||
|
@@ -33,7 +33,7 @@
|
||||
|
||||
#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
|
||||
AES_SHA2_string_to_key(krb5_context context,
|
||||
|
Reference in New Issue
Block a user