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:34 +0000 (08:33 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Dec 2002 08:33:34 +0000 (08:33 +0000)
commit9576c150a49d7cd15090729d7b912530eefc977f
tree47c9ddd457a6c14d8fab04f7285ba7ad228f0173
parent56f940edc92c5af9958ca86772fd5f3f35813ab9
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