Skip to content

Commit

Permalink
Allow passing None for the PKCS11 user pin (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedTwigleg authored Feb 16, 2023
1 parent 0d59a20 commit f19344f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awscrt/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from awscrt import NativeResource
from enum import IntEnum
import threading
from typing import Union


class LogLevel(IntEnum):
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f19344f

Please sign in to comment.