]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
x509: Add support to encode SANs of type uniformResourceIdentifier
authorTobias Brunner <tobias@strongswan.org>
Thu, 9 Nov 2023 11:42:54 +0000 (12:42 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Nov 2023 11:33:39 +0000 (12:33 +0100)
src/libstrongswan/plugins/x509/x509_cert.c

index bdada3381cded56c16b36508edbe9748fa67c6c7..296a1a33309c5504feb90711e0ba54931bf8861d 100644 (file)
@@ -2069,6 +2069,9 @@ static chunk_t build_generalName(identification_t *id)
                case ID_DER_ASN1_DN:
                        context = ASN1_CONTEXT_C_4;
                        break;
+               case ID_DER_ASN1_GN_URI:
+                       context = ASN1_CONTEXT_S_6;
+                       break;
                case ID_IPV4_ADDR:
                case ID_IPV6_ADDR:
                case ID_IPV4_ADDR_SUBNET: