Lines Matching refs:bio
483 static long ssl_print_cb(BIO *bio,int cmd,const char *argp,int argi,long argl,long ret)
487 out=(BIO *)BIO_get_callback_arg(bio);
492 bio, argp, argi, ret, ret);
498 bio, argp, argi, ret, ret);
568 static int ssl_print_connection_info(BIO *bio, SSL *ssl)
573 BIO_printf(bio,"Transport Protocol :%s\n", SSL_get_version(ssl));
576 BIO_printf(bio,"Cipher Suite Protocol :%s\n", SSL_CIPHER_get_version(c));
577 BIO_printf(bio,"Cipher Suite Name :%s\n",SSL_CIPHER_get_name(c));
580 BIO_printf(bio,"Cipher Suite Cipher Bits:%d (%d)\n",bits,alg_bits);
585 static void ssl_print_cert_info(BIO *bio, X509 *cert)
591 BIO_printf(bio, "Certificate version: %ld\n", X509_get_version(cert)+1);
592 BIO_printf(bio,"Valid from: ");
593 ASN1_UTCTIME_print(bio, X509_get_notBefore(cert));
594 BIO_printf(bio,"\n");
596 BIO_printf(bio,"Valid to : ");
597 ASN1_UTCTIME_print(bio, X509_get_notAfter(cert));
598 BIO_printf(bio,"\n");
601 BIO_printf(bio,"Public key is %d bits\n",
607 BIO_printf(bio,"The issuer name is %s\n", buf);
611 BIO_printf(bio,"The subject name is %s\n", buf);
614 BIO_printf(bio, "Extension Count: %d\n", X509_get_ext_count(cert));
1277 BIO *bio;
1287 bio = BIO_new_socket(fd, BIO_NOCLOSE);
1288 SSL_set_bio(c->ssl, bio, bio);
1291 BIO_set_callback(bio, ssl_print_cb);
1292 BIO_set_callback_arg(bio, (void *)bio_err);