Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Set x509 version in DTLS (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
starwarfan authored Aug 12, 2020
1 parent 1ada793 commit 5e3045c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/patches/licode/0019-Set-x509-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 71136389d765b7dc19a52cf5e0c761ccbd736d5d Mon Sep 17 00:00:00 2001
From: Chen Li1 <[email protected]>
Date: Wed, 5 Aug 2020 16:12:40 +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 cec456f..45d3616 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<std::string>(boost::this_thread::get_id());
unsigned int thread_number = 0;
sscanf(thread_id.c_str(), "%x", &thread_number);
--
2.7.4

0 comments on commit 5e3045c

Please sign in to comment.