| RSA BSAFE Cert-C Micro Edition |
The power of PKI for the smallest of devices |
#include "r_com.h"
#include "r_vararg.h"
#include "bio_err.h"
Go to the source code of this file.
Data Structures | |
| BIO_METHOD | |
| This structure stores pointers to functions that implement the BIO methods. More... | |
| BIO | |
| This structure contains the data and BIO method structure. More... | |
Defines | |
| #define | BIO_TYPE_FILTER |
| Base type indicating that a BIO of this type modifies the data written to, or read from a source/sink BIO. More... | |
| #define | BIO_TYPE_SOURCE_SINK |
| Base type indicating that a BIO of this type takes data from a device, and/or sends data to a device (data exchange). More... | |
| #define | BIO_TYPE_DESCRIPTOR |
| Base type that may be combined with the source/sink base type to indicate that the BIO uses a file descriptor. More... | |
| #define | BIO_TYPE_DGRAM |
| Base type that may be combined with the source/sink base type to indicate that the BIO is a datagram socket. | |
| #define | BIO_TYPE_NONE |
| Indicates that the BIO does not have a defined type. | |
| #define | BIO_TYPE_MEM |
| Indicates that the BIO is a memory buffer source/sink BIO. | |
| #define | BIO_TYPE_FILE |
| Indicates that the BIO is a file pointer source/sink BIO. | |
| #define | BIO_TYPE_FD |
| Indicates that the BIO is a file descriptor source/sink BIO. | |
| #define | BIO_TYPE_NULL |
| Indicates that the BIO is a null source/sink BIO. More... | |
| #define | BIO_TYPE_BUFFER |
| Indicates that the BIO is a data buffer filter BIO. More... | |
| #define | BIO_TYPE_BASE64 |
| Indicates that the BIO is a data base 64 filter BIO. | |
| #define | BIO_TYPE_NULL_FILTER |
| Indicates that the BIO is a null filter BIO. More... | |
| #define | BIO_CTRL_RESET |
| Rewinds to the start of input or output, and resets the state of the BIO. More... | |
| #define | BIO_CTRL_EOF |
| Checks if the BIO has reached the End-of-File (EOF) marker. | |
| #define | BIO_CTRL_INFO |
| Retrieves extra information from the BIO. More... | |
| #define | BIO_CTRL_SET |
| Sets the BIO I/O type. | |
| #define | BIO_CTRL_GET |
| Retrieves the BIO I/O type. | |
| #define | BIO_CTRL_PUSH |
| Internal control used for BIO stack manipulation. | |
| #define | BIO_CTRL_POP |
| Internal control used for BIO stack manipulation. | |
| #define | BIO_CTRL_GET_CLOSE |
| Gets the state of the BIO shutdown flag used by BIO_free(). More... | |
| #define | BIO_CTRL_SET_CLOSE |
| Sets the state of the BIO shutdown flag used by BIO_free(). More... | |
| #define | BIO_CTRL_PENDING |
| Checks if there is more data buffered in the BIO to be used. | |
| #define | BIO_CTRL_FLUSH |
| Flushes any remaining data from the BIO data buffer. | |
| #define | BIO_CTRL_DUP |
| Extra information to be used for a duplicated BIO. | |
| #define | BIO_CTRL_WPENDING |
| Retrieves the number of bytes in the BIO data buffer pending to write. | |
| #define | BIO_CTRL_SET_CALLBACK |
| Sets the BIO callback function. | |
| #define | BIO_CTRL_GET_CALLBACK |
| Retrieves pointer to BIO callback function. | |
| #define | BIO_CTRL_SET_FILENAME |
| Sets the filename to be used by the file BIO. | |
| #define | BIO_NOCLOSE |
| Indicates not to close the Input/Output stream on BIO_free(). More... | |
| #define | BIO_CLOSE |
| Indicates to close the Input/Output stream on BIO_free(). More... | |
| #define | BIO_FLAGS_READ |
| Indicates that the BIO has data to read. | |
| #define | BIO_FLAGS_WRITE |
| Indicates that the BIO has data to write. | |
| #define | BIO_FLAGS_IO_SPECIAL |
| Indicates that the BIO performs custom socket I/O. More... | |
| #define | BIO_FLAGS_RWS |
| Indicates a combination of BIO_FLAGS_READ, BIO_FLAGS_WRITE and BIO_FLAGS_IO_SPECIAL. | |
| #define | BIO_FLAGS_SHOULD_RETRY |
| Indicates whether a retry on write or read should be attempted for the BIO. More... | |
| #define | BIO_FLAGS_FLUSH_ON_WRITE |
| Indicates that the BIO should flush the data buffer on the write operation. | |
| #define | BIO_RR_SSL_X509_LOOKUP |
| Returned from the SSL BIO when the certificate retrieval code had an error. | |
| #define | BIO_RR_CONNECT |
| Returned from the connect BIO when a connect would have blocked. | |
| #define | BIO_RR_ACCEPT |
| Returned from the accept BIO, probably an interrupt. | |
| #define | BIO_CB_FREE |
| Indicates that the BIO callback function was called during an execution of BIO_free(). | |
| #define | BIO_CB_READ |
| Indicates that the BIO callback function was called during an execution of BIO_read(). | |
| #define | BIO_CB_WRITE |
| Indicates that the BIO callback function was called during an execution of BIO_write(). | |
| #define | BIO_CB_PUTS |
| Indicates that the BIO callback function was called during an execution of BIO_puts(). | |
| #define | BIO_CB_GETS |
| Indicates that the BIO callback function was called during an execution of BIO_gets(). | |
| #define | BIO_CB_CTRL |
| Indicates that the BIO callback function was called during an execution of BIO_ctrl(). | |
| #define | BIO_CB_RETURN |
| Indicates that the BIO callback function was called after the execution of the underlying operation, rather than before. More... | |
| #define | BIO_cb_pre(state) |
| Indicates whether the BIO callback is called before the specified state. | |
| #define | BIO_cb_post(state) |
| Indicates whether the BIO callback is called after the specified state. | |
| #define | BIO_PRINT_HEX_REVERSE |
| BIO_print_hex() flag. More... | |
Typedefs | |
| typedef struct bio_st | BIO |
| BIO Object Type Identifier. | |
| typedef struct bio_method_st | BIO_METHOD |
| This structure stores pointers to functions that implement the BIO methods. More... | |
| typedef long | R_BIO_CB_FUNC_T (BIO *bio, int cmd, char *argp, int argi, long argl, long ret) |
| Used for creating user defined debugging routines or surrender functions. More... | |
Functions | |
| long | BIO_set_fp (BIO *bio, char *fp, long flags) |
| Sets the file pointer fp to be used with the BIO bio. More... | |
| long | BIO_get_fp (BIO *bio, char *fpp) |
| Returns the file pointer associated with the BIO bio. More... | |
| int | BIO_seek (BIO *bio, long offset) |
| Moves the current position in the BIO bio. More... | |
| int | BIO_tell (BIO *bio) |
| Retrieves the current position in the BIO bio. More... | |
| long | BIO_read_filename (BIO *bio, char *name) |
| Opens the file name name for reading on the BIO bio. More... | |
| long | BIO_write_filename (BIO *bio, char *name) |
| Opens the file name name for writing on the BIO bio. More... | |
| long | BIO_append_filename (BIO *bio, char *name) |
| Opens the file name name for writing on the BIO bio after End-of-File (EOF). More... | |
| long | BIO_rw_filename (BIO *bio, char *name) |
| Opens the file name name on the BIO bio for both reading and writing. More... | |
| int | BIO_reset (BIO *bio) |
| Resets the BIO bio to its initial state. More... | |
| int | BIO_set_close (BIO *bio, long mode) |
| Sets the close mode for the BIO bio. More... | |
| int | BIO_get_close (BIO *bio) |
| Returns the close flag for the BIO bio. More... | |
| int | BIO_flush (BIO *bio) |
| Flushes any data stored in any output buffers of the BIO stack bio. More... | |
| BIO_METHOD* | BIO_s_file (void) |
| Returns a reference to the static BIO_METHOD used by a file source sink BIO. More... | |
| BIO* | BIO_new_file (char *filename, char *mode) |
| Creates a file BIO descriptor filename with a file opening mode of mode. More... | |
| BIO* | BIO_new_fp (FILE *stream, int close_flag) |
| Creates a new file BIO descriptor file pointer. More... | |
| BIO* | BIO_new (BIO_METHOD *method) |
| Creates a new BIO and associates the method type against the structure. More... | |
| int | BIO_free (BIO *bio) |
| Frees the BIO bio. More... | |
| void | BIO_free_all (BIO *bio) |
| Frees all BIOs in the BIO stack bio. More... | |
| int | BIO_read (BIO *b, char *out, int outl) |
| Reads data through the BIO bio. More... | |
| int | BIO_gets (BIO *b, char *in, int inl) |
| Reads a string from the BIO bio into the specified buffer in. More... | |
| int | BIO_write (BIO *b, char *in, int inl) |
| Writes data through the BIO bio. More... | |
| int | BIO_puts (BIO *b, char *in) |
| Writes the NULL terminated string contained in in to the BIO bio. More... | |
| long | BIO_ctrl (BIO *bio, int cmd, long larg, char *parg) |
| Provides the replaceable point for all implementation specific behavior for I/O. More... | |
| BIO* | BIO_push (BIO *bio, BIO *stack) |
| Pushes the BIO bio onto the existing BIO stack and returns a pointer to the new stack. More... | |
| BIO* | BIO_pop (BIO *bio) |
| Pops the uppermost BIO bio from the BIO stack and returns the remaining BIO stack. More... | |
| BIO* | BIO_find_type (BIO *bio, int type) |
| Returns the BIOs for the BIO bio and type. More... | |
| BIO* | BIO_get_retry_BIO (BIO *bio, int *reason) |
| Walks the BIO stack bio and returns the first BIO found that has a retry error set and the reason why the operation should be retried. More... | |
| BIO* | BIO_dup_chain (BIO *in) |
| Iterates down the BIO stack bio and creates a new copy of each BIO. More... | |
| long MS_CALLBACK | BIO_debug_cb (BIO *bio, int cmd, char *argp, int argi, long argl, long ret) |
| Sets a prepared callback for the BIO structure bio to output debug information. More... | |
| BIO_METHOD* | BIO_s_mem (void) |
| Returns a reference to the static BIO_METHOD used by a memory source sink BIO. | |
| BIO_METHOD* | BIO_s_null (void) |
| Returns a reference to the static BIO_METHOD used by a NULL source sink BIO. More... | |
| BIO_METHOD* | BIO_f_null (void) |
| Returns a reference to the static BIO_METHOD used by a NULL filter BIO. More... | |
| BIO_METHOD* | BIO_f_buffer (void) |
| Returns a reference to the static BIO_METHOD used by a buffer filter BIO. More... | |
| int | BIO_dump (BIO *bio, unsigned char *bytes, int len) |
| Dumps the contents of bytes to the BIO structure bio in hex and ASCII removing any trailing spaces or NULL characters. More... | |
| int | BIO_dump_format (BIO *bio, unsigned char *data, int len, int format, int separator, int indent, int wrap) |
| Specifies the format for dumping the contents of the BIO structure bio. More... | |
| BIO* | BIO_new_mem (void) |
| Creates a memory BIO where all read and write operations refer to an internal memory buffer. More... | |
| void | BIO_copy_next_retry (BIO *bio) |
| Copies the retry flags and reason from the next BIO in the BIO stack to this BIO bio. More... | |
| void | BIO_reference_inc (BIO *bio) |
| Increments the reference count for the BIO bio. More... | |
| void | BIO_set_flags (BIO *bio, int f) |
| Sets the flags indicating the current state of the BIO bio. More... | |
| int | BIO_get_flags (BIO *bio) |
| Returns the flags indicating the current state of the BIO bio. More... | |
| void | BIO_clear_flags (BIO *bio, int f) |
| Clears the flags used internally by the BIO bio. More... | |
| void | BIO_clear_retry_flags (BIO *bio) |
| Clears the flags field for BIO_FLAGS_RWS and BIO_FLAGS_SHOULD_RETRY for the BIO bio. More... | |
| int | BIO_should_read (BIO *bio) |
| Indicates whether the last read operation should be retried for the BIO bio. More... | |
| int | BIO_should_write (BIO *bio) |
| Indicates whether the last write operation should be retried for the BIO bio. More... | |
| int | BIO_should_io_special (BIO *bio) |
| Indicates a BIO-specific retry reason caused the transitory error for the BIO bio. More... | |
| int | BIO_should_retry (BIO *bio) |
| Indicates whether the last I/O operation (read or write) should be retried for the BIO bio. More... | |
| int | BIO_get_retry_reason (BIO *bio) |
| Returns the settings from the retry reason field for the BIO bio. More... | |
| char* | BIO_method_name (BIO *bio) |
| Returns the name field for the method structure for the BIO bio. More... | |
| int | BIO_method_type (BIO *bio) |
| Returns the numeric type of the method structure for the BIO bio. More... | |
| void | BIO_set_cb (BIO *bio, R_BIO_CB_FUNC_T *cb) |
| Sets a user-defined callback for the BIO bio. More... | |
| void | BIO_set_cb_arg (BIO *bio, char *arg) |
| Sets an extra user-defined argument against the BIO bio that developers may use in the callback. More... | |
| void | BIO_set_bio_cb (BIO *bio, R_BIO_CB_FUNC_T *cb, char *arg) |
| Sets the BIO callback and an argument against the BIO bio. More... | |
| char* | BIO_get_cb_arg (BIO *bio) |
| Returns a pointer to the user-defined data for the user-defined callback that exists within the BIO bio. More... | |
| R_BIO_CB_FUNC_T* | BIO_get_cb (BIO *bio) |
| Returns the user-defined callback function for the BIO bio if a callback function is defined, otherwise it returns NULL. More... | |
| int | BIO_open_file (BIO *bio, char *name, char *mode) |
| Opens the file name with a file opening mode of mode. More... | |
| int | BIO_print_hex (BIO *bio, unsigned char *bytes, int len, int flags) |
| Prints an array of bytes in hexadecimal format to the BIO bio. More... | |
| int | BIO_printf (BIO *bio,...) |
| Provides the equivalent of the standard C runtime printf function where the output is directed to the BIO structure bio with a format string. More... | |
|
|
This structure stores pointers to functions that implement the BIO methods. Each BIO has seven methods. A NULL pointer indicates that the method is not implemented. Similarly, if the BIO does not implement a method, the pointer is NULL. |