diff --git a/scripts/patches/licode/0016-Set-x509-version.patch b/scripts/patches/licode/0016-Set-x509-version.patch new file mode 100644 index 000000000..26b336581 --- /dev/null +++ b/scripts/patches/licode/0016-Set-x509-version.patch @@ -0,0 +1,25 @@ +From 2f1d4a853d96cf211ec84b449f36907edf77c1d2 Mon Sep 17 00:00:00 2001 +From: Chen Li1 +Date: Wed, 5 Aug 2020 16:29:35 +0800 +Subject: [PATCH] Set x509 version + +--- + erizo/src/erizo/dtls/DtlsClient.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/erizo/src/erizo/dtls/DtlsClient.cpp b/erizo/src/erizo/dtls/DtlsClient.cpp +index 48b22bd..12d6b47 100644 +--- a/erizo/src/erizo/dtls/DtlsClient.cpp ++++ b/erizo/src/erizo/dtls/DtlsClient.cpp +@@ -159,7 +159,7 @@ int createCert(const std::string& pAor, int expireDays, int keyLen, X509*& outCe + X509_EXTENSION* ext = X509_EXTENSION_new(); + + // set version to X509v3 (starts from 0) +- // X509_set_version(cert, 0L); ++ X509_set_version(cert, 2L); + std::string thread_id = boost::lexical_cast(boost::this_thread::get_id()); + unsigned int thread_number = 0; + sscanf(thread_id.c_str(), "%x", &thread_number); +-- +2.7.4 +