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:31 +0000 (08:33 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Dec 2002 08:33:31 +0000 (08:33 +0000)
commit442d42300b754f1aea6f2d903e548bb42bda7649
treeea5ec5ffda6a83c8ba02f73a81839ac59fbc74c9
parent75e1c74724698e1094e13f03ec9e708db25f686d
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