Lines Matching defs:chain
21 * This program sets up a chain of BIO_f_filter() on top of bio_out, how
24 * text from bio_in and prints it out through the BIO chain.
40 static BIO **chain = NULL;
53 * idx is the index to the BIO_f_filter chain(), where 0 is closest
86 if (!BIO_write_ex(chain[amount - 1], buf, bytes_in, &bytes))
99 chain = OPENSSL_zalloc(sizeof(*chain) * n);
101 if (chain != NULL) {
112 chain[i] = BIO_push(curr, next);
113 if (chain[i] == NULL)
115 next = chain[i];
118 return chain != NULL;
120 /* Free the chain we built up */
122 OPENSSL_free(chain);
128 if (chain != NULL) {
129 BIO_free_all(chain[amount - 1]);
130 OPENSSL_free(chain);
177 BIO_printf(bio_err, "%s: failed setting up filter chain",
183 if (chain == NULL) {
214 if (BIO_set_indent(chain[idx], (long)indent) <= 0) {
221 if (chain == NULL) {
245 if (BIO_set_prefix(chain[idx], colon) <= 0) {