Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
BIO_find_type, BIO_next, BIO_method_type, BIO_method_name — BIO chain traversalSYNOPSIS
#include <openssl/bio.h>BIO_find_type(BIO *bio, int type);
BIO_next(BIO *bio);
BIO_method_type(const BIO *bio);
BIO_method_name(const BIO *bio);
#define BIO_TYPE_START 128
DESCRIPTION
BIO_find_type() searches for a BIO matching the given type in the chain starting at bio. If the least significant byte of the type argument is non-zero, only exact matches of the type are accepted. Otherwise, a match only requires that any of the bits set in the type argument is also set in the candidate BIO.
type constant |
name string |
BIO_METHOD |
BIO_TYPE_ACCEPT | socket accept | BIO_s_accept(3) |
BIO_TYPE_CONNECT | socket connect | BIO_s_connect(3) |
BIO_TYPE_DGRAM | datagram socket | BIO_s_datagram(3) |
BIO_TYPE_FD | file descriptor | BIO_s_fd(3) |
BIO_TYPE_SOCKET | socket | BIO_s_socket(3) |
type constant |
name string |
BIO_METHOD |
BIO_TYPE_BIO | BIO pair | BIO_s_bio(3) |
BIO_TYPE_FILE | FILE pointer | BIO_s_file(3) |
BIO_TYPE_MEM | memory buffer | BIO_s_mem(3) |
BIO_TYPE_NULL | NULL | BIO_s_null(3) |
type constant |
name string |
BIO_METHOD |
BIO_TYPE_BASE64 | base64 encoding | BIO_f_base64(3) |
BIO_TYPE_BUFFER | buffer | BIO_f_buffer(3) |
BIO_TYPE_CIPHER | cipher | BIO_f_cipher(3) |
BIO_TYPE_MD | message digest | BIO_f_md(3) |
BIO_TYPE_NULL_FILTER | NULL filter | BIO_f_null(3) |
BIO_TYPE_SSL | ssl | BIO_f_ssl(3) |
RETURN VALUES
BIO_find_type() returns the next matching BIO or NULL if bio is a NULL pointer or if no matching BIO is found.EXAMPLES
Traverse a chain looking for digest BIOs:BIO *btmp; btmp = in_bio; /* in_bio is the chain to search through */ while (btmp != NULL) { btmp = BIO_find_type(btmp, BIO_TYPE_MD); if (btmp == NULL) break; /* Not found */ /* btmp is a digest BIO, do something with it ... */ ... btmp = BIO_next(btmp); }