Skip to content

Commit f19344f

Browse files
Allow passing None for the PKCS11 user pin (#446)
1 parent 0d59a20 commit f19344f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

awscrt/io.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from awscrt import NativeResource
1313
from enum import IntEnum
1414
import threading
15+
from typing import Union
1516

1617

1718
class LogLevel(IntEnum):
@@ -374,7 +375,7 @@ def create_client_with_mtls(cert_buffer, key_buffer):
374375
@staticmethod
375376
def create_client_with_mtls_pkcs11(*,
376377
pkcs11_lib: 'Pkcs11Lib',
377-
user_pin: str,
378+
user_pin: Union[str, None],
378379
slot_id: int = None,
379380
token_label: str = None,
380381
private_key_label: str = None,

0 commit comments

Comments
 (0)