SSL_CTX_new may return NULL
Fix duplicate condition in if/elseif.  found by cppcheck
Remove unused function
Remove unused functions
Remove unused functions for tcp
remove unused functions for events
Remove unused functions for rbtree
Reduce scope of variable to where it's used
Set vp->length correctly.
Remove redundant check
attr lengths are never less than zero
Minor formatting to help unconfuse cppcheck
Reduce scope of variable, and make it signed
Move assignment so we don't over-write an unused value