Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-libclient
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-libclient
Commits
d236417e
Commit
d236417e
authored
10 years ago
by
Emmanuel Lepage Vallee
Browse files
Options
Downloads
Patches
Plain Diff
Add missing licence
And fix a nullptr dereference introduced by the last commit
parent
0bb2fe44
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/securityflaw.h
+17
-0
17 additions, 0 deletions
src/securityflaw.h
src/securityvalidationmodel.cpp
+1
-1
1 addition, 1 deletion
src/securityvalidationmodel.cpp
with
18 additions
and
1 deletion
src/securityflaw.h
+
17
−
0
View file @
d236417e
/****************************************************************************
* Copyright (C) 2015 by Savoir-Faire Linux *
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef SECURITY_FLAW_H
#define SECURITY_FLAW_H
...
...
This diff is collapsed.
Click to expand it.
src/securityvalidationmodel.cpp
+
1
−
1
View file @
d236417e
...
...
@@ -181,7 +181,7 @@ void SecurityValidationModelPrivate::update()
/* The user certificate need to have a private key, otherwise it wont
* be possible to encrypt anything */
if
((
m_pAccount
->
tlsCertificate
()
->
hasPrivateKey
()
==
Certificate
::
CheckValues
::
FAILED
)
&&
(
m_pAccount
->
tlsPrivateKeyCertificate
()
->
exist
()
==
Certificate
::
CheckValues
::
FAILED
))
{
if
((
m_pAccount
->
tlsCertificate
()
&&
m_pAccount
->
tlsCertificate
()
->
hasPrivateKey
()
==
Certificate
::
CheckValues
::
FAILED
)
&&
(
m_pAccount
->
tlsPrivateKeyCertificate
()
&&
m_pAccount
->
tlsPrivateKeyCertificate
()
->
exist
()
==
Certificate
::
CheckValues
::
FAILED
))
{
m_lCurrentFlaws
<<
_F
(
PRIVATE_KEY_MISSING
,
m_pAccount
->
tlsPrivateKeyCertificate
()
->
type
());
}
...
...
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