BIO_FIND_TYPE - Online Linux Manual Page

Section : 3
Updated : 2021-03-26
Source : 1.1.1k
Note : OpenSSL

NAMEBIO_find_type, BIO_next, BIO_method_type − BIO chain traversal

SYNOPSIS​ #include <openssl/bio.h> ​ ​ BIO *BIO_find_type(BIO *b, int bio_type); ​ BIO *BIO_next(BIO *b); ​ int BIO_method_type(const BIO *b);

DESCRIPTIONThe BIO_find_type() searches for a BIO of a given type in a chain, starting at BIO b. If type is a specific type (such as BIO_TYPE_MEM) then a search is made for a BIO of that type. If type is a general type (such as ​BIO_TYPE_SOURCE_SINK) then the next matching BIO of the given general type is searched for. BIO_find_type() returns the next matching BIO or NULL if none is found. The following general types are defined: ​BIO_TYPE_DESCRIPTOR, BIO_TYPE_FILTER, and BIO_TYPE_SOURCE_SINK. For a list of the specific types, see the openssl/bio.h header file. BIO_next() returns the next BIO in a chain. It can be used to traverse all BIOs in a chain or used in conjunction with BIO_find_type() to find all BIOs of a certain type. BIO_method_type() returns the type of a BIO.

RETURN VALUESBIO_find_type() returns a matching BIO or NULL for no match. BIO_next() returns the next BIO in a chain. BIO_method_type() returns the type of the BIO b.

EXAMPLESTraverse a chain looking for digest BIOs: ​ BIO *btmp; ​ ​ btmp = in_bio; /* in_bio is chain to search through */ ​ do { ​ 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); ​ } while (btmp);

COPYRIGHTCopyright 2000−2019 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   8,621 byte
man-BIO_find_type.3sslBuild   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   34 / 2,298,657
Visitor ID   :     :  
Visitor IP   :   216.73.217.6   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   20   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|254|B___IO_find_type.3ssl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|160|B___IO_find_type.3ssl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|254|B___IO_find_type.3ssl|43|br══─}─══|'br══─}─══ )         (htmlprn|160|B___IO_find_type.3ssl|43|'br══─}─══ |'br══─}─══ )