Lines Matching refs:x

18 int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x)  in SSL_SESSION_print_fp()  argument
28 ret = SSL_SESSION_print(b, x); in SSL_SESSION_print_fp()
34 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) in SSL_SESSION_print() argument
40 if (x == NULL) in SSL_SESSION_print()
42 istls13 = (x->ssl_version == TLS1_3_VERSION); in SSL_SESSION_print()
45 s = ssl_protocol_to_string(x->ssl_version); in SSL_SESSION_print()
49 if (x->cipher == NULL) { in SSL_SESSION_print()
50 if (((x->cipher_id) & 0xff000000) == 0x02000000) { in SSL_SESSION_print()
52 x->cipher_id & 0xffffff) <= 0) in SSL_SESSION_print()
56 x->cipher_id & 0xffff) <= 0) in SSL_SESSION_print()
61 ((x->cipher->name == NULL) ? "unknown" in SSL_SESSION_print()
62 : x->cipher->name)) <= 0) in SSL_SESSION_print()
67 for (i = 0; i < x->session_id_length; i++) { in SSL_SESSION_print()
68 if (BIO_printf(bp, "%02X", x->session_id[i]) <= 0) in SSL_SESSION_print()
73 for (i = 0; i < x->sid_ctx_length; i++) { in SSL_SESSION_print()
74 if (BIO_printf(bp, "%02X", x->sid_ctx[i]) <= 0) in SSL_SESSION_print()
82 for (i = 0; i < x->master_key_length; i++) { in SSL_SESSION_print()
83 if (BIO_printf(bp, "%02X", x->master_key[i]) <= 0) in SSL_SESSION_print()
89 if (BIO_printf(bp, "%s", x->psk_identity ? x->psk_identity : "None") <= 0) in SSL_SESSION_print()
94 (bp, "%s", x->psk_identity_hint ? x->psk_identity_hint : "None") <= 0) in SSL_SESSION_print()
100 if (BIO_printf(bp, "%s", x->srp_username ? x->srp_username : "None") <= 0) in SSL_SESSION_print()
103 if (x->ext.tick_lifetime_hint) { in SSL_SESSION_print()
106 x->ext.tick_lifetime_hint) <= 0) in SSL_SESSION_print()
109 if (x->ext.tick) { in SSL_SESSION_print()
113 (bp, (const char *)x->ext.tick, (int)x->ext.ticklen, 4) in SSL_SESSION_print()
118 if (x->compress_meth != 0) { in SSL_SESSION_print()
121 if (!ssl_cipher_get_evp(NULL, x, NULL, NULL, NULL, NULL, &comp, 0)) in SSL_SESSION_print()
124 if (BIO_printf(bp, "\n Compression: %d", x->compress_meth) <= 0) in SSL_SESSION_print()
133 if (!ossl_time_is_zero(x->time)) { in SSL_SESSION_print()
135 (long long)ossl_time_to_time_t(x->time)) <= 0) in SSL_SESSION_print()
138 if (!ossl_time_is_zero(x->timeout)) { in SSL_SESSION_print()
140 (long long)ossl_time2seconds(x->timeout)) <= 0) in SSL_SESSION_print()
148 if (BIO_printf(bp, "%ld (%s)\n", x->verify_result, in SSL_SESSION_print()
149 X509_verify_cert_error_string(x->verify_result)) <= 0) in SSL_SESSION_print()
153 x->flags & SSL_SESS_FLAG_EXTMS ? "yes" : "no") <= 0) in SSL_SESSION_print()
158 (unsigned int)x->ext.max_early_data) <= 0) in SSL_SESSION_print()
171 int SSL_SESSION_print_keylog(BIO *bp, const SSL_SESSION *x) in SSL_SESSION_print_keylog() argument
175 if (x == NULL) in SSL_SESSION_print_keylog()
177 if (x->session_id_length == 0 || x->master_key_length == 0) in SSL_SESSION_print_keylog()
190 for (i = 0; i < x->session_id_length; i++) { in SSL_SESSION_print_keylog()
191 if (BIO_printf(bp, "%02X", x->session_id[i]) <= 0) in SSL_SESSION_print_keylog()
196 for (i = 0; i < x->master_key_length; i++) { in SSL_SESSION_print_keylog()
197 if (BIO_printf(bp, "%02X", x->master_key[i]) <= 0) in SSL_SESSION_print_keylog()