feat: use custom type to handle existing naive datetimes
This commit is contained in:
parent
e22abb383c
commit
39bdac1ecf
45 changed files with 210 additions and 84 deletions
|
@ -1,6 +1,6 @@
|
|||
import base64
|
||||
import hashlib
|
||||
from typing import Tuple, Optional, List, Dict
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
|
||||
|
||||
def onion_hostname(onion_public_key: bytes) -> str:
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import ssl
|
||||
from datetime import datetime, timezone
|
||||
from typing import Optional, Tuple, List, Dict, TYPE_CHECKING
|
||||
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple
|
||||
|
||||
from cryptography import x509
|
||||
from cryptography.hazmat._oid import ExtensionOID
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa, padding
|
||||
from cryptography.hazmat.primitives.asymmetric import padding, rsa
|
||||
from cryptography.hazmat.primitives.asymmetric.padding import PKCS1v15
|
||||
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicKey
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue