Commit b09cd30 KCM: Adjust REPLY_MAX to the one used in krb5

2 files Authored by fidencio 2 months ago , Committed by jhrozek 2 months ago ,
KCM: Adjust REPLY_MAX to the one used in krb5

krb5 has its MAX_REPLY_SIZE set as 10*1024*1024, as seen in:
https://github.com/krb5/krb5/blob/master/src/lib/krb5/ccache/cc_kcm.c#L53

Related:
https://pagure.io/SSSD/sssd/issue/3386

Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>

Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

    
 1 @@ -31,7 +31,10 @@
 2   #include "responder/kcm/kcmsrv_ops.h"
 3   #include "responder/kcm/kcmsrv_ccache.h"
 4   
 5 - #define KCM_REPLY_MAX 16384
 6 + /* This limit comes from:
 7 +  * https://github.com/krb5/krb5/blob/master/src/lib/krb5/ccache/cc_kcm.c#L53
 8 +  */
 9 + #define KCM_REPLY_MAX 10*1024*1024
10   
11   struct kcm_op_ctx {
12       struct kcm_resp_ctx *kcm_data;
 1 @@ -35,7 +35,8 @@
 2   #include "util/tev_curl.h"
 3   
 4   #define TCURL_IOBUF_CHUNK   1024
 5 - #define TCURL_IOBUF_MAX    16384
 6 + /* This limit in the same one as KCM_REPLY_MAX */
 7 + #define TCURL_IOBUF_MAX     10*1024*1024
 8   
 9   static bool global_is_curl_initialized;
10