Skip to content

Commit

Permalink
krb5_child: Increase child buffer and chunk size
Browse files Browse the repository at this point in the history
Passkey data can be larger than 512 bytes.

Received passkey data from krb5 with multiple credentials
exceeds 256 bytes.

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Sumit Bose <sbose@redhat.com>
  • Loading branch information
justin-stephenson authored and pbrezina committed Apr 4, 2023
1 parent c76ba34 commit 9869e48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/passkey_child/passkey_child_credentials.c
Expand Up @@ -35,7 +35,7 @@

#include "passkey_child.h"

#define IN_BUF_SIZE 512
#define IN_BUF_SIZE 1024

errno_t
prepare_credentials(struct passkey_data *data, fido_dev_t *dev,
Expand Down
4 changes: 2 additions & 2 deletions src/util/child_common.h
Expand Up @@ -32,8 +32,8 @@

#include "util/util.h"

#define IN_BUF_SIZE 512
#define CHILD_MSG_CHUNK 256
#define IN_BUF_SIZE 2048
#define CHILD_MSG_CHUNK 1024

#define SIGTERM_TO_SIGKILL_TIME 2

Expand Down

0 comments on commit 9869e48

Please sign in to comment.