Skip to content

Commit

Permalink
Increase maximum PIN length
Browse files Browse the repository at this point in the history
Fix #547
  • Loading branch information
mtrojnar committed Oct 21, 2024
1 parent 24636e4 commit 5467178
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
NEWS for Libp11 -- History of user visible changes

New in 0.4.13; unreleased
* Increased maximum PIN length.
* Fixed memory leak of RSA/EC methods when releasing PKCS11_CTX.

New in 0.4.12; 2022-07-15; Michał Trojnara
Expand Down
2 changes: 1 addition & 1 deletion src/eng_back.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#endif

/* The maximum length of an internally-allocated PIN */
#define MAX_PIN_LENGTH 32
#define MAX_PIN_LENGTH 256

struct st_engine_ctx {
/* Engine configuration */
Expand Down
2 changes: 1 addition & 1 deletion src/p11_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#endif

/* The maximum length of PIN */
#define MAX_PIN_LENGTH 32
#define MAX_PIN_LENGTH 256

static int pkcs11_find_keys(PKCS11_SLOT_private *, CK_SESSION_HANDLE, unsigned int, PKCS11_TEMPLATE *);
static int pkcs11_next_key(PKCS11_CTX_private *ctx, PKCS11_SLOT_private *,
Expand Down

0 comments on commit 5467178

Please sign in to comment.