diff options
author | Richard Levitte <levitte@openssl.org> | 2004-08-11 21:13:57 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-08-11 21:13:57 +0000 |
commit | bb1a915c24121e5278d7feeab7c96d06197999b9 (patch) | |
tree | 7cf4e031acbd5d86885b1ca2b085fd81e386aca0 /crypto/bio/bio.h | |
parent | b94f886b22db1da9154bbe236957379fc783c176 (diff) |
Basically, I wanted to be able to make a dump to a FILE*, and not have
to bother creating a BIO around it. So here's a few more functions to
make it possible to make the dump using a printing callback, and to
print to a FILE* (based on the callback variant), done in the same
style as the functions in crypto/err/err_prn.c.
Diffstat (limited to 'crypto/bio/bio.h')
-rw-r--r-- | crypto/bio/bio.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h index e8bb8aa4de..7068b18ffa 100644 --- a/crypto/bio/bio.h +++ b/crypto/bio/bio.h @@ -573,9 +573,16 @@ int BIO_sock_should_retry(int i); int BIO_sock_non_fatal_error(int error); int BIO_fd_should_retry(int i); int BIO_fd_non_fatal_error(int error); +int BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u), + void *u, const char *s, int len); +int BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), + void *u, const char *s, int len, int indent); int BIO_dump(BIO *b,const char *bytes,int len); int BIO_dump_indent(BIO *b,const char *bytes,int len,int indent); - +#ifndef OPENSSL_NO_FP_API +int BIO_dump_fp(FILE *fp, const char *s, int len); +int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); +#endif struct hostent *BIO_gethostbyname(const char *name); /* We might want a thread-safe interface too: * struct hostent *BIO_gethostbyname_r(const char *name, |