This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ada793
commit 5e3045c
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|