Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
2a04f3e0
Commit
2a04f3e0
authored
4 years ago
by
Adrien Béraud
Committed by
Sébastien Blin
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
use dht::toHex for crls
Change-Id: I0c4514f9676dc0c29d309c9176e116643e48d198
parent
4b6a0851
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/jamidht/conversationrepository.cpp
+1
-6
1 addition, 6 deletions
src/jamidht/conversationrepository.cpp
src/security/certstore.cpp
+1
-7
1 addition, 7 deletions
src/security/certstore.cpp
with
2 additions
and
13 deletions
src/jamidht/conversationrepository.cpp
+
1
−
6
View file @
2a04f3e0
...
@@ -182,12 +182,7 @@ add_initial_files(GitRepository& repo, const std::shared_ptr<JamiAccount>& accou
...
@@ -182,12 +182,7 @@ add_initial_files(GitRepository& repo, const std::shared_ptr<JamiAccount>& accou
for
(
const
auto
&
crl
:
account
->
identity
().
second
->
getRevocationLists
())
{
for
(
const
auto
&
crl
:
account
->
identity
().
second
->
getRevocationLists
())
{
if
(
!
crl
)
if
(
!
crl
)
continue
;
continue
;
auto
v
=
crl
->
getNumber
();
std
::
string
crlPath
=
crlsPath
+
DIR_SEPARATOR_STR
+
deviceId
+
DIR_SEPARATOR_STR
+
dht
::
toHex
(
crl
->
getNumber
())
std
::
stringstream
ss
;
ss
<<
std
::
hex
;
for
(
const
auto
&
b
:
v
)
ss
<<
(
unsigned
)
b
;
std
::
string
crlPath
=
crlsPath
+
DIR_SEPARATOR_STR
+
deviceId
+
DIR_SEPARATOR_STR
+
ss
.
str
()
+
".crl"
;
+
".crl"
;
file
=
fileutils
::
ofstream
(
crlPath
,
std
::
ios
::
trunc
|
std
::
ios
::
binary
);
file
=
fileutils
::
ofstream
(
crlPath
,
std
::
ios
::
trunc
|
std
::
ios
::
binary
);
if
(
!
file
.
is_open
())
{
if
(
!
file
.
is_open
())
{
...
...
This diff is collapsed.
Click to expand it.
src/security/certstore.cpp
+
1
−
7
View file @
2a04f3e0
...
@@ -388,14 +388,8 @@ CertificateStore::pinRevocationList(const std::string& id,
...
@@ -388,14 +388,8 @@ CertificateStore::pinRevocationList(const std::string& id,
void
void
CertificateStore
::
pinRevocationList
(
const
std
::
string
&
id
,
const
dht
::
crypto
::
RevocationList
&
crl
)
CertificateStore
::
pinRevocationList
(
const
std
::
string
&
id
,
const
dht
::
crypto
::
RevocationList
&
crl
)
{
{
auto
v
=
crl
.
getNumber
();
std
::
stringstream
ss
;
ss
<<
std
::
hex
;
for
(
const
auto
&
b
:
v
)
ss
<<
(
unsigned
)
b
;
fileutils
::
check_dir
((
crlPath_
+
DIR_SEPARATOR_CH
+
id
).
c_str
());
fileutils
::
check_dir
((
crlPath_
+
DIR_SEPARATOR_CH
+
id
).
c_str
());
fileutils
::
saveFile
(
crlPath_
+
DIR_SEPARATOR_CH
+
id
+
DIR_SEPARATOR_CH
+
ss
.
st
r
(),
fileutils
::
saveFile
(
crlPath_
+
DIR_SEPARATOR_CH
+
id
+
DIR_SEPARATOR_CH
+
dht
::
toHex
(
crl
.
getNumbe
r
()
)
,
crl
.
getPacked
());
crl
.
getPacked
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment