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

Set x509 version in DTLS #595

Merged
merged 1 commit into from
Aug 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions scripts/patches/licode/0016-Set-x509-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 2f1d4a853d96cf211ec84b449f36907edf77c1d2 Mon Sep 17 00:00:00 2001
From: Chen Li1 <[email protected]>
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<std::string>(boost::this_thread::get_id());
unsigned int thread_number = 0;
sscanf(thread_id.c_str(), "%x", &thread_number);
--
2.7.4