summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-09-07 17:42:25 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-09-07 17:42:25 +0000
commitf50c11ca40132a556880d11172694dfec6b90ad2 (patch)
tree517adc477585c81ce433f3350db37d9467f4674a /doc
parentcfd3bb1785581def14fe8851906887d167b2f0f3 (diff)
Ugh, BIO_find_type() cannot be passed a NULL.
Fix doc example, and fix BIO_find_type(). Fix PKCS7_verify(). It was using 'i' for both the loop variable and the verify return value.
Diffstat (limited to 'doc')
-rw-r--r--doc/crypto/BIO_find_type.pod9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/crypto/BIO_find_type.pod b/doc/crypto/BIO_find_type.pod
index 1a1d6bfad5..cc18c06228 100644
--- a/doc/crypto/BIO_find_type.pod
+++ b/doc/crypto/BIO_find_type.pod
@@ -71,6 +71,11 @@ use:
next = bio->next_bio;
+=head1 BUGS
+
+BIO_find_type() in OpenSSL 0.9.5a and earlier could not be safely passed a
+NULL pointer for the B<b> argument.
+
=head1 EXAMPLE
Traverse a chain looking for digest BIOs:
@@ -78,14 +83,14 @@ Traverse a chain looking for digest BIOs:
BIO *btmp;
btmp = in_bio; /* in_bio is chain to search through */
- for(;;) {
+ do {
btmp = BIO_find_type(btmp, BIO_TYPE_MD);
if(btmp == NULL) break; /* Not found */
/* btmp is a digest BIO, do something with it ...*/
...
btmp = BIO_next(btmp);
- }
+ } while(btmp);
=head1 SEE ALSO