Lines Matching defs:bp
32 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
41 if (BIO_puts(bp, "SSL-Session:\n") <= 0)
44 if (BIO_printf(bp, " Protocol : %s\n", s) <= 0)
49 if (BIO_printf(bp, " Cipher : %06lX\n",
53 if (BIO_printf(bp, " Cipher : %04lX\n",
58 if (BIO_printf(bp, " Cipher : %s\n",
63 if (BIO_puts(bp, " Session-ID: ") <= 0)
66 if (BIO_printf(bp, "%02X", x->session_id[i]) <= 0)
69 if (BIO_puts(bp, "\n Session-ID-ctx: ") <= 0)
72 if (BIO_printf(bp, "%02X", x->sid_ctx[i]) <= 0)
76 if (BIO_puts(bp, "\n Resumption PSK: ") <= 0)
78 } else if (BIO_puts(bp, "\n Master-Key: ") <= 0)
81 if (BIO_printf(bp, "%02X", x->master_key[i]) <= 0)
85 if (BIO_puts(bp, "\n PSK identity: ") <= 0)
87 if (BIO_printf(bp, "%s", x->psk_identity ? x->psk_identity : "None") <= 0)
89 if (BIO_puts(bp, "\n PSK identity hint: ") <= 0)
92 (bp, "%s", x->psk_identity_hint ? x->psk_identity_hint : "None") <= 0)
96 if (BIO_puts(bp, "\n SRP username: ") <= 0)
98 if (BIO_printf(bp, "%s", x->srp_username ? x->srp_username : "None") <= 0)
102 if (BIO_printf(bp,
108 if (BIO_puts(bp, "\n TLS session ticket:\n") <= 0)
111 (bp, (const char *)x->ext.tick, (int)x->ext.ticklen, 4)
122 if (BIO_printf(bp, "\n Compression: %d", x->compress_meth) <= 0)
125 if (BIO_printf(bp, "\n Compression: %d (%s)", comp->id,
132 if (BIO_printf(bp, "\n Start Time: %lld", (long long)x->time) <= 0)
136 if (BIO_printf(bp, "\n Timeout : %lld (sec)", (long long)x->timeout) <= 0)
139 if (BIO_puts(bp, "\n") <= 0)
142 if (BIO_puts(bp, " Verify return code: ") <= 0)
144 if (BIO_printf(bp, "%ld (%s)\n", x->verify_result,
148 if (BIO_printf(bp, " Extended master secret: %s\n",
153 if (BIO_printf(bp, " Max Early Data: %u\n",
167 int SSL_SESSION_print_keylog(BIO *bp, const SSL_SESSION *x)
181 if (BIO_puts(bp, "RSA ") <= 0)
184 if (BIO_puts(bp, "Session-ID:") <= 0)
187 if (BIO_printf(bp, "%02X", x->session_id[i]) <= 0)
190 if (BIO_puts(bp, " Master-Key:") <= 0)
193 if (BIO_printf(bp, "%02X", x->master_key[i]) <= 0)
196 if (BIO_puts(bp, "\n") <= 0)