RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

Print Functions

This section documents the functions used for formatting the printing of data to a BIO.

Defines

#define BIO_PRINT_HEX_REVERSE
 The BIO_print_hex() flag required for printing little-endian numbers. More...


Functions

int R_CDECL 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 run time printf function where the output is directed to the BIO structure bio with a format string. More...


Define Documentation

#define BIO_PRINT_HEX_REVERSE
 

The BIO_print_hex() flag required for printing little-endian numbers. Set flag to 0 for normal or 1 for reverse print.


Function Documentation

int R_CDECL BIO_print_hex BIO   bio,
unsigned char *    bytes,
int    len,
int    flags
;
 

Prints an array of Bytes in hexadecimal format to the BIO bio.

Parameters:
bio [In] A reference to the BIO.
bytes [In] The Bytes to print.
len [In] The number of Bytes.
flags [In] The flags. One of:
0 indicates to print as normal.
BIO_PRINT_HEX_REVERSE to print Bytes in reverse order.
Returns:
>0 indicates the number of Bytes output.
<= 0 indicates error.
note.gif
BIO_PRINT_HEX_REVERSE is used when printing an array of Bytes representing a large number (if stored in big-endian format).
See also:
BIO_printf().

int BIO_printf BIO   bio,
...   
;
 

Provides the equivalent of the standard C run time printf function where the output is directed to the BIO structure bio with a format string.

Parameters:
bio [In] The BIO reference.
Returns:
1 indicates success.
<= 0 indicates error.
note.gif
This function has a maximum output of 1024 characters. Formatted outputs greater than this length should be submitted in multiple calls to this function. In builds using the TINYCODE define, the maximum output buffer is 256 characters.
See also:
BIO_print_hex().
Samples:
app_cache.c, bio_client.c, bio_server.c, cache_server.c, cert.c, cert_smpl.c, cm.c, cm_adv.c, cm_dgst.c, cm_env.c, cm_env_sm.c, cm_env_strm.c, cm_env_strm_membio.c, cm_open.c, cm_open_strm.c, cm_open_strm_cb.c, cm_open_strm_membio.c, cm_sign.c, cm_sign_dgst.c, cm_sign_sm.c, cm_sign_strm.c, cm_smpl.c, cm_strm.c, cm_type.c, cm_vfy_strm_cb.c, evpkey2rpkey.c, ext.c, frombuf.c, nbio_client.c, nbio_server.c, ocsp_req_create.c, ocsp_req_print.c, ocsp_resp_ext.c, ocsp_resp_find_key.c, ocsp_resp_print.c, ocsp_resp_vfy.c, p7ssl_client.c, p7ssl_server.c, pkey.c, r_asym.c, r_asym_buf.c, r_asym_items.c, r_ciph.c, r_dgst.c, r_gnrt.c, r_hmac.c, r_random.c, r_sign.c, r_version.c, rcert2sslcert.c, req.c, req_smpl.c, reqgen.c, reslist_set.c, s_crl_check.c, s_crl_verify.c, sock_client.c, sock_server.c, ss_cert_smpl.c, ssl_client.c, ssl_server.c, sslcert2rcert.c, store.c, thread.c, verify.c, vfy_adv.c, vfy_bc.c, and vfy_smpl.c.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1