Lines Matching defs:out
116 static int capi_list_providers(CAPI_CTX *ctx, BIO *out);
117 static int capi_list_containers(CAPI_CTX *ctx, BIO *out);
118 int capi_list_certs(CAPI_CTX *ctx, BIO *out, char *storename);
290 BIO *out;
297 out = BIO_new_fp(stdout, BIO_NOCLOSE);
298 if (out == NULL) {
304 ret = capi_list_providers(ctx, out);
308 ret = capi_list_certs(ctx, out, NULL);
312 ret = capi_list_certs(ctx, out, p);
316 ret = capi_list_containers(ctx, out);
374 BIO_free(out);
393 BIO_free(out);
1086 BIO *out;
1090 out = BIO_new_file(ctx->debug_file, "a+");
1091 if (out == NULL) {
1095 BIO_vprintf(out, format, argptr);
1096 BIO_free(out);
1196 static int capi_list_providers(CAPI_CTX *ctx, BIO *out)
1202 BIO_printf(out, "Available CSPs:\n");
1209 BIO_printf(out, "%lu. %s, type %lu\n", idx, provname, ptype);
1215 static int capi_list_containers(CAPI_CTX *ctx, BIO *out)
1284 BIO_printf(out, "%lu. %s\n", idx, cname);
1322 static void capi_dump_prov_info(CAPI_CTX *ctx, BIO *out,
1328 BIO_printf(out, " No Private Key\n");
1336 BIO_printf(out, " Private Key Info:\n");
1337 BIO_printf(out, " Provider Name: %s, Provider Type %lu\n", provname,
1339 BIO_printf(out, " Container Name: %s, Key Type %lu\n", contname,
1371 static void capi_dump_cert(CAPI_CTX *ctx, BIO *out, PCCERT_CONTEXT cert)
1380 BIO_printf(out, " Friendly Name \"%s\"\n", fname);
1383 BIO_printf(out, " <No Friendly Name>\n");
1390 BIO_printf(out, " <Can't parse certificate>\n");
1392 BIO_printf(out, " Subject: ");
1393 X509_NAME_print_ex(out, X509_get_subject_name(x), 0, XN_FLAG_ONELINE);
1394 BIO_printf(out, "\n Issuer: ");
1395 X509_NAME_print_ex(out, X509_get_issuer_name(x), 0, XN_FLAG_ONELINE);
1396 BIO_printf(out, "\n");
1399 X509_print_ex(out, x, XN_FLAG_ONELINE, 0);
1404 capi_dump_prov_info(ctx, out, pinfo);
1409 PEM_write_bio_X509(out, x);
1432 int capi_list_certs(CAPI_CTX *ctx, BIO *out, char *id)
1454 capi_dump_cert(ctx, out, cert);
1461 BIO_printf(out, "Certificate %d\n", idx);
1462 capi_dump_cert(ctx, out, cert);