From 09416a573864023720bd746fb3016ad0918dbf6c Mon Sep 17 00:00:00 2001 From: "eldad.sitbon" Date: Fri, 20 Sep 2024 09:58:02 +0200 Subject: [PATCH] add bmp option --- scapy/layers/x509.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scapy/layers/x509.py b/scapy/layers/x509.py index 5d8e4191912..0879aab1144 100644 --- a/scapy/layers/x509.py +++ b/scapy/layers/x509.py @@ -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)