bio(3openssl) OpenSSL bio(3openssl)NAME
bio - I/O abstraction
SYNOPSIS
#include <openssl/bio.h>
TBA
DESCRIPTION
A BIO is an I/O abstraction, it hides many of the underlying I/O details from an application. If an application uses a BIO for its I/O it
can transparently handle SSL connections, unencrypted network connections and file I/O.
There are two type of BIO, a source/sink BIO and a filter BIO.
As its name implies a source/sink BIO is a source and/or sink of data, examples include a socket BIO and a file BIO.
A filter BIO takes data from one BIO and passes it through to another, or the application. The data may be left unmodified (for example a
message digest BIO) or translated (for example an encryption BIO). The effect of a filter BIO may change according to the I/O operation it
is performing: for example an encryption BIO will encrypt data if it is being written to and decrypt data if it is being read from.
BIOs can be joined together to form a chain (a single BIO is a chain with one component). A chain normally consist of one source/sink BIO
and one or more filter BIOs. Data read from or written to the first BIO then traverses the chain to the end (normally a source/sink BIO).
SEE ALSO BIO_ctrl(3), BIO_f_base64(3), BIO_f_buffer(3), BIO_f_cipher(3), BIO_f_md(3), BIO_f_null(3), BIO_f_ssl(3), BIO_find_type(3), BIO_new(3),
BIO_new_bio_pair(3), BIO_push(3), BIO_read(3), BIO_s_accept(3), BIO_s_bio(3), BIO_s_connect(3), BIO_s_fd(3), BIO_s_file(3), BIO_s_mem(3),
BIO_s_null(3), BIO_s_socket(3), BIO_set_callback(3), BIO_should_retry(3)OpenSSL-0.9.8 Oct 11 2005 bio(3openssl)
Check Out this Related Man Page
BIO_new(3openssl) OpenSSL BIO_new(3openssl)NAME
BIO_new, BIO_set, BIO_free, BIO_vfree, BIO_free_all - BIO allocation and freeing functions
SYNOPSIS
#include <openssl/bio.h>
BIO * BIO_new(BIO_METHOD *type);
int BIO_set(BIO *a,BIO_METHOD *type);
int BIO_free(BIO *a);
void BIO_vfree(BIO *a);
void BIO_free_all(BIO *a);
DESCRIPTION
The BIO_new() function returns a new BIO using method type.
BIO_set() sets the method of an already existing BIO.
BIO_free() frees up a single BIO, BIO_vfree() also frees up a single BIO but it does not return a value. Calling BIO_free() may also have
some effect on the underlying I/O structure, for example it may close the file being referred to under certain circumstances. For more
details see the individual BIO_METHOD descriptions.
BIO_free_all() frees up an entire BIO chain, it does not halt if an error occurs freeing up an individual BIO in the chain.
RETURN VALUES
BIO_new() returns a newly created BIO or NULL if the call fails.
BIO_set(), BIO_free() return 1 for success and 0 for failure.
BIO_free_all() and BIO_vfree() do not return values.
NOTES
Some BIOs (such as memory BIOs) can be used immediately after calling BIO_new(). Others (such as file BIOs) need some additional initial-
ization, and frequently a utility function exists to create and initialize such BIOs.
If BIO_free() is called on a BIO chain it will only free one BIO resulting in a memory leak.
Calling BIO_free_all() a single BIO has the same effect as calling BIO_free() on it other than the discarded return value.
Normally the type argument is supplied by a function which returns a pointer to a BIO_METHOD. There is a naming convention for such func-
tions: a source/sink BIO is normally called BIO_s_*() and a filter BIO BIO_f_*();
EXAMPLE
Create a memory BIO:
BIO *mem = BIO_new(BIO_s_mem());
SEE ALSO
TBA
OpenSSL-0.9.8 Oct 11 2005 BIO_new(3openssl)
On my Intel PC I have 4GB HDD on which I installed Solaris. I also installed 30GB HDD but the bios does not recognize anything beyond 8GB and that is what Solaris picks up. Under WinNT is an utility that allows me to access and format the full capacity of this 30GB HDD no matter what the bios... (4 Replies)
Can someone tell me how to create a shortcut within a users home directory to point to another location?
P.S- And is shortcut the correct terminology?
Thank you! (4 Replies)
Does anyone know a good driver site. If you've heard of driverguide.com or driversearch.com please do not reccomend them because I already know them. I need to know where to get Motherboard drivers for a homemade computer. If there is any info that you need to know feel free to make a reply.
:) (5 Replies)
Monday April 07, 2008
Hello - I was wondering if someone could help me? I have some basic knowledge of awk, etc., and can create simple scripts (e.g. a search_replace.awk file) that can be called from the command line:
$ awk -f search_replace.awk <file to be searched>
I have a... (11 Replies)
Hi.. I have a seperate chromosome sequences and i wanted to parse some regions of chromosome based on start site and end site.. how can i achieve this?
For Example Chr 1 is in following format
I need regions from 2 - 10 should give me AATTCCAAA
and in a similar way 15- 25 should give... (8 Replies)
I am trying to install solaris 10-x86 as second OS on top of Windows XP. I have downloaded iso image from Oracle website and burned into bootable cd. when I loaded into CD-drive and made changes in BIOS to boot from CD. Its not reading from CD drive.
After restarting the system with CD(solaris... (8 Replies)
Hello everybody.
I have a problem of this kind: After installation of FreeBSD, my Windows XP became unreachable. Boot from CDROM is impossible. The conclusion: BIOS was damaged by GParted or some other program. Question:
Are there any Unix means of updating (repairing) BIOS ?:wall: (11 Replies)
May somebody can give me a hint. I am still using my old squeeze and it works the way I want. But my recent post about changing the owners rights, e.g. 777 or 755 anyway, it could be 644 as well. While configuring a new pc, just by chance I discovered how to enter the BIOS. And here it comes. I... (11 Replies)
I have a problem with a brand new Dell laptop. BioLinux was installed on it without making the necessary changes on BIOS. The installation was completed successfully but the BIOS system cant find the OS after rebooting the machine.
I have tried to modify the BIOS setting with no luck this far. I... (7 Replies)
Hi,
I am working in UEFI EDK2 Bios source. We created a platform related new package in the EDK2 source. I find a strange issue with the platform related code we added.
When I did source level debugging I noticed the
local variable in a C function is not getting created in stack when its... (6 Replies)
I have recently upgraded my Supermicro X10SAT motherboard. I have also a SSD with a Windows10 partition and a Solaris 11.3 partition. Upon boot I press F11 and choose which partition I want to boot into. But after the bios upgrade, I cannot see the Solaris partition when I press "F11" to choose... (9 Replies)
I need to update a setting in the BIOS on our SCO Openserver 5.0.7 system and all I can bring up about it says I need to create a dos bootable disk of some sort. The problem is that it doesn't seem like dos is loading up fully. I created the dos bootable thumb drive on a Windows PC using Rufus... (7 Replies)
I have two fasta files as shown below,
File:1
>Contig_1:90600-91187
AAGGCCATCAAGGACGTGGATGAGGTCGTCAAGGGCAAGGAACAGGAATTGATGACGGTC
>Contig_98:35323-35886
GACGAAGCGCTCGCCAAGGCCGAAGAAGAAGGCCTGGATCTGGTCGAAATCCAGCCGCAG
>Contig_24:26615-28387... (11 Replies)