sk_*_push() returns the number of items on the stack, not the index of the
authorRichard Levitte <levitte@openssl.org>
Wed, 11 Dec 2002 08:33:37 +0000 (08:33 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Dec 2002 08:33:37 +0000 (08:33 +0000)
commit7627efc92fbac3fb36d06978ccef8af3ceedbfac
tree19b656b595f43e6af443fef39b62c9e5665cdf15
parentcd7f458e28872a2822125aeb48a3af45db5e2873
sk_*_push() returns the number of items on the stack, not the index of the
pushed item.  The index is the number of items - 1.  And if a NULL item was
found, actually use it.
Finally, provide a little bit of safety in CRYPTO_lock() by asserting the a
requested dynamic lock really must exist, instead of just being silent about it
crypto/cryptlib.c