Skip to content

Commit

Permalink
add bmp option
Browse files Browse the repository at this point in the history
  • Loading branch information
cymotive-eldad-sitbon committed Sep 20, 2024
1 parent 30b0398 commit 09416a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scapy/layers/x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,13 @@ class EdDSAPrivateKey(ASN1_Packet):
# Names #

class ASN1F_X509_DirectoryString(ASN1F_CHOICE):
# we include ASN1 bit strings for rare instances of x500 addresses
# we include ASN1 bit strings and bmp strings for rare instances of x500 addresses
def __init__(self, name, default, **kwargs):
ASN1F_CHOICE.__init__(self, name, default,
ASN1F_PRINTABLE_STRING, ASN1F_UTF8_STRING,
ASN1F_IA5_STRING, ASN1F_T61_STRING,
ASN1F_UNIVERSAL_STRING, ASN1F_BIT_STRING,
ASN1F_BMP_STRING,
**kwargs)


Expand Down

0 comments on commit 09416a5

Please sign in to comment.