OpenVPN
ssl_common.h
Go to the documentation of this file.
1/*
2 * OpenVPN -- An application to securely tunnel IP networks
3 * over a single TCP/UDP port, with support for SSL/TLS-based
4 * session authentication and key exchange,
5 * packet encryption, packet authentication, and
6 * packet compression.
7 *
8 * Copyright (C) 2002-2024 OpenVPN Inc <sales@openvpn.net>
9 * Copyright (C) 2010-2021 Fox Crypto B.V. <openvpn@foxcrypto.com>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2
13 * as published by the Free Software Foundation.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 */
24
30#ifndef SSL_COMMON_H_
31#define SSL_COMMON_H_
32
33#include "session_id.h"
34#include "socket.h"
35#include "packet_id.h"
36#include "crypto.h"
37#include "options.h"
38
39#include "ssl_backend.h"
40
41/* passwords */
42#define UP_TYPE_AUTH "Auth"
43#define UP_TYPE_PRIVATE_KEY "Private Key"
44
78#define S_ERROR (-2)
79#define S_ERROR_PRE (-1)
82#define S_UNDEF 0
84#define S_INITIAL 1
87#define S_PRE_START 2
90#define S_START 3
92#define S_SENT_KEY 4
94#define S_GOT_KEY 5
97#define S_ACTIVE 6
102#define S_GENERATED_KEYS 7
106/* Note that earlier versions also had a S_OP_NORMAL state that was
107 * virtually identical with S_ACTIVE and the code still assumes everything
108 * >= S_ACTIVE to be fully operational */
118 uint8_t pre_master[48];
121 uint8_t random1[32];
124 uint8_t random2[32];
126};
127
128
138
139
157
165
166/* key_state_test_auth_control_file return values, these specify the
167 * current status of a deferred authentication */
174
180
200{
201 int state;
204
210
215 uint32_t peer_id;
216
217 struct key_state_ssl ks_ssl; /* contains SSL object and BIOs for the control channel */
218
219 time_t initial; /* when we created this session */
220 time_t established; /* when our state went S_ACTIVE */
221 time_t must_negotiate; /* key negotiation times out if not finished before this time */
222 time_t must_die; /* this object is destroyed at this time */
223 time_t peer_last_packet; /* Last time we received a packet in this control session */
224
225 int initial_opcode; /* our initial P_ opcode */
226 struct session_id session_id_remote; /* peer's random session ID */
227 struct link_socket_actual remote_addr; /* peer's IP addr */
228
229 struct crypto_options crypto_options;/* data channel crypto options */
230
231 struct key_source2 *key_src; /* source entropy for key expansion */
232
236
237 struct reliable *send_reliable; /* holds a copy of outgoing packets until ACK received */
238 struct reliable *rec_reliable; /* order incoming ciphertext packets before we pass to TLS */
239 struct reliable_ack *rec_ack; /* buffers all packet IDs we want to ACK back to sender */
240 struct reliable_ack *lru_acks; /* keeps the most recently acked packages*/
241
245 counter_type n_bytes; /* how many bytes sent/recvd since last key exchange */
246 counter_type n_packets; /* how many packets sent/recvd since last key exchange */
247
248 /*
249 * If bad username/password, TLS connection will come up but 'authenticated' will be false.
250 */
253
254#ifdef ENABLE_MANAGEMENT
255 unsigned int mda_key_id;
257#endif
259
262
264};
265
292
293/*
294 * Our const options, obtained directly or derived from
295 * command line options.
296 */
298{
299 /* our master TLS context from which all SSL objects derived */
301
302 /* data channel cipher, hmac, and key lengths */
304
305 /* true if we are a TLS server, client otherwise */
306 bool server;
307
308 /* if true, don't xmit until first packet from peer is received */
310
311 /* local and remote options strings
312 * that must match between client and server */
313 const char *local_options;
314 const char *remote_options;
315
316 /* from command line */
318 int mode;
319 bool pull;
340
341 /* cert verification parms */
342 const char *verify_command;
344 const char *verify_x509_name;
345 const char *crl_file;
349 const char *remote_cert_eku;
354#ifdef ENABLE_X509ALTUSERNAME
356#else
358#endif
359
360 /* struct crypto_option flags */
361 unsigned int crypto_flags;
362
363 int replay_window; /* --replay-window parm */
364 int replay_time; /* --replay-window parm */
365
366 const char *config_ciphername;
368
374
377
380
381 struct frame frame;
382
383 /* used for username/password authentication */
387 const char *tmp_dir;
391
397 unsigned int auth_token_renewal;
398
400
401 /* use the client-config-dir as a positive authenticator */
403
404 /* instance-wide environment variable set */
405 struct env_set *es;
407 const struct plugin_list *plugins;
408
409 /* compression parms */
410#ifdef USE_COMP
411 struct compress_options comp_options;
412#endif
413
414 /* configuration file SSL-related boolean and low-permutation options */
415#define SSLF_CLIENT_CERT_NOT_REQUIRED (1<<0)
416#define SSLF_CLIENT_CERT_OPTIONAL (1<<1)
417#define SSLF_USERNAME_AS_COMMON_NAME (1<<2)
418#define SSLF_AUTH_USER_PASS_OPTIONAL (1<<3)
419#define SSLF_OPT_VERIFY (1<<4)
420#define SSLF_CRL_VERIFY_DIR (1<<5)
421#define SSLF_TLS_VERSION_MIN_SHIFT 6
422#define SSLF_TLS_VERSION_MIN_MASK 0xF /* (uses bit positions 6 to 9) */
423#define SSLF_TLS_VERSION_MAX_SHIFT 10
424#define SSLF_TLS_VERSION_MAX_MASK 0xF /* (uses bit positions 10 to 13) */
425#define SSLF_TLS_DEBUG_ENABLED (1<<14)
426 unsigned int ssl_flags;
427
428#ifdef ENABLE_MANAGEMENT
430#endif
431
432 const struct x509_track *x509_track;
433
434#ifdef ENABLE_MANAGEMENT
436#endif
437
438 /* --gremlin bits */
440
441 /* Keying Material Exporter [RFC 5705] parameters */
442 const char *ekm_label;
444 size_t ekm_size;
445
447};
448
456#define KS_PRIMARY 0
457#define KS_LAME_DUCK 1
459#define KS_SIZE 2
480{
481 /* const options and config info */
483
484 /* during hard reset used to control burst retransmit */
485 bool burst;
486
487 /* authenticate control packets */
489
490 /* Specific tls-crypt for renegotiations, if this is valid,
491 * tls_wrap_reneg.mode is TLS_WRAP_CRYPT, otherwise ignore it */
493
494 int initial_opcode; /* our initial P_ opcode */
495 struct session_id session_id; /* our random session ID */
496
503
505
507
509
510 bool verified; /* true if peer certificate was verified against CA */
511
512 /* not-yet-authenticated incoming client */
514
516};
517
535#define TM_ACTIVE 0
536#define TM_INITIAL 1
538#define TM_LAME_DUCK 2
539#define TM_SIZE 3
545/*
546 * The number of keys we will scan on encrypt or decrypt. The first
547 * is the "active" key. The second is the lame_duck or retiring key
548 * associated with the active key's session ID. The third is a detached
549 * lame duck session that only occurs in situations where a key renegotiate
550 * failed on the active key, but a lame duck key was still valid. By
551 * preserving the lame duck session, we can be assured of having a data
552 * channel key available even when network conditions are so bad that
553 * we can't negotiate a new key within the time allotted.
554 */
555#define KEY_SCAN_SIZE 3
556
557
558/* multi state (originally client authentication state (=CAS))
559 * CAS_NOT_CONNECTED must be 0 since non multi code paths still check
560 * this variable but do not explicitly initialise it and depend
561 * on zero initialisation */
562
563/* CAS_NOT_CONNECTED is the initial state for every context. When the *first*
564 * tls_session reaches S_ACTIVE, this state machine moves to CAS_PENDING (server)
565 * or CAS_CONNECT_DONE (client/p2p) as clients skip the stages associated with
566 * connect scripts/plugins */
581
582
597{
598 /* used to coordinate access between main thread and TLS thread */
599 /*MUTEX_PTR_DEFINE (mutex);*/
600
601 /* const options and config info */
603
604 /*
605 * used by tls_pre_encrypt to communicate the encrypt key
606 * to tls_post_encrypt()
607 */
608 struct key_state *save_ks; /* temporary pointer used between pre/post routines */
609
610 /*
611 * Used to return outgoing address from
612 * tls_multi_process.
613 */
615
619
620 /*
621 * Number of errors.
622 */
623 int n_hard_errors; /* errors due to TLS negotiation failure */
624 int n_soft_errors; /* errors due to unrecognized or failed-to-authenticate incoming packets */
625
626 /*
627 * Our locked common name, username, and cert hashes (cannot change during the life of this tls_multi object)
628 */
632
636
639
640 /*
641 * An error message to send to client on AUTH_FAILED
642 */
644
645 /*
646 * A multi-line string of general-purpose info received from peer
647 * over control channel.
648 */
658#define AUTH_TOKEN_HMAC_OK (1<<0)
660#define AUTH_TOKEN_EXPIRED (1<<1)
662#define AUTH_TOKEN_VALID_EMPTYUSER (1<<2)
671 /* For P_DATA_V2 */
672 uint32_t peer_id;
674
678 /*
679 * Our session objects.
680 */
686 /* Only used when DCO is used to remember how many keys we installed
687 * for this session */
697
699};
700
704static inline struct key_state *
705get_key_scan(struct tls_multi *multi, int index)
706{
707 switch (index)
708 {
709 case 0:
710 return &multi->session[TM_ACTIVE].key[KS_PRIMARY];
711
712 case 1:
713 return &multi->session[TM_ACTIVE].key[KS_LAME_DUCK];
714
715 case 2:
716 return &multi->session[TM_LAME_DUCK].key[KS_LAME_DUCK];
717
718 default:
719 ASSERT(false);
720 return NULL; /* NOTREACHED */
721 }
722}
723
727static inline const struct key_state *
728get_primary_key(const struct tls_multi *multi)
729{
730 return &multi->session[TM_ACTIVE].key[KS_PRIMARY];
731}
732
733#endif /* SSL_COMMON_H_ */
uint64_t counter_type
Definition common.h:30
int interval_t
Definition common.h:36
Data Channel Cryptography Module.
hash_algo_type
Types referencing specific message digest hashing algorithms.
void * dco_context_t
Definition dco.h:267
#define KS_SIZE
Size of the tls_session.key array.
Definition ssl_common.h:459
#define KS_PRIMARY
Primary key state index.
Definition ssl_common.h:456
#define TM_LAME_DUCK
Old tls_session.
Definition ssl_common.h:538
#define TM_SIZE
Size of the tls_multi.session array.
Definition ssl_common.h:539
#define TM_ACTIVE
Active tls_session.
Definition ssl_common.h:535
#define KS_LAME_DUCK
Key state index that will retire soon.
Definition ssl_common.h:457
void * openvpn_net_ctx_t
Definition networking.h:39
#define ASSERT(x)
Definition error.h:195
#define MAX_PARMS
Definition options.h:52
Control Channel SSL library backend module.
auth_deferred_result
Definition ssl_common.h:168
@ ACF_PENDING
deferred auth still pending
Definition ssl_common.h:169
@ ACF_SUCCEEDED
deferred auth has suceeded
Definition ssl_common.h:170
@ ACF_FAILED
deferred auth has failed
Definition ssl_common.h:172
@ ACF_DISABLED
deferred auth is not used
Definition ssl_common.h:171
dco_key_status
Definition ssl_common.h:175
@ DCO_INSTALLED_PRIMARY
Definition ssl_common.h:177
@ DCO_INSTALLED_SECONDARY
Definition ssl_common.h:178
@ DCO_NOT_INSTALLED
Definition ssl_common.h:176
static struct key_state * get_key_scan(struct tls_multi *multi, int index)
gets an item of key_state objects in the order they should be scanned by data channel modules.
Definition ssl_common.h:705
multi_status
Definition ssl_common.h:567
@ CAS_CONNECT_DONE
Definition ssl_common.h:579
@ CAS_PENDING_DEFERRED
Waiting on an async option import handler.
Definition ssl_common.h:571
@ CAS_WAITING_AUTH
Initial TLS connection established but deferred auth is not yet finished.
Definition ssl_common.h:569
@ CAS_PENDING_DEFERRED_PARTIAL
at least handler succeeded but another is still pending
Definition ssl_common.h:572
@ CAS_PENDING
Options import (Connect script/plugin, ccd,...)
Definition ssl_common.h:570
@ CAS_WAITING_OPTIONS_IMPORT
client with pull or p2p waiting for first time options import
Definition ssl_common.h:574
@ CAS_NOT_CONNECTED
Definition ssl_common.h:568
@ CAS_FAILED
Option import failed or explicitly denied the client.
Definition ssl_common.h:573
@ CAS_RECONNECT_PENDING
session has already successful established (CAS_CONNECT_DONE) but has a reconnect and needs to redo s...
Definition ssl_common.h:575
ks_auth_state
This reflects the (server side) authentication state after the TLS session has been established and k...
Definition ssl_common.h:147
@ KS_AUTH_TRUE
Key state is authenticated.
Definition ssl_common.h:151
@ KS_AUTH_FALSE
Key state is not authenticated
Definition ssl_common.h:148
@ KS_AUTH_DEFERRED
Key state authentication is being deferred, by async auth.
Definition ssl_common.h:149
static const struct key_state * get_primary_key(const struct tls_multi *multi)
gets an item of key_state objects in the order they should be scanned by data channel modules.
Definition ssl_common.h:728
char * auth_failed_reason_file
Definition ssl_common.h:162
unsigned int auth_control_status
Definition ssl_common.h:163
Wrapper structure for dynamically allocated memory.
Definition buffer.h:61
Structure containing the hashes for a full certificate chain.
Definition ssl_verify.h:60
Security parameter state for processing data channel packets.
Definition crypto.h:292
Packet geometry parameters.
Definition mtu.h:98
Container for bidirectional cipher and HMAC key material.
Definition crypto.h:239
Container for one set of cipher and/or HMAC contexts.
Definition crypto.h:201
Container for both halves of random material to be used in key method 2 data channel key generation.
Definition ssl_common.h:134
struct key_source client
Random provided by client.
Definition ssl_common.h:135
struct key_source server
Random provided by server.
Definition ssl_common.h:136
Container for one half of random material to be used in key method 2 data channel key generation.
Definition ssl_common.h:117
uint8_t random1[32]
Seed used for master secret generation, provided by both client and server.
Definition ssl_common.h:121
uint8_t pre_master[48]
Random used for master secret generation, provided only by client OpenVPN peer.
Definition ssl_common.h:118
uint8_t random2[32]
Seed used for key expansion, provided by both client and server.
Definition ssl_common.h:124
Security parameter state of one TLS and data channel key session.
Definition ssl_common.h:200
struct buffer_list * paybuf
Holds outgoing message for the control channel until ks->state reaches S_ACTIVE.
Definition ssl_common.h:244
unsigned int auth_token_state_flags
The state of the auth-token sent from the client.
Definition ssl_common.h:203
enum dco_key_status dco_status
Definition ssl_common.h:263
struct buffer ack_write_buf
Definition ssl_common.h:235
struct buffer plaintext_read_buf
Definition ssl_common.h:233
struct auth_deferred_status plugin_auth
Definition ssl_common.h:260
time_t must_die
Definition ssl_common.h:222
struct buffer plaintext_write_buf
Definition ssl_common.h:234
struct link_socket_actual remote_addr
Definition ssl_common.h:227
uint32_t peer_id
Key id for this key_state, inherited from struct tls_session.
Definition ssl_common.h:215
time_t established
Definition ssl_common.h:220
struct key_state_ssl ks_ssl
Definition ssl_common.h:217
time_t acf_last_mod
Definition ssl_common.h:258
time_t must_negotiate
Definition ssl_common.h:221
struct reliable_ack * rec_ack
Definition ssl_common.h:239
struct reliable * rec_reliable
Definition ssl_common.h:238
struct session_id session_id_remote
Definition ssl_common.h:226
unsigned int mda_key_id
Definition ssl_common.h:255
struct auth_deferred_status script_auth
Definition ssl_common.h:261
time_t initial
Definition ssl_common.h:219
enum auth_deferred_result mda_status
Definition ssl_common.h:256
enum ks_auth_state authenticated
Definition ssl_common.h:251
int key_id
Key id for this key_state, inherited from struct tls_session.
Definition ssl_common.h:209
time_t peer_last_packet
Definition ssl_common.h:223
struct reliable * send_reliable
Definition ssl_common.h:237
time_t auth_deferred_expire
Definition ssl_common.h:252
int initial_opcode
Definition ssl_common.h:225
struct reliable_ack * lru_acks
Definition ssl_common.h:240
struct key_source2 * key_src
Definition ssl_common.h:231
counter_type n_bytes
Definition ssl_common.h:245
counter_type n_packets
Definition ssl_common.h:246
Container for unidirectional cipher and HMAC key material.
Definition crypto.h:152
The acknowledgment structure in which packet IDs are stored for later acknowledgment.
Definition reliable.h:62
The reliability layer storage structure for one VPN tunnel's control channel in one direction.
Definition reliable.h:92
Security parameter state for a single VPN tunnel.
Definition ssl_common.h:597
char * auth_token_initial
The first auth-token we sent to a client.
Definition ssl_common.h:654
int n_hard_errors
Definition ssl_common.h:623
bool remote_usescomp
remote announced comp-lzo in OCC string
Definition ssl_common.h:676
dco_context_t * dco
Definition ssl_common.h:698
struct link_socket_actual to_link_addr
Definition ssl_common.h:614
char * peer_info
Definition ssl_common.h:649
struct key_state * save_ks
Definition ssl_common.h:608
char * remote_ciphername
cipher specified in peer's config file
Definition ssl_common.h:675
char * locked_username
Definition ssl_common.h:630
enum multi_status multi_state
Definition ssl_common.h:618
unsigned int tas_cache_num_updates
The number of times we updated the cache.
Definition ssl_common.h:638
struct tls_options opt
Definition ssl_common.h:602
struct tls_session session[TM_SIZE]
Array of tls_session objects representing control channel sessions with the remote peer.
Definition ssl_common.h:681
int dco_keys_installed
Definition ssl_common.h:688
struct cert_hash_set * locked_cert_hash_set
Definition ssl_common.h:631
time_t tas_cache_last_update
Time of last when we updated the cached state of tls_authentication_status deferred files.
Definition ssl_common.h:635
char * locked_cn
Definition ssl_common.h:629
uint32_t peer_id
Definition ssl_common.h:672
char * client_reason
Definition ssl_common.h:643
char * auth_token
If server sends a generated auth-token, this is the token to use for future user/pass authentications...
Definition ssl_common.h:650
bool use_peer_id
Definition ssl_common.h:673
int n_sessions
Number of sessions negotiated thus far.
Definition ssl_common.h:616
int dco_peer_id
This is the handle that DCO uses to identify this session with the kernel.
Definition ssl_common.h:696
int n_soft_errors
Definition ssl_common.h:624
int64_t renegotiate_bytes
Definition ssl_common.h:334
struct key_ctx auth_token_key
Definition ssl_common.h:399
unsigned int auth_token_renewal
Definition ssl_common.h:397
struct env_set * es
Definition ssl_common.h:405
unsigned int auth_token_lifetime
Definition ssl_common.h:396
struct tls_wrap_ctx tls_wrap
TLS handshake wrapping state.
Definition ssl_common.h:379
size_t ekm_label_size
Definition ssl_common.h:443
unsigned int crypto_flags
Definition ssl_common.h:361
unsigned remote_cert_ku[MAX_PARMS]
Definition ssl_common.h:348
interval_t packet_timeout
Definition ssl_common.h:333
const char * auth_user_pass_file
Definition ssl_common.h:389
uint64_t aead_usage_limit
limit for AEAD cipher when not running in epoch data key mode, this is the sum of packets + blocks th...
Definition ssl_common.h:338
const char * client_crresponse_script
Definition ssl_common.h:385
const struct static_challenge_info * sci
Definition ssl_common.h:435
openvpn_net_ctx_t * net_ctx
Definition ssl_common.h:406
const char * tmp_dir
Definition ssl_common.h:387
interval_t renegotiate_seconds
Definition ssl_common.h:339
int64_t renegotiate_packets
Definition ssl_common.h:335
bool auth_user_pass_file_inline
Definition ssl_common.h:390
int verify_hash_depth
Definition ssl_common.h:351
const struct plugin_list * plugins
Definition ssl_common.h:407
const char * client_config_dir_exclusive
Definition ssl_common.h:402
bool tls_crypt_v2
Definition ssl_common.h:375
const char * export_peer_cert_dir
Definition ssl_common.h:388
const char * verify_command
Definition ssl_common.h:342
struct verify_hash_list * verify_hash
Definition ssl_common.h:350
const char * ekm_label
Definition ssl_common.h:442
size_t ekm_size
Definition ssl_common.h:444
char * x509_username_field[2]
Definition ssl_common.h:357
int transition_window
Definition ssl_common.h:331
const char * remote_options
Definition ssl_common.h:314
const char * config_ciphername
Definition ssl_common.h:366
int verify_x509_type
Definition ssl_common.h:343
bool single_session
Definition ssl_common.h:317
bool data_epoch_supported
whether our underlying data channel supports new data channel features (epoch keys with AEAD tag at t...
Definition ssl_common.h:373
const char * verify_x509_name
Definition ssl_common.h:344
bool crl_file_inline
Definition ssl_common.h:346
const struct x509_track * x509_track
Definition ssl_common.h:432
bool verify_hash_no_ca
Definition ssl_common.h:352
struct man_def_auth_context * mda_context
Definition ssl_common.h:429
const char * tls_crypt_v2_verify_script
Definition ssl_common.h:376
struct tls_root_ctx ssl_ctx
Definition ssl_common.h:300
bool auth_user_pass_verify_script_via_file
Definition ssl_common.h:386
const char * config_ncp_ciphers
Definition ssl_common.h:367
const char * local_options
Definition ssl_common.h:313
unsigned int ssl_flags
Definition ssl_common.h:426
bool auth_token_generate
Generate auth-tokens on successful user/pass auth,seet via options->auth_token_generate.
Definition ssl_common.h:392
int push_peer_info_detail
The detail of info we push in peer info.
Definition ssl_common.h:330
hash_algo_type verify_hash_algo
Definition ssl_common.h:353
bool auth_token_call_auth
always call normal authentication
Definition ssl_common.h:395
const char * crl_file
Definition ssl_common.h:345
int handshake_window
Definition ssl_common.h:332
bool dco_enabled
Whether keys have to be installed in DCO or not.
Definition ssl_common.h:446
const char * auth_user_pass_verify_script
Definition ssl_common.h:384
const char * remote_cert_eku
Definition ssl_common.h:349
int replay_window
Definition ssl_common.h:363
Structure that wraps the TLS context.
Security parameter state of a single session within a VPN tunnel.
Definition ssl_common.h:480
int key_id
The current active key id, used to keep track of renegotiations.
Definition ssl_common.h:502
struct tls_wrap_ctx tls_wrap_reneg
Definition ssl_common.h:492
struct key_state key[KS_SIZE]
Definition ssl_common.h:515
struct cert_hash_set * cert_hash_set
Definition ssl_common.h:508
struct tls_options * opt
Definition ssl_common.h:482
char * common_name
Definition ssl_common.h:506
struct tls_wrap_ctx tls_wrap
Definition ssl_common.h:488
int verify_maxlevel
Definition ssl_common.h:504
struct link_socket_actual untrusted_addr
Definition ssl_common.h:513
int initial_opcode
Definition ssl_common.h:494
Control channel wrapping (–tls-auth/–tls-crypt) context.
Definition ssl_common.h:268
@ TLS_WRAP_CRYPT
Control channel encryption and authentication.
Definition ssl_common.h:272
@ TLS_WRAP_NONE
No control channel wrapping.
Definition ssl_common.h:270
@ TLS_WRAP_AUTH
Control channel authentication.
Definition ssl_common.h:271
struct buffer tls_crypt_v2_metadata
Received from client.
Definition ssl_common.h:279
bool cleanup_key_ctx
opt.key_ctx_bi is owned by this context
Definition ssl_common.h:280
struct crypto_options opt
Crypto state.
Definition ssl_common.h:274
struct buffer work
Work buffer (only for –tls-crypt)
Definition ssl_common.h:275
struct key_ctx tls_crypt_v2_server_key
Decrypts client keys.
Definition ssl_common.h:276
const struct buffer * tls_crypt_v2_wkc
Wrapped client key, sent to server.
Definition ssl_common.h:277
enum tls_wrap_ctx::@23 mode
Control channel wrapping mode.
struct key2 original_wrap_keydata
original key data to be xored in to the key for dynamic tls-crypt.
Definition ssl_common.h:290