Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
opendht
Commits
8dacf142
Commit
8dacf142
authored
8 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
crypto: add Certificate::getRawCopy()
parent
4540be74
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/opendht/crypto.h
+7
-0
7 additions, 0 deletions
include/opendht/crypto.h
with
7 additions
and
0 deletions
include/opendht/crypto.h
+
7
−
0
View file @
8dacf142
...
...
@@ -399,6 +399,13 @@ struct OPENDHT_PUBLIC Certificate {
static
Certificate
generate
(
const
PrivateKey
&
key
,
const
std
::
string
&
name
=
"dhtnode"
,
Identity
ca
=
{},
bool
is_ca
=
false
);
gnutls_x509_crt_t
getRawCopy
()
const
{
auto
copy
=
Certificate
(
getPacked
());
gnutls_x509_crt_t
ret
=
copy
.
cert
;
copy
.
cert
=
nullptr
;
return
ret
;
}
gnutls_x509_crt_t
cert
{};
std
::
shared_ptr
<
Certificate
>
issuer
{};
private
:
...
...
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