Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a0fe9b04
Commit
a0fe9b04
authored
Dec 08, 2014
by
Lars Magne Ingebrigtsen
Browse files
(Fgnutls_peer_status): Return the DH prime bits for the connection
parent
c498441e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/ChangeLog
src/ChangeLog
+2
-0
src/gnutls.c
src/gnutls.c
+9
-0
No files found.
src/ChangeLog
View file @
a0fe9b04
...
...
@@ -3,6 +3,8 @@
* gnutls.c (gnutls_certificate_details): The :signature isn't
that useful, so remove it.
(gnutls_certificate_details): Clean up whitespace slightly.
(Fgnutls_peer_status): Return the Diffie-Hellman prime bits for
the connection.
2014-12-07 Jan Djärv <jan.h.d@swipnet.se>
...
...
src/gnutls.c
View file @
a0fe9b04
...
...
@@ -1029,6 +1029,15 @@ The return value is a property list with top-level keys :warnings and
(
intern
(
":certificate"
),
gnutls_certificate_details
(
XPROCESS
(
proc
)
->
gnutls_certificate
)));
/* Diffie-Hellman prime bits. */
{
int
bits
=
gnutls_dh_get_prime_bits
(
XPROCESS
(
proc
)
->
gnutls_state
);
if
(
bits
>
0
)
result
=
nconc2
(
result
,
list2
(
intern
(
":diffie-hellman-prime-bits"
),
make_number
(
bits
)));
}
return
result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment