From 871933e3e8e3ccef3ee18540035da30f23868ed8 Mon Sep 17 00:00:00 2001 From: TakayukiMatsuo Date: Thu, 4 Mar 2021 15:41:03 +0900 Subject: [PATCH] Add s comment to wolfSSL_BIO_tell --- src/bio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bio.c b/src/bio.c index d3bf6e4fe..17541ea2d 100644 --- a/src/bio.c +++ b/src/bio.c @@ -1439,6 +1439,11 @@ int wolfSSL_BIO_seek(WOLFSSL_BIO *bio, int ofs) return 0; } +/* wolfSSL_BIO_tell is provided as compatible API with + * BIO_tell which returns the current file position of a file related BIO. + * Returns the current file position on success and -1 for failure. + * Returns 0 for a BIOs except file related BIO. + */ int wolfSSL_BIO_tell(WOLFSSL_BIO* bio) { int pos;