blob: 5db0b84b2c9854f881f71f2d318c1fda3cc76a1a [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001PRELIMINARY
2SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02003 #include <tls.h>
4
5 int * tls_query_connection_info(object ob)
MG Mud User88f12472016-06-24 23:31:02 +02006
7DESCRIPTION
8 If <ob> does not have a TLS connection or if the connection
9 is still being set-up, or if <ob> is not interactive, the efun
10 returns 0.
11
12 If <ob> has a TLS connection, tls_query_connection_info()
13 returns an array that contains some parameters of <ob>'s
14 connection:
15
16 int|string [TLS_CIPHER]: the cipher used
17 int [TLS_COMP]: the compression used
18 int [TLS_KX]: the key-exchange used
19 int [TLS_MAC]: the digest algorithm used
20 int|string [TLS_PROT]: the protocol used
21
22 To translate these numbers into strings, <tls.h> offers a
23 number of macros:
24
25 TLS_xxx_TABLE: a literal array of strings describing the
26 value in question.
27 TLS_xxx_NAME(x): a macro translating the numeric result
28 value into a string.
29
30 xxx: CIPHER, COMP, KX, MAC, PROT
31
32HISTORY
33 Introduced in LDMud 3.3.474 and following, backported to 3.2.11.
34
35SEE ALSO
36 tls_init_connection(E), tls_deinit_connection(E), tls_error(E),
37 tls_query_connection_state(E), tls_available(E),
38 tls_check_certificate(E), tls_refresh_certs(E)