From f19344f7acdb6be650c0e0bfea6db5fc81021d3a Mon Sep 17 00:00:00 2001 From: TwistedTwigleg Date: Thu, 16 Feb 2023 16:47:13 -0500 Subject: [PATCH] Allow passing None for the PKCS11 user pin (#446) --- awscrt/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awscrt/io.py b/awscrt/io.py index 822fcaf63..ad1443f11 100644 --- a/awscrt/io.py +++ b/awscrt/io.py @@ -12,6 +12,7 @@ from awscrt import NativeResource from enum import IntEnum import threading +from typing import Union class LogLevel(IntEnum): @@ -374,7 +375,7 @@ def create_client_with_mtls(cert_buffer, key_buffer): @staticmethod def create_client_with_mtls_pkcs11(*, pkcs11_lib: 'Pkcs11Lib', - user_pin: str, + user_pin: Union[str, None], slot_id: int = None, token_label: str = None, private_key_label: str = None,