Lines Matching refs:bp

107 int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
113 if (BIO_puts(bp,"SSL-Session:\n") <= 0) goto err;
130 if (BIO_printf(bp," Protocol : %s\n",s) <= 0) goto err;
136 if (BIO_printf(bp," Cipher : %06lX\n",x->cipher_id&0xffffff) <= 0)
141 if (BIO_printf(bp," Cipher : %04lX\n",x->cipher_id&0xffff) <= 0)
147 if (BIO_printf(bp," Cipher : %s\n",((x->cipher == NULL)?"unknown":x->cipher->name)) <= 0)
150 if (BIO_puts(bp," Session-ID: ") <= 0) goto err;
153 if (BIO_printf(bp,"%02X",x->session_id[i]) <= 0) goto err;
155 if (BIO_puts(bp,"\n Session-ID-ctx: ") <= 0) goto err;
158 if (BIO_printf(bp,"%02X",x->sid_ctx[i]) <= 0)
161 if (BIO_puts(bp,"\n Master-Key: ") <= 0) goto err;
164 if (BIO_printf(bp,"%02X",x->master_key[i]) <= 0) goto err;
166 if (BIO_puts(bp,"\n Key-Arg : ") <= 0) goto err;
169 if (BIO_puts(bp,"None") <= 0) goto err;
174 if (BIO_printf(bp,"%02X",x->key_arg[i]) <= 0) goto err;
177 if (BIO_puts(bp,"\n Krb5 Principal: ") <= 0) goto err;
180 if (BIO_puts(bp,"None") <= 0) goto err;
185 if (BIO_printf(bp,"%02X",x->krb5_client_princ[i]) <= 0) goto err;
189 if (BIO_puts(bp,"\n PSK identity: ") <= 0) goto err;
190 if (BIO_printf(bp, "%s", x->psk_identity ? x->psk_identity : "None") <= 0) goto err;
191 if (BIO_puts(bp,"\n PSK identity hint: ") <= 0) goto err;
192 if (BIO_printf(bp, "%s", x->psk_identity_hint ? x->psk_identity_hint : "None") <= 0) goto err;
195 if (BIO_puts(bp,"\n SRP username: ") <= 0) goto err;
196 if (BIO_printf(bp, "%s", x->srp_username ? x->srp_username : "None") <= 0) goto err;
201 if (BIO_printf(bp,
208 if (BIO_puts(bp, "\n TLS session ticket:\n") <= 0) goto err;
209 if (BIO_dump_indent(bp, (char *)x->tlsext_tick, x->tlsext_ticklen, 4) <= 0)
222 if (BIO_printf(bp,"\n Compression: %d",x->compress_meth) <= 0) goto err;
226 if (BIO_printf(bp,"\n Compression: %d (%s)", comp->id,comp->method->name) <= 0) goto err;
232 if (BIO_printf(bp, "\n Start Time: %ld",x->time) <= 0) goto err;
236 if (BIO_printf(bp, "\n Timeout : %ld (sec)",x->timeout) <= 0) goto err;
238 if (BIO_puts(bp,"\n") <= 0) goto err;
240 if (BIO_puts(bp, " Verify return code: ") <= 0) goto err;
241 if (BIO_printf(bp, "%ld (%s)\n", x->verify_result,