Lines Matching refs:mem
320 BIO *mem, const char *label, int num)
324 BIO *mem, const char *label, int num) in push_certinfo() argument
327 long len = BIO_get_mem_data(mem, &ptr); in push_certinfo()
329 (void)BIO_reset(mem); in push_certinfo()
334 BIO *mem, in pubkey_show() argument
345 BN_print(mem, bn); in pubkey_show()
346 return push_certinfo(data, mem, namebuf, num); in pubkey_show()
351 pubkey_show(data, mem, _num, #_type, #_name, _name)
357 pubkey_show(data, mem, _num, #_type, #_name, _type->_name); \
422 BIO *mem; in ossl_certchain() local
437 mem = BIO_new(BIO_s_mem()); in ossl_certchain()
438 if(!mem) in ossl_certchain()
448 X509_NAME_print_ex(mem, X509_get_subject_name(x), 0, XN_FLAG_ONELINE); in ossl_certchain()
449 result = push_certinfo(data, mem, "Subject", i); in ossl_certchain()
453 X509_NAME_print_ex(mem, X509_get_issuer_name(x), 0, XN_FLAG_ONELINE); in ossl_certchain()
454 result = push_certinfo(data, mem, "Issuer", i); in ossl_certchain()
458 BIO_printf(mem, "%lx", X509_get_version(x)); in ossl_certchain()
459 result = push_certinfo(data, mem, "Version", i); in ossl_certchain()
465 BIO_puts(mem, "-"); in ossl_certchain()
467 BIO_printf(mem, "%02x", num->data[j]); in ossl_certchain()
468 result = push_certinfo(data, mem, "Serial Number", i); in ossl_certchain()
482 i2a_ASN1_OBJECT(mem, sigalgoid); in ossl_certchain()
483 result = push_certinfo(data, mem, "Signature Algorithm", i); in ossl_certchain()
492 i2a_ASN1_OBJECT(mem, pubkeyoid); in ossl_certchain()
493 result = push_certinfo(data, mem, "Public Key Algorithm", i); in ossl_certchain()
508 i2a_ASN1_OBJECT(mem, cinf->signature->algorithm); in ossl_certchain()
509 result = push_certinfo(data, mem, "Signature Algorithm", i); in ossl_certchain()
512 i2a_ASN1_OBJECT(mem, cinf->key->algor->algorithm); in ossl_certchain()
513 result = push_certinfo(data, mem, "Public Key Algorithm", i); in ossl_certchain()
526 ASN1_TIME_print(mem, X509_get0_notBefore(x)); in ossl_certchain()
527 result = push_certinfo(data, mem, "Start date", i); in ossl_certchain()
531 ASN1_TIME_print(mem, X509_get0_notAfter(x)); in ossl_certchain()
532 result = push_certinfo(data, mem, "Expire date", i); in ossl_certchain()
567 BIO_printf(mem, "%d", n ? BN_num_bits(n) : 0); in ossl_certchain()
569 BIO_printf(mem, "%d", rsa->n ? BN_num_bits(rsa->n) : 0); in ossl_certchain()
571 result = push_certinfo(data, mem, "RSA Public Key", i); in ossl_certchain()
666 BIO_printf(mem, "%02x:", psig->data[j]); in ossl_certchain()
667 result = push_certinfo(data, mem, "Signature", i); in ossl_certchain()
671 PEM_write_bio_X509(mem, x); in ossl_certchain()
672 result = push_certinfo(data, mem, "Cert", i); in ossl_certchain()
676 BIO_free(mem); in ossl_certchain()
4533 BIO *mem = BIO_new(BIO_s_mem()); local
4541 if(!mem) {
4556 BIO_free(mem);
4574 ASN1_TIME_print(mem, X509_get0_notBefore(octx->server_cert));
4575 len = BIO_get_mem_data(mem, (char **) &ptr);
4577 (void)BIO_reset(mem);
4579 ASN1_TIME_print(mem, X509_get0_notAfter(octx->server_cert));
4580 len = BIO_get_mem_data(mem, (char **) &ptr);
4582 (void)BIO_reset(mem);
4586 BIO_free(mem);
4913 const void *mem, argument
4934 rc = SSL_write(octx->ssl, mem, memlen);